All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wechat.protobuf.UploadHDHeadImgRequest Maven / Gradle / Ivy

There is a newer version: 8.0.48.01
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wechat.proto

package wechat.protobuf;

/**
 * Protobuf type {@code wechat_proto.UploadHDHeadImgRequest}
 */
public final class UploadHDHeadImgRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.UploadHDHeadImgRequest)
    UploadHDHeadImgRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UploadHDHeadImgRequest.newBuilder() to construct.
  private UploadHDHeadImgRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private UploadHDHeadImgRequest() {
    imgHash_ = "";
    userName_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new UploadHDHeadImgRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private UploadHDHeadImgRequest(
      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.BaseRequest.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = baseRequest_.toBuilder();
            }
            baseRequest_ = input.readMessage(wechat.protobuf.BaseRequest.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(baseRequest_);
              baseRequest_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 16: {
            bitField0_ |= 0x00000002;
            totalLen_ = input.readUInt32();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            startPos_ = input.readUInt32();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            headImgType_ = input.readUInt32();
            break;
          }
          case 42: {
            wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
            if (((bitField0_ & 0x00000010) != 0)) {
              subBuilder = data_.toBuilder();
            }
            data_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(data_);
              data_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000010;
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            imgHash_ = bs;
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000040;
            userName_ = 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_UploadHDHeadImgRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.UploadHDHeadImgRequest.class, wechat.protobuf.UploadHDHeadImgRequest.Builder.class);
  }

  private int bitField0_;
  public static final int BASEREQUEST_FIELD_NUMBER = 1;
  private wechat.protobuf.BaseRequest baseRequest_;
  /**
   * optional .wechat_proto.BaseRequest baseRequest = 1;
   * @return Whether the baseRequest field is set.
   */
  @java.lang.Override
  public boolean hasBaseRequest() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .wechat_proto.BaseRequest baseRequest = 1;
   * @return The baseRequest.
   */
  @java.lang.Override
  public wechat.protobuf.BaseRequest getBaseRequest() {
    return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
  }
  /**
   * optional .wechat_proto.BaseRequest baseRequest = 1;
   */
  @java.lang.Override
  public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
    return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
  }

  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 HEADIMGTYPE_FIELD_NUMBER = 4;
  private int headImgType_;
  /**
   * optional uint32 headImgType = 4;
   * @return Whether the headImgType field is set.
   */
  @java.lang.Override
  public boolean hasHeadImgType() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional uint32 headImgType = 4;
   * @return The headImgType.
   */
  @java.lang.Override
  public int getHeadImgType() {
    return headImgType_;
  }

  public static final int DATA_FIELD_NUMBER = 5;
  private wechat.protobuf.SKBuiltinString_ data_;
  /**
   * optional .wechat_proto.SKBuiltinString_ data = 5;
   * @return Whether the data field is set.
   */
  @java.lang.Override
  public boolean hasData() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString_ data = 5;
   * @return The data.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString_ getData() {
    return data_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString_ data = 5;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString_OrBuilder getDataOrBuilder() {
    return data_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
  }

  public static final int IMGHASH_FIELD_NUMBER = 6;
  private volatile java.lang.Object imgHash_;
  /**
   * optional string imgHash = 6;
   * @return Whether the imgHash field is set.
   */
  @java.lang.Override
  public boolean hasImgHash() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional string imgHash = 6;
   * @return The imgHash.
   */
  @java.lang.Override
  public java.lang.String getImgHash() {
    java.lang.Object ref = imgHash_;
    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()) {
        imgHash_ = s;
      }
      return s;
    }
  }
  /**
   * optional string imgHash = 6;
   * @return The bytes for imgHash.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getImgHashBytes() {
    java.lang.Object ref = imgHash_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      imgHash_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USERNAME_FIELD_NUMBER = 7;
  private volatile java.lang.Object userName_;
  /**
   * optional string userName = 7;
   * @return Whether the userName field is set.
   */
  @java.lang.Override
  public boolean hasUserName() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional string userName = 7;
   * @return The userName.
   */
  @java.lang.Override
  public java.lang.String getUserName() {
    java.lang.Object ref = userName_;
    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()) {
        userName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string userName = 7;
   * @return The bytes for userName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getUserNameBytes() {
    java.lang.Object ref = userName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      userName_ = 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, getBaseRequest());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeUInt32(2, totalLen_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt32(3, startPos_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeUInt32(4, headImgType_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(5, getData());
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imgHash_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, userName_);
    }
    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, getBaseRequest());
    }
    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.CodedOutputStream
        .computeUInt32Size(4, headImgType_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getData());
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imgHash_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, userName_);
    }
    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.UploadHDHeadImgRequest)) {
      return super.equals(obj);
    }
    wechat.protobuf.UploadHDHeadImgRequest other = (wechat.protobuf.UploadHDHeadImgRequest) obj;

    if (hasBaseRequest() != other.hasBaseRequest()) return false;
    if (hasBaseRequest()) {
      if (!getBaseRequest()
          .equals(other.getBaseRequest())) 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 (hasHeadImgType() != other.hasHeadImgType()) return false;
    if (hasHeadImgType()) {
      if (getHeadImgType()
          != other.getHeadImgType()) return false;
    }
    if (hasData() != other.hasData()) return false;
    if (hasData()) {
      if (!getData()
          .equals(other.getData())) return false;
    }
    if (hasImgHash() != other.hasImgHash()) return false;
    if (hasImgHash()) {
      if (!getImgHash()
          .equals(other.getImgHash())) return false;
    }
    if (hasUserName() != other.hasUserName()) return false;
    if (hasUserName()) {
      if (!getUserName()
          .equals(other.getUserName())) 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 (hasBaseRequest()) {
      hash = (37 * hash) + BASEREQUEST_FIELD_NUMBER;
      hash = (53 * hash) + getBaseRequest().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 (hasHeadImgType()) {
      hash = (37 * hash) + HEADIMGTYPE_FIELD_NUMBER;
      hash = (53 * hash) + getHeadImgType();
    }
    if (hasData()) {
      hash = (37 * hash) + DATA_FIELD_NUMBER;
      hash = (53 * hash) + getData().hashCode();
    }
    if (hasImgHash()) {
      hash = (37 * hash) + IMGHASH_FIELD_NUMBER;
      hash = (53 * hash) + getImgHash().hashCode();
    }
    if (hasUserName()) {
      hash = (37 * hash) + USERNAME_FIELD_NUMBER;
      hash = (53 * hash) + getUserName().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static wechat.protobuf.UploadHDHeadImgRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest 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.UploadHDHeadImgRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest 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.UploadHDHeadImgRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest 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.UploadHDHeadImgRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.UploadHDHeadImgRequest 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.UploadHDHeadImgRequest 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.UploadHDHeadImgRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:wechat_proto.UploadHDHeadImgRequest)
      wechat.protobuf.UploadHDHeadImgRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              wechat.protobuf.UploadHDHeadImgRequest.class, wechat.protobuf.UploadHDHeadImgRequest.Builder.class);
    }

    // Construct using wechat.protobuf.UploadHDHeadImgRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getBaseRequestFieldBuilder();
        getDataFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (baseRequestBuilder_ == null) {
        baseRequest_ = null;
      } else {
        baseRequestBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      totalLen_ = 0;
      bitField0_ = (bitField0_ & ~0x00000002);
      startPos_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      headImgType_ = 0;
      bitField0_ = (bitField0_ & ~0x00000008);
      if (dataBuilder_ == null) {
        data_ = null;
      } else {
        dataBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      imgHash_ = "";
      bitField0_ = (bitField0_ & ~0x00000020);
      userName_ = "";
      bitField0_ = (bitField0_ & ~0x00000040);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadHDHeadImgRequest_descriptor;
    }

    @java.lang.Override
    public wechat.protobuf.UploadHDHeadImgRequest getDefaultInstanceForType() {
      return wechat.protobuf.UploadHDHeadImgRequest.getDefaultInstance();
    }

    @java.lang.Override
    public wechat.protobuf.UploadHDHeadImgRequest build() {
      wechat.protobuf.UploadHDHeadImgRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public wechat.protobuf.UploadHDHeadImgRequest buildPartial() {
      wechat.protobuf.UploadHDHeadImgRequest result = new wechat.protobuf.UploadHDHeadImgRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (baseRequestBuilder_ == null) {
          result.baseRequest_ = baseRequest_;
        } else {
          result.baseRequest_ = baseRequestBuilder_.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)) {
        result.headImgType_ = headImgType_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        if (dataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = dataBuilder_.build();
        }
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        to_bitField0_ |= 0x00000020;
      }
      result.imgHash_ = imgHash_;
      if (((from_bitField0_ & 0x00000040) != 0)) {
        to_bitField0_ |= 0x00000040;
      }
      result.userName_ = userName_;
      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.UploadHDHeadImgRequest) {
        return mergeFrom((wechat.protobuf.UploadHDHeadImgRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.UploadHDHeadImgRequest other) {
      if (other == wechat.protobuf.UploadHDHeadImgRequest.getDefaultInstance()) return this;
      if (other.hasBaseRequest()) {
        mergeBaseRequest(other.getBaseRequest());
      }
      if (other.hasTotalLen()) {
        setTotalLen(other.getTotalLen());
      }
      if (other.hasStartPos()) {
        setStartPos(other.getStartPos());
      }
      if (other.hasHeadImgType()) {
        setHeadImgType(other.getHeadImgType());
      }
      if (other.hasData()) {
        mergeData(other.getData());
      }
      if (other.hasImgHash()) {
        bitField0_ |= 0x00000020;
        imgHash_ = other.imgHash_;
        onChanged();
      }
      if (other.hasUserName()) {
        bitField0_ |= 0x00000040;
        userName_ = other.userName_;
        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.UploadHDHeadImgRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.UploadHDHeadImgRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private wechat.protobuf.BaseRequest baseRequest_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> baseRequestBuilder_;
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     * @return Whether the baseRequest field is set.
     */
    public boolean hasBaseRequest() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     * @return The baseRequest.
     */
    public wechat.protobuf.BaseRequest getBaseRequest() {
      if (baseRequestBuilder_ == null) {
        return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
      } else {
        return baseRequestBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     */
    public Builder setBaseRequest(wechat.protobuf.BaseRequest value) {
      if (baseRequestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        baseRequest_ = value;
        onChanged();
      } else {
        baseRequestBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     */
    public Builder setBaseRequest(
        wechat.protobuf.BaseRequest.Builder builderForValue) {
      if (baseRequestBuilder_ == null) {
        baseRequest_ = builderForValue.build();
        onChanged();
      } else {
        baseRequestBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     */
    public Builder mergeBaseRequest(wechat.protobuf.BaseRequest value) {
      if (baseRequestBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            baseRequest_ != null &&
            baseRequest_ != wechat.protobuf.BaseRequest.getDefaultInstance()) {
          baseRequest_ =
            wechat.protobuf.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial();
        } else {
          baseRequest_ = value;
        }
        onChanged();
      } else {
        baseRequestBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     */
    public Builder clearBaseRequest() {
      if (baseRequestBuilder_ == null) {
        baseRequest_ = null;
        onChanged();
      } else {
        baseRequestBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     */
    public wechat.protobuf.BaseRequest.Builder getBaseRequestBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getBaseRequestFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     */
    public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
      if (baseRequestBuilder_ != null) {
        return baseRequestBuilder_.getMessageOrBuilder();
      } else {
        return baseRequest_ == null ?
            wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
      }
    }
    /**
     * optional .wechat_proto.BaseRequest baseRequest = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> 
        getBaseRequestFieldBuilder() {
      if (baseRequestBuilder_ == null) {
        baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>(
                getBaseRequest(),
                getParentForChildren(),
                isClean());
        baseRequest_ = null;
      }
      return baseRequestBuilder_;
    }

    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 int headImgType_ ;
    /**
     * optional uint32 headImgType = 4;
     * @return Whether the headImgType field is set.
     */
    @java.lang.Override
    public boolean hasHeadImgType() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional uint32 headImgType = 4;
     * @return The headImgType.
     */
    @java.lang.Override
    public int getHeadImgType() {
      return headImgType_;
    }
    /**
     * optional uint32 headImgType = 4;
     * @param value The headImgType to set.
     * @return This builder for chaining.
     */
    public Builder setHeadImgType(int value) {
      bitField0_ |= 0x00000008;
      headImgType_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 headImgType = 4;
     * @return This builder for chaining.
     */
    public Builder clearHeadImgType() {
      bitField0_ = (bitField0_ & ~0x00000008);
      headImgType_ = 0;
      onChanged();
      return this;
    }

    private wechat.protobuf.SKBuiltinString_ data_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> dataBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     * @return Whether the data field is set.
     */
    public boolean hasData() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     * @return The data.
     */
    public wechat.protobuf.SKBuiltinString_ getData() {
      if (dataBuilder_ == null) {
        return data_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
      } else {
        return dataBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     */
    public Builder setData(wechat.protobuf.SKBuiltinString_ value) {
      if (dataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        dataBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     */
    public Builder setData(
        wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
      if (dataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        dataBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     */
    public Builder mergeData(wechat.protobuf.SKBuiltinString_ value) {
      if (dataBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
            data_ != null &&
            data_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
          data_ =
            wechat.protobuf.SKBuiltinString_.newBuilder(data_).mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        dataBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     */
    public Builder clearData() {
      if (dataBuilder_ == null) {
        data_ = null;
        onChanged();
      } else {
        dataBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     */
    public wechat.protobuf.SKBuiltinString_.Builder getDataBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getDataFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     */
    public wechat.protobuf.SKBuiltinString_OrBuilder getDataOrBuilder() {
      if (dataBuilder_ != null) {
        return dataBuilder_.getMessageOrBuilder();
      } else {
        return data_ == null ?
            wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ data = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> 
        getDataFieldBuilder() {
      if (dataBuilder_ == null) {
        dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
                getData(),
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      return dataBuilder_;
    }

    private java.lang.Object imgHash_ = "";
    /**
     * optional string imgHash = 6;
     * @return Whether the imgHash field is set.
     */
    public boolean hasImgHash() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional string imgHash = 6;
     * @return The imgHash.
     */
    public java.lang.String getImgHash() {
      java.lang.Object ref = imgHash_;
      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()) {
          imgHash_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string imgHash = 6;
     * @return The bytes for imgHash.
     */
    public com.google.protobuf.ByteString
        getImgHashBytes() {
      java.lang.Object ref = imgHash_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        imgHash_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string imgHash = 6;
     * @param value The imgHash to set.
     * @return This builder for chaining.
     */
    public Builder setImgHash(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      imgHash_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string imgHash = 6;
     * @return This builder for chaining.
     */
    public Builder clearImgHash() {
      bitField0_ = (bitField0_ & ~0x00000020);
      imgHash_ = getDefaultInstance().getImgHash();
      onChanged();
      return this;
    }
    /**
     * optional string imgHash = 6;
     * @param value The bytes for imgHash to set.
     * @return This builder for chaining.
     */
    public Builder setImgHashBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      imgHash_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object userName_ = "";
    /**
     * optional string userName = 7;
     * @return Whether the userName field is set.
     */
    public boolean hasUserName() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional string userName = 7;
     * @return The userName.
     */
    public java.lang.String getUserName() {
      java.lang.Object ref = userName_;
      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()) {
          userName_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string userName = 7;
     * @return The bytes for userName.
     */
    public com.google.protobuf.ByteString
        getUserNameBytes() {
      java.lang.Object ref = userName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        userName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string userName = 7;
     * @param value The userName to set.
     * @return This builder for chaining.
     */
    public Builder setUserName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
      userName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string userName = 7;
     * @return This builder for chaining.
     */
    public Builder clearUserName() {
      bitField0_ = (bitField0_ & ~0x00000040);
      userName_ = getDefaultInstance().getUserName();
      onChanged();
      return this;
    }
    /**
     * optional string userName = 7;
     * @param value The bytes for userName to set.
     * @return This builder for chaining.
     */
    public Builder setUserNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
      userName_ = 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.UploadHDHeadImgRequest)
  }

  // @@protoc_insertion_point(class_scope:wechat_proto.UploadHDHeadImgRequest)
  private static final wechat.protobuf.UploadHDHeadImgRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new wechat.protobuf.UploadHDHeadImgRequest();
  }

  public static wechat.protobuf.UploadHDHeadImgRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public UploadHDHeadImgRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new UploadHDHeadImgRequest(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.UploadHDHeadImgRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy