
wechat.protobuf.UploadHDHeadImgResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.UploadHDHeadImgResponse}
*/
public final class UploadHDHeadImgResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.UploadHDHeadImgResponse)
UploadHDHeadImgResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadHDHeadImgResponse.newBuilder() to construct.
private UploadHDHeadImgResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadHDHeadImgResponse() {
finalImgMd5Sum_ = "";
bigHeadImgUrl_ = "";
smallHeadImgUrl_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UploadHDHeadImgResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadHDHeadImgResponse(
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;
totalLen_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
startPos_ = input.readUInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
finalImgMd5Sum_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
bigHeadImgUrl_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
smallHeadImgUrl_ = bs;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.UploadHDHeadImgResponse.class, wechat.protobuf.UploadHDHeadImgResponse.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 TOTALLEN_FIELD_NUMBER = 2;
private int totalLen_;
/**
* optional uint32 totalLen = 2;
* @return Whether the totalLen field is set.
*/
@java.lang.Override
public boolean hasTotalLen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 totalLen = 2;
* @return The totalLen.
*/
@java.lang.Override
public int getTotalLen() {
return totalLen_;
}
public static final int STARTPOS_FIELD_NUMBER = 3;
private int startPos_;
/**
* optional uint32 startPos = 3;
* @return Whether the startPos field is set.
*/
@java.lang.Override
public boolean hasStartPos() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 startPos = 3;
* @return The startPos.
*/
@java.lang.Override
public int getStartPos() {
return startPos_;
}
public static final int FINALIMGMD5SUM_FIELD_NUMBER = 4;
private volatile java.lang.Object finalImgMd5Sum_;
/**
* optional string finalImgMd5Sum = 4;
* @return Whether the finalImgMd5Sum field is set.
*/
@java.lang.Override
public boolean hasFinalImgMd5Sum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string finalImgMd5Sum = 4;
* @return The finalImgMd5Sum.
*/
@java.lang.Override
public java.lang.String getFinalImgMd5Sum() {
java.lang.Object ref = finalImgMd5Sum_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
finalImgMd5Sum_ = s;
}
return s;
}
}
/**
* optional string finalImgMd5Sum = 4;
* @return The bytes for finalImgMd5Sum.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFinalImgMd5SumBytes() {
java.lang.Object ref = finalImgMd5Sum_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalImgMd5Sum_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BIGHEADIMGURL_FIELD_NUMBER = 5;
private volatile java.lang.Object bigHeadImgUrl_;
/**
* optional string bigHeadImgUrl = 5;
* @return Whether the bigHeadImgUrl field is set.
*/
@java.lang.Override
public boolean hasBigHeadImgUrl() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string bigHeadImgUrl = 5;
* @return The bigHeadImgUrl.
*/
@java.lang.Override
public java.lang.String getBigHeadImgUrl() {
java.lang.Object ref = bigHeadImgUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
bigHeadImgUrl_ = s;
}
return s;
}
}
/**
* optional string bigHeadImgUrl = 5;
* @return The bytes for bigHeadImgUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBigHeadImgUrlBytes() {
java.lang.Object ref = bigHeadImgUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigHeadImgUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SMALLHEADIMGURL_FIELD_NUMBER = 6;
private volatile java.lang.Object smallHeadImgUrl_;
/**
* optional string smallHeadImgUrl = 6;
* @return Whether the smallHeadImgUrl field is set.
*/
@java.lang.Override
public boolean hasSmallHeadImgUrl() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string smallHeadImgUrl = 6;
* @return The smallHeadImgUrl.
*/
@java.lang.Override
public java.lang.String getSmallHeadImgUrl() {
java.lang.Object ref = smallHeadImgUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
smallHeadImgUrl_ = s;
}
return s;
}
}
/**
* optional string smallHeadImgUrl = 6;
* @return The bytes for smallHeadImgUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSmallHeadImgUrlBytes() {
java.lang.Object ref = smallHeadImgUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
smallHeadImgUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, totalLen_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, startPos_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, finalImgMd5Sum_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bigHeadImgUrl_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, smallHeadImgUrl_);
}
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, totalLen_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, startPos_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, finalImgMd5Sum_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bigHeadImgUrl_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, smallHeadImgUrl_);
}
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.UploadHDHeadImgResponse)) {
return super.equals(obj);
}
wechat.protobuf.UploadHDHeadImgResponse other = (wechat.protobuf.UploadHDHeadImgResponse) obj;
if (hasBaseResponse() != other.hasBaseResponse()) return false;
if (hasBaseResponse()) {
if (!getBaseResponse()
.equals(other.getBaseResponse())) return false;
}
if (hasTotalLen() != other.hasTotalLen()) return false;
if (hasTotalLen()) {
if (getTotalLen()
!= other.getTotalLen()) return false;
}
if (hasStartPos() != other.hasStartPos()) return false;
if (hasStartPos()) {
if (getStartPos()
!= other.getStartPos()) return false;
}
if (hasFinalImgMd5Sum() != other.hasFinalImgMd5Sum()) return false;
if (hasFinalImgMd5Sum()) {
if (!getFinalImgMd5Sum()
.equals(other.getFinalImgMd5Sum())) return false;
}
if (hasBigHeadImgUrl() != other.hasBigHeadImgUrl()) return false;
if (hasBigHeadImgUrl()) {
if (!getBigHeadImgUrl()
.equals(other.getBigHeadImgUrl())) return false;
}
if (hasSmallHeadImgUrl() != other.hasSmallHeadImgUrl()) return false;
if (hasSmallHeadImgUrl()) {
if (!getSmallHeadImgUrl()
.equals(other.getSmallHeadImgUrl())) 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 (hasTotalLen()) {
hash = (37 * hash) + TOTALLEN_FIELD_NUMBER;
hash = (53 * hash) + getTotalLen();
}
if (hasStartPos()) {
hash = (37 * hash) + STARTPOS_FIELD_NUMBER;
hash = (53 * hash) + getStartPos();
}
if (hasFinalImgMd5Sum()) {
hash = (37 * hash) + FINALIMGMD5SUM_FIELD_NUMBER;
hash = (53 * hash) + getFinalImgMd5Sum().hashCode();
}
if (hasBigHeadImgUrl()) {
hash = (37 * hash) + BIGHEADIMGURL_FIELD_NUMBER;
hash = (53 * hash) + getBigHeadImgUrl().hashCode();
}
if (hasSmallHeadImgUrl()) {
hash = (37 * hash) + SMALLHEADIMGURL_FIELD_NUMBER;
hash = (53 * hash) + getSmallHeadImgUrl().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.UploadHDHeadImgResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadHDHeadImgResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.UploadHDHeadImgResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadHDHeadImgResponse 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.UploadHDHeadImgResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadHDHeadImgResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.UploadHDHeadImgResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadHDHeadImgResponse 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.UploadHDHeadImgResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadHDHeadImgResponse 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.UploadHDHeadImgResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadHDHeadImgResponse 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.UploadHDHeadImgResponse 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.UploadHDHeadImgResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.UploadHDHeadImgResponse)
wechat.protobuf.UploadHDHeadImgResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.UploadHDHeadImgResponse.class, wechat.protobuf.UploadHDHeadImgResponse.Builder.class);
}
// Construct using wechat.protobuf.UploadHDHeadImgResponse.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
totalLen_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
startPos_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
finalImgMd5Sum_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
bigHeadImgUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
smallHeadImgUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.UploadHDHeadImgResponse getDefaultInstanceForType() {
return wechat.protobuf.UploadHDHeadImgResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.UploadHDHeadImgResponse build() {
wechat.protobuf.UploadHDHeadImgResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.UploadHDHeadImgResponse buildPartial() {
wechat.protobuf.UploadHDHeadImgResponse result = new wechat.protobuf.UploadHDHeadImgResponse(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.totalLen_ = totalLen_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.startPos_ = startPos_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.finalImgMd5Sum_ = finalImgMd5Sum_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.bigHeadImgUrl_ = bigHeadImgUrl_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.smallHeadImgUrl_ = smallHeadImgUrl_;
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.UploadHDHeadImgResponse) {
return mergeFrom((wechat.protobuf.UploadHDHeadImgResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.UploadHDHeadImgResponse other) {
if (other == wechat.protobuf.UploadHDHeadImgResponse.getDefaultInstance()) return this;
if (other.hasBaseResponse()) {
mergeBaseResponse(other.getBaseResponse());
}
if (other.hasTotalLen()) {
setTotalLen(other.getTotalLen());
}
if (other.hasStartPos()) {
setStartPos(other.getStartPos());
}
if (other.hasFinalImgMd5Sum()) {
bitField0_ |= 0x00000008;
finalImgMd5Sum_ = other.finalImgMd5Sum_;
onChanged();
}
if (other.hasBigHeadImgUrl()) {
bitField0_ |= 0x00000010;
bigHeadImgUrl_ = other.bigHeadImgUrl_;
onChanged();
}
if (other.hasSmallHeadImgUrl()) {
bitField0_ |= 0x00000020;
smallHeadImgUrl_ = other.smallHeadImgUrl_;
onChanged();
}
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.UploadHDHeadImgResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.UploadHDHeadImgResponse) 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 totalLen_ ;
/**
* optional uint32 totalLen = 2;
* @return Whether the totalLen field is set.
*/
@java.lang.Override
public boolean hasTotalLen() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 totalLen = 2;
* @return The totalLen.
*/
@java.lang.Override
public int getTotalLen() {
return totalLen_;
}
/**
* optional uint32 totalLen = 2;
* @param value The totalLen to set.
* @return This builder for chaining.
*/
public Builder setTotalLen(int value) {
bitField0_ |= 0x00000002;
totalLen_ = value;
onChanged();
return this;
}
/**
* optional uint32 totalLen = 2;
* @return This builder for chaining.
*/
public Builder clearTotalLen() {
bitField0_ = (bitField0_ & ~0x00000002);
totalLen_ = 0;
onChanged();
return this;
}
private int startPos_ ;
/**
* optional uint32 startPos = 3;
* @return Whether the startPos field is set.
*/
@java.lang.Override
public boolean hasStartPos() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 startPos = 3;
* @return The startPos.
*/
@java.lang.Override
public int getStartPos() {
return startPos_;
}
/**
* optional uint32 startPos = 3;
* @param value The startPos to set.
* @return This builder for chaining.
*/
public Builder setStartPos(int value) {
bitField0_ |= 0x00000004;
startPos_ = value;
onChanged();
return this;
}
/**
* optional uint32 startPos = 3;
* @return This builder for chaining.
*/
public Builder clearStartPos() {
bitField0_ = (bitField0_ & ~0x00000004);
startPos_ = 0;
onChanged();
return this;
}
private java.lang.Object finalImgMd5Sum_ = "";
/**
* optional string finalImgMd5Sum = 4;
* @return Whether the finalImgMd5Sum field is set.
*/
public boolean hasFinalImgMd5Sum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string finalImgMd5Sum = 4;
* @return The finalImgMd5Sum.
*/
public java.lang.String getFinalImgMd5Sum() {
java.lang.Object ref = finalImgMd5Sum_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
finalImgMd5Sum_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string finalImgMd5Sum = 4;
* @return The bytes for finalImgMd5Sum.
*/
public com.google.protobuf.ByteString
getFinalImgMd5SumBytes() {
java.lang.Object ref = finalImgMd5Sum_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalImgMd5Sum_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string finalImgMd5Sum = 4;
* @param value The finalImgMd5Sum to set.
* @return This builder for chaining.
*/
public Builder setFinalImgMd5Sum(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
finalImgMd5Sum_ = value;
onChanged();
return this;
}
/**
* optional string finalImgMd5Sum = 4;
* @return This builder for chaining.
*/
public Builder clearFinalImgMd5Sum() {
bitField0_ = (bitField0_ & ~0x00000008);
finalImgMd5Sum_ = getDefaultInstance().getFinalImgMd5Sum();
onChanged();
return this;
}
/**
* optional string finalImgMd5Sum = 4;
* @param value The bytes for finalImgMd5Sum to set.
* @return This builder for chaining.
*/
public Builder setFinalImgMd5SumBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
finalImgMd5Sum_ = value;
onChanged();
return this;
}
private java.lang.Object bigHeadImgUrl_ = "";
/**
* optional string bigHeadImgUrl = 5;
* @return Whether the bigHeadImgUrl field is set.
*/
public boolean hasBigHeadImgUrl() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string bigHeadImgUrl = 5;
* @return The bigHeadImgUrl.
*/
public java.lang.String getBigHeadImgUrl() {
java.lang.Object ref = bigHeadImgUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
bigHeadImgUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string bigHeadImgUrl = 5;
* @return The bytes for bigHeadImgUrl.
*/
public com.google.protobuf.ByteString
getBigHeadImgUrlBytes() {
java.lang.Object ref = bigHeadImgUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigHeadImgUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string bigHeadImgUrl = 5;
* @param value The bigHeadImgUrl to set.
* @return This builder for chaining.
*/
public Builder setBigHeadImgUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
bigHeadImgUrl_ = value;
onChanged();
return this;
}
/**
* optional string bigHeadImgUrl = 5;
* @return This builder for chaining.
*/
public Builder clearBigHeadImgUrl() {
bitField0_ = (bitField0_ & ~0x00000010);
bigHeadImgUrl_ = getDefaultInstance().getBigHeadImgUrl();
onChanged();
return this;
}
/**
* optional string bigHeadImgUrl = 5;
* @param value The bytes for bigHeadImgUrl to set.
* @return This builder for chaining.
*/
public Builder setBigHeadImgUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
bigHeadImgUrl_ = value;
onChanged();
return this;
}
private java.lang.Object smallHeadImgUrl_ = "";
/**
* optional string smallHeadImgUrl = 6;
* @return Whether the smallHeadImgUrl field is set.
*/
public boolean hasSmallHeadImgUrl() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string smallHeadImgUrl = 6;
* @return The smallHeadImgUrl.
*/
public java.lang.String getSmallHeadImgUrl() {
java.lang.Object ref = smallHeadImgUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
smallHeadImgUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string smallHeadImgUrl = 6;
* @return The bytes for smallHeadImgUrl.
*/
public com.google.protobuf.ByteString
getSmallHeadImgUrlBytes() {
java.lang.Object ref = smallHeadImgUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
smallHeadImgUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string smallHeadImgUrl = 6;
* @param value The smallHeadImgUrl to set.
* @return This builder for chaining.
*/
public Builder setSmallHeadImgUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
smallHeadImgUrl_ = value;
onChanged();
return this;
}
/**
* optional string smallHeadImgUrl = 6;
* @return This builder for chaining.
*/
public Builder clearSmallHeadImgUrl() {
bitField0_ = (bitField0_ & ~0x00000020);
smallHeadImgUrl_ = getDefaultInstance().getSmallHeadImgUrl();
onChanged();
return this;
}
/**
* optional string smallHeadImgUrl = 6;
* @param value The bytes for smallHeadImgUrl to set.
* @return This builder for chaining.
*/
public Builder setSmallHeadImgUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
smallHeadImgUrl_ = value;
onChanged();
return this;
}
@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.UploadHDHeadImgResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.UploadHDHeadImgResponse)
private static final wechat.protobuf.UploadHDHeadImgResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.UploadHDHeadImgResponse();
}
public static wechat.protobuf.UploadHDHeadImgResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UploadHDHeadImgResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadHDHeadImgResponse(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.UploadHDHeadImgResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy