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

wechat.protobuf.InitContactResp 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.InitContactResp}
 */
public final class InitContactResp extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.InitContactResp)
    InitContactRespOrBuilder {
private static final long serialVersionUID = 0L;
  // Use InitContactResp.newBuilder() to construct.
  private InitContactResp(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private InitContactResp() {
    contactUsernameList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private InitContactResp(
      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;
            currentWxcontactSeq_ = input.readUInt32();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            currentChatRoomContactSeq_ = input.readUInt32();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            continueFlag_ = input.readUInt32();
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
              contactUsernameList_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            contactUsernameList_.add(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 {
      if (((mutable_bitField0_ & 0x00000010) != 0)) {
        contactUsernameList_ = contactUsernameList_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_InitContactResp_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_InitContactResp_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.InitContactResp.class, wechat.protobuf.InitContactResp.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 CURRENTWXCONTACTSEQ_FIELD_NUMBER = 2;
  private int currentWxcontactSeq_;
  /**
   * optional uint32 currentWxcontactSeq = 2;
   * @return Whether the currentWxcontactSeq field is set.
   */
  @java.lang.Override
  public boolean hasCurrentWxcontactSeq() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional uint32 currentWxcontactSeq = 2;
   * @return The currentWxcontactSeq.
   */
  @java.lang.Override
  public int getCurrentWxcontactSeq() {
    return currentWxcontactSeq_;
  }

  public static final int CURRENTCHATROOMCONTACTSEQ_FIELD_NUMBER = 3;
  private int currentChatRoomContactSeq_;
  /**
   * optional uint32 currentChatRoomContactSeq = 3;
   * @return Whether the currentChatRoomContactSeq field is set.
   */
  @java.lang.Override
  public boolean hasCurrentChatRoomContactSeq() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional uint32 currentChatRoomContactSeq = 3;
   * @return The currentChatRoomContactSeq.
   */
  @java.lang.Override
  public int getCurrentChatRoomContactSeq() {
    return currentChatRoomContactSeq_;
  }

  public static final int CONTINUEFLAG_FIELD_NUMBER = 4;
  private int continueFlag_;
  /**
   * optional uint32 continueFlag = 4;
   * @return Whether the continueFlag field is set.
   */
  @java.lang.Override
  public boolean hasContinueFlag() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional uint32 continueFlag = 4;
   * @return The continueFlag.
   */
  @java.lang.Override
  public int getContinueFlag() {
    return continueFlag_;
  }

  public static final int CONTACTUSERNAMELIST_FIELD_NUMBER = 5;
  private com.google.protobuf.LazyStringList contactUsernameList_;
  /**
   * repeated string contactUsernameList = 5;
   * @return A list containing the contactUsernameList.
   */
  public com.google.protobuf.ProtocolStringList
      getContactUsernameListList() {
    return contactUsernameList_;
  }
  /**
   * repeated string contactUsernameList = 5;
   * @return The count of contactUsernameList.
   */
  public int getContactUsernameListCount() {
    return contactUsernameList_.size();
  }
  /**
   * repeated string contactUsernameList = 5;
   * @param index The index of the element to return.
   * @return The contactUsernameList at the given index.
   */
  public java.lang.String getContactUsernameList(int index) {
    return contactUsernameList_.get(index);
  }
  /**
   * repeated string contactUsernameList = 5;
   * @param index The index of the value to return.
   * @return The bytes of the contactUsernameList at the given index.
   */
  public com.google.protobuf.ByteString
      getContactUsernameListBytes(int index) {
    return contactUsernameList_.getByteString(index);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getBaseResponse());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeUInt32(2, currentWxcontactSeq_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt32(3, currentChatRoomContactSeq_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeUInt32(4, continueFlag_);
    }
    for (int i = 0; i < contactUsernameList_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contactUsernameList_.getRaw(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getBaseResponse());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(2, currentWxcontactSeq_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, currentChatRoomContactSeq_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(4, continueFlag_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < contactUsernameList_.size(); i++) {
        dataSize += computeStringSizeNoTag(contactUsernameList_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getContactUsernameListList().size();
    }
    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.InitContactResp)) {
      return super.equals(obj);
    }
    wechat.protobuf.InitContactResp other = (wechat.protobuf.InitContactResp) obj;

    if (hasBaseResponse() != other.hasBaseResponse()) return false;
    if (hasBaseResponse()) {
      if (!getBaseResponse()
          .equals(other.getBaseResponse())) return false;
    }
    if (hasCurrentWxcontactSeq() != other.hasCurrentWxcontactSeq()) return false;
    if (hasCurrentWxcontactSeq()) {
      if (getCurrentWxcontactSeq()
          != other.getCurrentWxcontactSeq()) return false;
    }
    if (hasCurrentChatRoomContactSeq() != other.hasCurrentChatRoomContactSeq()) return false;
    if (hasCurrentChatRoomContactSeq()) {
      if (getCurrentChatRoomContactSeq()
          != other.getCurrentChatRoomContactSeq()) return false;
    }
    if (hasContinueFlag() != other.hasContinueFlag()) return false;
    if (hasContinueFlag()) {
      if (getContinueFlag()
          != other.getContinueFlag()) return false;
    }
    if (!getContactUsernameListList()
        .equals(other.getContactUsernameListList())) 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 (hasCurrentWxcontactSeq()) {
      hash = (37 * hash) + CURRENTWXCONTACTSEQ_FIELD_NUMBER;
      hash = (53 * hash) + getCurrentWxcontactSeq();
    }
    if (hasCurrentChatRoomContactSeq()) {
      hash = (37 * hash) + CURRENTCHATROOMCONTACTSEQ_FIELD_NUMBER;
      hash = (53 * hash) + getCurrentChatRoomContactSeq();
    }
    if (hasContinueFlag()) {
      hash = (37 * hash) + CONTINUEFLAG_FIELD_NUMBER;
      hash = (53 * hash) + getContinueFlag();
    }
    if (getContactUsernameListCount() > 0) {
      hash = (37 * hash) + CONTACTUSERNAMELIST_FIELD_NUMBER;
      hash = (53 * hash) + getContactUsernameListList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using wechat.protobuf.InitContactResp.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);
      currentWxcontactSeq_ = 0;
      bitField0_ = (bitField0_ & ~0x00000002);
      currentChatRoomContactSeq_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      continueFlag_ = 0;
      bitField0_ = (bitField0_ & ~0x00000008);
      contactUsernameList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.InitContactResp buildPartial() {
      wechat.protobuf.InitContactResp result = new wechat.protobuf.InitContactResp(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.currentWxcontactSeq_ = currentWxcontactSeq_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.currentChatRoomContactSeq_ = currentChatRoomContactSeq_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.continueFlag_ = continueFlag_;
        to_bitField0_ |= 0x00000008;
      }
      if (((bitField0_ & 0x00000010) != 0)) {
        contactUsernameList_ = contactUsernameList_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000010);
      }
      result.contactUsernameList_ = contactUsernameList_;
      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.InitContactResp) {
        return mergeFrom((wechat.protobuf.InitContactResp)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.InitContactResp other) {
      if (other == wechat.protobuf.InitContactResp.getDefaultInstance()) return this;
      if (other.hasBaseResponse()) {
        mergeBaseResponse(other.getBaseResponse());
      }
      if (other.hasCurrentWxcontactSeq()) {
        setCurrentWxcontactSeq(other.getCurrentWxcontactSeq());
      }
      if (other.hasCurrentChatRoomContactSeq()) {
        setCurrentChatRoomContactSeq(other.getCurrentChatRoomContactSeq());
      }
      if (other.hasContinueFlag()) {
        setContinueFlag(other.getContinueFlag());
      }
      if (!other.contactUsernameList_.isEmpty()) {
        if (contactUsernameList_.isEmpty()) {
          contactUsernameList_ = other.contactUsernameList_;
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          ensureContactUsernameListIsMutable();
          contactUsernameList_.addAll(other.contactUsernameList_);
        }
        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.InitContactResp parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.InitContactResp) 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 currentWxcontactSeq_ ;
    /**
     * optional uint32 currentWxcontactSeq = 2;
     * @return Whether the currentWxcontactSeq field is set.
     */
    @java.lang.Override
    public boolean hasCurrentWxcontactSeq() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional uint32 currentWxcontactSeq = 2;
     * @return The currentWxcontactSeq.
     */
    @java.lang.Override
    public int getCurrentWxcontactSeq() {
      return currentWxcontactSeq_;
    }
    /**
     * optional uint32 currentWxcontactSeq = 2;
     * @param value The currentWxcontactSeq to set.
     * @return This builder for chaining.
     */
    public Builder setCurrentWxcontactSeq(int value) {
      bitField0_ |= 0x00000002;
      currentWxcontactSeq_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 currentWxcontactSeq = 2;
     * @return This builder for chaining.
     */
    public Builder clearCurrentWxcontactSeq() {
      bitField0_ = (bitField0_ & ~0x00000002);
      currentWxcontactSeq_ = 0;
      onChanged();
      return this;
    }

    private int currentChatRoomContactSeq_ ;
    /**
     * optional uint32 currentChatRoomContactSeq = 3;
     * @return Whether the currentChatRoomContactSeq field is set.
     */
    @java.lang.Override
    public boolean hasCurrentChatRoomContactSeq() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint32 currentChatRoomContactSeq = 3;
     * @return The currentChatRoomContactSeq.
     */
    @java.lang.Override
    public int getCurrentChatRoomContactSeq() {
      return currentChatRoomContactSeq_;
    }
    /**
     * optional uint32 currentChatRoomContactSeq = 3;
     * @param value The currentChatRoomContactSeq to set.
     * @return This builder for chaining.
     */
    public Builder setCurrentChatRoomContactSeq(int value) {
      bitField0_ |= 0x00000004;
      currentChatRoomContactSeq_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 currentChatRoomContactSeq = 3;
     * @return This builder for chaining.
     */
    public Builder clearCurrentChatRoomContactSeq() {
      bitField0_ = (bitField0_ & ~0x00000004);
      currentChatRoomContactSeq_ = 0;
      onChanged();
      return this;
    }

    private int continueFlag_ ;
    /**
     * optional uint32 continueFlag = 4;
     * @return Whether the continueFlag field is set.
     */
    @java.lang.Override
    public boolean hasContinueFlag() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional uint32 continueFlag = 4;
     * @return The continueFlag.
     */
    @java.lang.Override
    public int getContinueFlag() {
      return continueFlag_;
    }
    /**
     * optional uint32 continueFlag = 4;
     * @param value The continueFlag to set.
     * @return This builder for chaining.
     */
    public Builder setContinueFlag(int value) {
      bitField0_ |= 0x00000008;
      continueFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 continueFlag = 4;
     * @return This builder for chaining.
     */
    public Builder clearContinueFlag() {
      bitField0_ = (bitField0_ & ~0x00000008);
      continueFlag_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList contactUsernameList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureContactUsernameListIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        contactUsernameList_ = new com.google.protobuf.LazyStringArrayList(contactUsernameList_);
        bitField0_ |= 0x00000010;
       }
    }
    /**
     * repeated string contactUsernameList = 5;
     * @return A list containing the contactUsernameList.
     */
    public com.google.protobuf.ProtocolStringList
        getContactUsernameListList() {
      return contactUsernameList_.getUnmodifiableView();
    }
    /**
     * repeated string contactUsernameList = 5;
     * @return The count of contactUsernameList.
     */
    public int getContactUsernameListCount() {
      return contactUsernameList_.size();
    }
    /**
     * repeated string contactUsernameList = 5;
     * @param index The index of the element to return.
     * @return The contactUsernameList at the given index.
     */
    public java.lang.String getContactUsernameList(int index) {
      return contactUsernameList_.get(index);
    }
    /**
     * repeated string contactUsernameList = 5;
     * @param index The index of the value to return.
     * @return The bytes of the contactUsernameList at the given index.
     */
    public com.google.protobuf.ByteString
        getContactUsernameListBytes(int index) {
      return contactUsernameList_.getByteString(index);
    }
    /**
     * repeated string contactUsernameList = 5;
     * @param index The index to set the value at.
     * @param value The contactUsernameList to set.
     * @return This builder for chaining.
     */
    public Builder setContactUsernameList(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureContactUsernameListIsMutable();
      contactUsernameList_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated string contactUsernameList = 5;
     * @param value The contactUsernameList to add.
     * @return This builder for chaining.
     */
    public Builder addContactUsernameList(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureContactUsernameListIsMutable();
      contactUsernameList_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated string contactUsernameList = 5;
     * @param values The contactUsernameList to add.
     * @return This builder for chaining.
     */
    public Builder addAllContactUsernameList(
        java.lang.Iterable values) {
      ensureContactUsernameListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, contactUsernameList_);
      onChanged();
      return this;
    }
    /**
     * repeated string contactUsernameList = 5;
     * @return This builder for chaining.
     */
    public Builder clearContactUsernameList() {
      contactUsernameList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     * repeated string contactUsernameList = 5;
     * @param value The bytes of the contactUsernameList to add.
     * @return This builder for chaining.
     */
    public Builder addContactUsernameListBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureContactUsernameListIsMutable();
      contactUsernameList_.add(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.InitContactResp)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy