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

wechat.protobuf.AddContactLabelRequest 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.AddContactLabelRequest}
 */
public final class AddContactLabelRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.AddContactLabelRequest)
    AddContactLabelRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AddContactLabelRequest.newBuilder() to construct.
  private AddContactLabelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private AddContactLabelRequest() {
    labelPairList_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AddContactLabelRequest(
      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;
            labelNum_ = input.readUInt32();
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              labelPairList_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            labelPairList_.add(
                input.readMessage(wechat.protobuf.LabelPair.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)) {
        labelPairList_ = java.util.Collections.unmodifiableList(labelPairList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_AddContactLabelRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_AddContactLabelRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.AddContactLabelRequest.class, wechat.protobuf.AddContactLabelRequest.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 LABELNUM_FIELD_NUMBER = 2;
  private int labelNum_;
  /**
   * optional uint32 labelNum = 2;
   * @return Whether the labelNum field is set.
   */
  @java.lang.Override
  public boolean hasLabelNum() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional uint32 labelNum = 2;
   * @return The labelNum.
   */
  @java.lang.Override
  public int getLabelNum() {
    return labelNum_;
  }

  public static final int LABELPAIRLIST_FIELD_NUMBER = 3;
  private java.util.List labelPairList_;
  /**
   * repeated .wechat_proto.LabelPair labelPairList = 3;
   */
  @java.lang.Override
  public java.util.List getLabelPairListList() {
    return labelPairList_;
  }
  /**
   * repeated .wechat_proto.LabelPair labelPairList = 3;
   */
  @java.lang.Override
  public java.util.List 
      getLabelPairListOrBuilderList() {
    return labelPairList_;
  }
  /**
   * repeated .wechat_proto.LabelPair labelPairList = 3;
   */
  @java.lang.Override
  public int getLabelPairListCount() {
    return labelPairList_.size();
  }
  /**
   * repeated .wechat_proto.LabelPair labelPairList = 3;
   */
  @java.lang.Override
  public wechat.protobuf.LabelPair getLabelPairList(int index) {
    return labelPairList_.get(index);
  }
  /**
   * repeated .wechat_proto.LabelPair labelPairList = 3;
   */
  @java.lang.Override
  public wechat.protobuf.LabelPairOrBuilder getLabelPairListOrBuilder(
      int index) {
    return labelPairList_.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, getBaseRequest());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeUInt32(2, labelNum_);
    }
    for (int i = 0; i < labelPairList_.size(); i++) {
      output.writeMessage(3, labelPairList_.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, getBaseRequest());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(2, labelNum_);
    }
    for (int i = 0; i < labelPairList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, labelPairList_.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.AddContactLabelRequest)) {
      return super.equals(obj);
    }
    wechat.protobuf.AddContactLabelRequest other = (wechat.protobuf.AddContactLabelRequest) obj;

    if (hasBaseRequest() != other.hasBaseRequest()) return false;
    if (hasBaseRequest()) {
      if (!getBaseRequest()
          .equals(other.getBaseRequest())) return false;
    }
    if (hasLabelNum() != other.hasLabelNum()) return false;
    if (hasLabelNum()) {
      if (getLabelNum()
          != other.getLabelNum()) return false;
    }
    if (!getLabelPairListList()
        .equals(other.getLabelPairListList())) 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 (hasLabelNum()) {
      hash = (37 * hash) + LABELNUM_FIELD_NUMBER;
      hash = (53 * hash) + getLabelNum();
    }
    if (getLabelPairListCount() > 0) {
      hash = (37 * hash) + LABELPAIRLIST_FIELD_NUMBER;
      hash = (53 * hash) + getLabelPairListList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using wechat.protobuf.AddContactLabelRequest.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();
        getLabelPairListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (baseRequestBuilder_ == null) {
        baseRequest_ = null;
      } else {
        baseRequestBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      labelNum_ = 0;
      bitField0_ = (bitField0_ & ~0x00000002);
      if (labelPairListBuilder_ == null) {
        labelPairList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        labelPairListBuilder_.clear();
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.AddContactLabelRequest buildPartial() {
      wechat.protobuf.AddContactLabelRequest result = new wechat.protobuf.AddContactLabelRequest(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.labelNum_ = labelNum_;
        to_bitField0_ |= 0x00000002;
      }
      if (labelPairListBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          labelPairList_ = java.util.Collections.unmodifiableList(labelPairList_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.labelPairList_ = labelPairList_;
      } else {
        result.labelPairList_ = labelPairListBuilder_.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.AddContactLabelRequest) {
        return mergeFrom((wechat.protobuf.AddContactLabelRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.AddContactLabelRequest other) {
      if (other == wechat.protobuf.AddContactLabelRequest.getDefaultInstance()) return this;
      if (other.hasBaseRequest()) {
        mergeBaseRequest(other.getBaseRequest());
      }
      if (other.hasLabelNum()) {
        setLabelNum(other.getLabelNum());
      }
      if (labelPairListBuilder_ == null) {
        if (!other.labelPairList_.isEmpty()) {
          if (labelPairList_.isEmpty()) {
            labelPairList_ = other.labelPairList_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureLabelPairListIsMutable();
            labelPairList_.addAll(other.labelPairList_);
          }
          onChanged();
        }
      } else {
        if (!other.labelPairList_.isEmpty()) {
          if (labelPairListBuilder_.isEmpty()) {
            labelPairListBuilder_.dispose();
            labelPairListBuilder_ = null;
            labelPairList_ = other.labelPairList_;
            bitField0_ = (bitField0_ & ~0x00000004);
            labelPairListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getLabelPairListFieldBuilder() : null;
          } else {
            labelPairListBuilder_.addAllMessages(other.labelPairList_);
          }
        }
      }
      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.AddContactLabelRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.AddContactLabelRequest) 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 labelNum_ ;
    /**
     * optional uint32 labelNum = 2;
     * @return Whether the labelNum field is set.
     */
    @java.lang.Override
    public boolean hasLabelNum() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional uint32 labelNum = 2;
     * @return The labelNum.
     */
    @java.lang.Override
    public int getLabelNum() {
      return labelNum_;
    }
    /**
     * optional uint32 labelNum = 2;
     * @param value The labelNum to set.
     * @return This builder for chaining.
     */
    public Builder setLabelNum(int value) {
      bitField0_ |= 0x00000002;
      labelNum_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 labelNum = 2;
     * @return This builder for chaining.
     */
    public Builder clearLabelNum() {
      bitField0_ = (bitField0_ & ~0x00000002);
      labelNum_ = 0;
      onChanged();
      return this;
    }

    private java.util.List labelPairList_ =
      java.util.Collections.emptyList();
    private void ensureLabelPairListIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        labelPairList_ = new java.util.ArrayList(labelPairList_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        wechat.protobuf.LabelPair, wechat.protobuf.LabelPair.Builder, wechat.protobuf.LabelPairOrBuilder> labelPairListBuilder_;

    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public java.util.List getLabelPairListList() {
      if (labelPairListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(labelPairList_);
      } else {
        return labelPairListBuilder_.getMessageList();
      }
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public int getLabelPairListCount() {
      if (labelPairListBuilder_ == null) {
        return labelPairList_.size();
      } else {
        return labelPairListBuilder_.getCount();
      }
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public wechat.protobuf.LabelPair getLabelPairList(int index) {
      if (labelPairListBuilder_ == null) {
        return labelPairList_.get(index);
      } else {
        return labelPairListBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder setLabelPairList(
        int index, wechat.protobuf.LabelPair value) {
      if (labelPairListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLabelPairListIsMutable();
        labelPairList_.set(index, value);
        onChanged();
      } else {
        labelPairListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder setLabelPairList(
        int index, wechat.protobuf.LabelPair.Builder builderForValue) {
      if (labelPairListBuilder_ == null) {
        ensureLabelPairListIsMutable();
        labelPairList_.set(index, builderForValue.build());
        onChanged();
      } else {
        labelPairListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder addLabelPairList(wechat.protobuf.LabelPair value) {
      if (labelPairListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLabelPairListIsMutable();
        labelPairList_.add(value);
        onChanged();
      } else {
        labelPairListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder addLabelPairList(
        int index, wechat.protobuf.LabelPair value) {
      if (labelPairListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLabelPairListIsMutable();
        labelPairList_.add(index, value);
        onChanged();
      } else {
        labelPairListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder addLabelPairList(
        wechat.protobuf.LabelPair.Builder builderForValue) {
      if (labelPairListBuilder_ == null) {
        ensureLabelPairListIsMutable();
        labelPairList_.add(builderForValue.build());
        onChanged();
      } else {
        labelPairListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder addLabelPairList(
        int index, wechat.protobuf.LabelPair.Builder builderForValue) {
      if (labelPairListBuilder_ == null) {
        ensureLabelPairListIsMutable();
        labelPairList_.add(index, builderForValue.build());
        onChanged();
      } else {
        labelPairListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder addAllLabelPairList(
        java.lang.Iterable values) {
      if (labelPairListBuilder_ == null) {
        ensureLabelPairListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, labelPairList_);
        onChanged();
      } else {
        labelPairListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder clearLabelPairList() {
      if (labelPairListBuilder_ == null) {
        labelPairList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        labelPairListBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public Builder removeLabelPairList(int index) {
      if (labelPairListBuilder_ == null) {
        ensureLabelPairListIsMutable();
        labelPairList_.remove(index);
        onChanged();
      } else {
        labelPairListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public wechat.protobuf.LabelPair.Builder getLabelPairListBuilder(
        int index) {
      return getLabelPairListFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public wechat.protobuf.LabelPairOrBuilder getLabelPairListOrBuilder(
        int index) {
      if (labelPairListBuilder_ == null) {
        return labelPairList_.get(index);  } else {
        return labelPairListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public java.util.List 
         getLabelPairListOrBuilderList() {
      if (labelPairListBuilder_ != null) {
        return labelPairListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(labelPairList_);
      }
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public wechat.protobuf.LabelPair.Builder addLabelPairListBuilder() {
      return getLabelPairListFieldBuilder().addBuilder(
          wechat.protobuf.LabelPair.getDefaultInstance());
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public wechat.protobuf.LabelPair.Builder addLabelPairListBuilder(
        int index) {
      return getLabelPairListFieldBuilder().addBuilder(
          index, wechat.protobuf.LabelPair.getDefaultInstance());
    }
    /**
     * repeated .wechat_proto.LabelPair labelPairList = 3;
     */
    public java.util.List 
         getLabelPairListBuilderList() {
      return getLabelPairListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        wechat.protobuf.LabelPair, wechat.protobuf.LabelPair.Builder, wechat.protobuf.LabelPairOrBuilder> 
        getLabelPairListFieldBuilder() {
      if (labelPairListBuilder_ == null) {
        labelPairListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            wechat.protobuf.LabelPair, wechat.protobuf.LabelPair.Builder, wechat.protobuf.LabelPairOrBuilder>(
                labelPairList_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        labelPairList_ = null;
      }
      return labelPairListBuilder_;
    }
    @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.AddContactLabelRequest)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy