wechat.protobuf.BatchGetHeadImgResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.BatchGetHeadImgResponse}
*/
public final class BatchGetHeadImgResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.BatchGetHeadImgResponse)
BatchGetHeadImgResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchGetHeadImgResponse.newBuilder() to construct.
private BatchGetHeadImgResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchGetHeadImgResponse() {
imgPairList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchGetHeadImgResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BatchGetHeadImgResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
wechat.protobuf.BaseResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseResponse_.toBuilder();
}
baseResponse_ = input.readMessage(wechat.protobuf.BaseResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseResponse_);
baseResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
count_ = input.readUInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
imgPairList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
imgPairList_.add(
input.readMessage(wechat.protobuf.ImgPair.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) != 0)) {
imgPairList_ = java.util.Collections.unmodifiableList(imgPairList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_BatchGetHeadImgResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_BatchGetHeadImgResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.BatchGetHeadImgResponse.class, wechat.protobuf.BatchGetHeadImgResponse.Builder.class);
}
private int bitField0_;
public static final int BASERESPONSE_FIELD_NUMBER = 1;
private wechat.protobuf.BaseResponse baseResponse_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
@java.lang.Override
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
@java.lang.Override
public wechat.protobuf.BaseResponse getBaseResponse() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
@java.lang.Override
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
public static final int COUNT_FIELD_NUMBER = 2;
private int count_;
/**
* optional uint32 Count = 2;
* @return Whether the count field is set.
*/
@java.lang.Override
public boolean hasCount() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 Count = 2;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
public static final int IMGPAIRLIST_FIELD_NUMBER = 3;
private java.util.List imgPairList_;
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
@java.lang.Override
public java.util.List getImgPairListList() {
return imgPairList_;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
@java.lang.Override
public java.util.List extends wechat.protobuf.ImgPairOrBuilder>
getImgPairListOrBuilderList() {
return imgPairList_;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
@java.lang.Override
public int getImgPairListCount() {
return imgPairList_.size();
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
@java.lang.Override
public wechat.protobuf.ImgPair getImgPairList(int index) {
return imgPairList_.get(index);
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
@java.lang.Override
public wechat.protobuf.ImgPairOrBuilder getImgPairListOrBuilder(
int index) {
return imgPairList_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, count_);
}
for (int i = 0; i < imgPairList_.size(); i++) {
output.writeMessage(3, imgPairList_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, count_);
}
for (int i = 0; i < imgPairList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, imgPairList_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof wechat.protobuf.BatchGetHeadImgResponse)) {
return super.equals(obj);
}
wechat.protobuf.BatchGetHeadImgResponse other = (wechat.protobuf.BatchGetHeadImgResponse) obj;
if (hasBaseResponse() != other.hasBaseResponse()) return false;
if (hasBaseResponse()) {
if (!getBaseResponse()
.equals(other.getBaseResponse())) return false;
}
if (hasCount() != other.hasCount()) return false;
if (hasCount()) {
if (getCount()
!= other.getCount()) return false;
}
if (!getImgPairListList()
.equals(other.getImgPairListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBaseResponse()) {
hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getBaseResponse().hashCode();
}
if (hasCount()) {
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
}
if (getImgPairListCount() > 0) {
hash = (37 * hash) + IMGPAIRLIST_FIELD_NUMBER;
hash = (53 * hash) + getImgPairListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.BatchGetHeadImgResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(wechat.protobuf.BatchGetHeadImgResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code wechat_proto.BatchGetHeadImgResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.BatchGetHeadImgResponse)
wechat.protobuf.BatchGetHeadImgResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_BatchGetHeadImgResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_BatchGetHeadImgResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.BatchGetHeadImgResponse.class, wechat.protobuf.BatchGetHeadImgResponse.Builder.class);
}
// Construct using wechat.protobuf.BatchGetHeadImgResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseResponseFieldBuilder();
getImgPairListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
count_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (imgPairListBuilder_ == null) {
imgPairList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
imgPairListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_BatchGetHeadImgResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.BatchGetHeadImgResponse getDefaultInstanceForType() {
return wechat.protobuf.BatchGetHeadImgResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.BatchGetHeadImgResponse build() {
wechat.protobuf.BatchGetHeadImgResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.BatchGetHeadImgResponse buildPartial() {
wechat.protobuf.BatchGetHeadImgResponse result = new wechat.protobuf.BatchGetHeadImgResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseResponseBuilder_ == null) {
result.baseResponse_ = baseResponse_;
} else {
result.baseResponse_ = baseResponseBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.count_ = count_;
to_bitField0_ |= 0x00000002;
}
if (imgPairListBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
imgPairList_ = java.util.Collections.unmodifiableList(imgPairList_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.imgPairList_ = imgPairList_;
} else {
result.imgPairList_ = imgPairListBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof wechat.protobuf.BatchGetHeadImgResponse) {
return mergeFrom((wechat.protobuf.BatchGetHeadImgResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.BatchGetHeadImgResponse other) {
if (other == wechat.protobuf.BatchGetHeadImgResponse.getDefaultInstance()) return this;
if (other.hasBaseResponse()) {
mergeBaseResponse(other.getBaseResponse());
}
if (other.hasCount()) {
setCount(other.getCount());
}
if (imgPairListBuilder_ == null) {
if (!other.imgPairList_.isEmpty()) {
if (imgPairList_.isEmpty()) {
imgPairList_ = other.imgPairList_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureImgPairListIsMutable();
imgPairList_.addAll(other.imgPairList_);
}
onChanged();
}
} else {
if (!other.imgPairList_.isEmpty()) {
if (imgPairListBuilder_.isEmpty()) {
imgPairListBuilder_.dispose();
imgPairListBuilder_ = null;
imgPairList_ = other.imgPairList_;
bitField0_ = (bitField0_ & ~0x00000004);
imgPairListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getImgPairListFieldBuilder() : null;
} else {
imgPairListBuilder_.addAllMessages(other.imgPairList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
wechat.protobuf.BatchGetHeadImgResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.BatchGetHeadImgResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.BaseResponse baseResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> baseResponseBuilder_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
public wechat.protobuf.BaseResponse getBaseResponse() {
if (baseResponseBuilder_ == null) {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
} else {
return baseResponseBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseResponse_ = value;
onChanged();
} else {
baseResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(
wechat.protobuf.BaseResponse.Builder builderForValue) {
if (baseResponseBuilder_ == null) {
baseResponse_ = builderForValue.build();
onChanged();
} else {
baseResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder mergeBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseResponse_ != null &&
baseResponse_ != wechat.protobuf.BaseResponse.getDefaultInstance()) {
baseResponse_ =
wechat.protobuf.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
} else {
baseResponse_ = value;
}
onChanged();
} else {
baseResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder clearBaseResponse() {
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
onChanged();
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.BaseResponse.Builder getBaseResponseBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseResponseFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
if (baseResponseBuilder_ != null) {
return baseResponseBuilder_.getMessageOrBuilder();
} else {
return baseResponse_ == null ?
wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>
getBaseResponseFieldBuilder() {
if (baseResponseBuilder_ == null) {
baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>(
getBaseResponse(),
getParentForChildren(),
isClean());
baseResponse_ = null;
}
return baseResponseBuilder_;
}
private int count_ ;
/**
* optional uint32 Count = 2;
* @return Whether the count field is set.
*/
@java.lang.Override
public boolean hasCount() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 Count = 2;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
/**
* optional uint32 Count = 2;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(int value) {
bitField0_ |= 0x00000002;
count_ = value;
onChanged();
return this;
}
/**
* optional uint32 Count = 2;
* @return This builder for chaining.
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000002);
count_ = 0;
onChanged();
return this;
}
private java.util.List imgPairList_ =
java.util.Collections.emptyList();
private void ensureImgPairListIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
imgPairList_ = new java.util.ArrayList(imgPairList_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.ImgPair, wechat.protobuf.ImgPair.Builder, wechat.protobuf.ImgPairOrBuilder> imgPairListBuilder_;
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public java.util.List getImgPairListList() {
if (imgPairListBuilder_ == null) {
return java.util.Collections.unmodifiableList(imgPairList_);
} else {
return imgPairListBuilder_.getMessageList();
}
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public int getImgPairListCount() {
if (imgPairListBuilder_ == null) {
return imgPairList_.size();
} else {
return imgPairListBuilder_.getCount();
}
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public wechat.protobuf.ImgPair getImgPairList(int index) {
if (imgPairListBuilder_ == null) {
return imgPairList_.get(index);
} else {
return imgPairListBuilder_.getMessage(index);
}
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder setImgPairList(
int index, wechat.protobuf.ImgPair value) {
if (imgPairListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImgPairListIsMutable();
imgPairList_.set(index, value);
onChanged();
} else {
imgPairListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder setImgPairList(
int index, wechat.protobuf.ImgPair.Builder builderForValue) {
if (imgPairListBuilder_ == null) {
ensureImgPairListIsMutable();
imgPairList_.set(index, builderForValue.build());
onChanged();
} else {
imgPairListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder addImgPairList(wechat.protobuf.ImgPair value) {
if (imgPairListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImgPairListIsMutable();
imgPairList_.add(value);
onChanged();
} else {
imgPairListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder addImgPairList(
int index, wechat.protobuf.ImgPair value) {
if (imgPairListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImgPairListIsMutable();
imgPairList_.add(index, value);
onChanged();
} else {
imgPairListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder addImgPairList(
wechat.protobuf.ImgPair.Builder builderForValue) {
if (imgPairListBuilder_ == null) {
ensureImgPairListIsMutable();
imgPairList_.add(builderForValue.build());
onChanged();
} else {
imgPairListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder addImgPairList(
int index, wechat.protobuf.ImgPair.Builder builderForValue) {
if (imgPairListBuilder_ == null) {
ensureImgPairListIsMutable();
imgPairList_.add(index, builderForValue.build());
onChanged();
} else {
imgPairListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder addAllImgPairList(
java.lang.Iterable extends wechat.protobuf.ImgPair> values) {
if (imgPairListBuilder_ == null) {
ensureImgPairListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, imgPairList_);
onChanged();
} else {
imgPairListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder clearImgPairList() {
if (imgPairListBuilder_ == null) {
imgPairList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
imgPairListBuilder_.clear();
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public Builder removeImgPairList(int index) {
if (imgPairListBuilder_ == null) {
ensureImgPairListIsMutable();
imgPairList_.remove(index);
onChanged();
} else {
imgPairListBuilder_.remove(index);
}
return this;
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public wechat.protobuf.ImgPair.Builder getImgPairListBuilder(
int index) {
return getImgPairListFieldBuilder().getBuilder(index);
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public wechat.protobuf.ImgPairOrBuilder getImgPairListOrBuilder(
int index) {
if (imgPairListBuilder_ == null) {
return imgPairList_.get(index); } else {
return imgPairListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public java.util.List extends wechat.protobuf.ImgPairOrBuilder>
getImgPairListOrBuilderList() {
if (imgPairListBuilder_ != null) {
return imgPairListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(imgPairList_);
}
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public wechat.protobuf.ImgPair.Builder addImgPairListBuilder() {
return getImgPairListFieldBuilder().addBuilder(
wechat.protobuf.ImgPair.getDefaultInstance());
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public wechat.protobuf.ImgPair.Builder addImgPairListBuilder(
int index) {
return getImgPairListFieldBuilder().addBuilder(
index, wechat.protobuf.ImgPair.getDefaultInstance());
}
/**
* repeated .wechat_proto.ImgPair ImgPairList = 3;
*/
public java.util.List
getImgPairListBuilderList() {
return getImgPairListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.ImgPair, wechat.protobuf.ImgPair.Builder, wechat.protobuf.ImgPairOrBuilder>
getImgPairListFieldBuilder() {
if (imgPairListBuilder_ == null) {
imgPairListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.ImgPair, wechat.protobuf.ImgPair.Builder, wechat.protobuf.ImgPairOrBuilder>(
imgPairList_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
imgPairList_ = null;
}
return imgPairListBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:wechat_proto.BatchGetHeadImgResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.BatchGetHeadImgResponse)
private static final wechat.protobuf.BatchGetHeadImgResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.BatchGetHeadImgResponse();
}
public static wechat.protobuf.BatchGetHeadImgResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchGetHeadImgResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BatchGetHeadImgResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public wechat.protobuf.BatchGetHeadImgResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy