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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ChatRoomMemberData(
      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 8: {
            bitField0_ |= 0x00000001;
            memberNum_ = input.readUInt32();
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              chatroomMemberList_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            chatroomMemberList_.add(
                input.readMessage(wechat.protobuf.ChatRoomMemberInfo.PARSER, extensionRegistry));
            break;
          }
          case 24: {
            bitField0_ |= 0x00000002;
            infoMask_ = input.readUInt32();
            break;
          }
          case 34: {
            wechat.protobuf.SKBuiltinString.Builder subBuilder = null;
            if (((bitField0_ & 0x00000004) != 0)) {
              subBuilder = unknow_.toBuilder();
            }
            unknow_ = input.readMessage(wechat.protobuf.SKBuiltinString.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(unknow_);
              unknow_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000004;
            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_ & 0x00000002) != 0)) {
        chatroomMemberList_ = java.util.Collections.unmodifiableList(chatroomMemberList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_ChatRoomMemberData_descriptor;
  }

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

  private int bitField0_;
  public static final int MEMBER_NUM_FIELD_NUMBER = 1;
  private int memberNum_;
  /**
   * optional uint32 member_num = 1;
   * @return Whether the memberNum field is set.
   */
  @java.lang.Override
  public boolean hasMemberNum() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional uint32 member_num = 1;
   * @return The memberNum.
   */
  @java.lang.Override
  public int getMemberNum() {
    return memberNum_;
  }

  public static final int CHATROOM_MEMBER_LIST_FIELD_NUMBER = 2;
  private java.util.List chatroomMemberList_;
  /**
   * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
   */
  @java.lang.Override
  public java.util.List getChatroomMemberListList() {
    return chatroomMemberList_;
  }
  /**
   * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
   */
  @java.lang.Override
  public java.util.List 
      getChatroomMemberListOrBuilderList() {
    return chatroomMemberList_;
  }
  /**
   * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
   */
  @java.lang.Override
  public int getChatroomMemberListCount() {
    return chatroomMemberList_.size();
  }
  /**
   * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
   */
  @java.lang.Override
  public wechat.protobuf.ChatRoomMemberInfo getChatroomMemberList(int index) {
    return chatroomMemberList_.get(index);
  }
  /**
   * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
   */
  @java.lang.Override
  public wechat.protobuf.ChatRoomMemberInfoOrBuilder getChatroomMemberListOrBuilder(
      int index) {
    return chatroomMemberList_.get(index);
  }

  public static final int INFO_MASK_FIELD_NUMBER = 3;
  private int infoMask_;
  /**
   * optional uint32 info_mask = 3;
   * @return Whether the infoMask field is set.
   */
  @java.lang.Override
  public boolean hasInfoMask() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional uint32 info_mask = 3;
   * @return The infoMask.
   */
  @java.lang.Override
  public int getInfoMask() {
    return infoMask_;
  }

  public static final int UNKNOW_FIELD_NUMBER = 4;
  private wechat.protobuf.SKBuiltinString unknow_;
  /**
   * optional .wechat_proto.SKBuiltinString unknow = 4;
   * @return Whether the unknow field is set.
   */
  @java.lang.Override
  public boolean hasUnknow() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString unknow = 4;
   * @return The unknow.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString getUnknow() {
    return unknow_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : unknow_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString unknow = 4;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinStringOrBuilder getUnknowOrBuilder() {
    return unknow_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : unknow_;
  }

  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.writeUInt32(1, memberNum_);
    }
    for (int i = 0; i < chatroomMemberList_.size(); i++) {
      output.writeMessage(2, chatroomMemberList_.get(i));
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeUInt32(3, infoMask_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(4, getUnknow());
    }
    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
        .computeUInt32Size(1, memberNum_);
    }
    for (int i = 0; i < chatroomMemberList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, chatroomMemberList_.get(i));
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, infoMask_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getUnknow());
    }
    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.ChatRoomMemberData)) {
      return super.equals(obj);
    }
    wechat.protobuf.ChatRoomMemberData other = (wechat.protobuf.ChatRoomMemberData) obj;

    if (hasMemberNum() != other.hasMemberNum()) return false;
    if (hasMemberNum()) {
      if (getMemberNum()
          != other.getMemberNum()) return false;
    }
    if (!getChatroomMemberListList()
        .equals(other.getChatroomMemberListList())) return false;
    if (hasInfoMask() != other.hasInfoMask()) return false;
    if (hasInfoMask()) {
      if (getInfoMask()
          != other.getInfoMask()) return false;
    }
    if (hasUnknow() != other.hasUnknow()) return false;
    if (hasUnknow()) {
      if (!getUnknow()
          .equals(other.getUnknow())) 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 (hasMemberNum()) {
      hash = (37 * hash) + MEMBER_NUM_FIELD_NUMBER;
      hash = (53 * hash) + getMemberNum();
    }
    if (getChatroomMemberListCount() > 0) {
      hash = (37 * hash) + CHATROOM_MEMBER_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getChatroomMemberListList().hashCode();
    }
    if (hasInfoMask()) {
      hash = (37 * hash) + INFO_MASK_FIELD_NUMBER;
      hash = (53 * hash) + getInfoMask();
    }
    if (hasUnknow()) {
      hash = (37 * hash) + UNKNOW_FIELD_NUMBER;
      hash = (53 * hash) + getUnknow().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getChatroomMemberListFieldBuilder();
        getUnknowFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      memberNum_ = 0;
      bitField0_ = (bitField0_ & ~0x00000001);
      if (chatroomMemberListBuilder_ == null) {
        chatroomMemberList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        chatroomMemberListBuilder_.clear();
      }
      infoMask_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      if (unknowBuilder_ == null) {
        unknow_ = null;
      } else {
        unknowBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.ChatRoomMemberData buildPartial() {
      wechat.protobuf.ChatRoomMemberData result = new wechat.protobuf.ChatRoomMemberData(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.memberNum_ = memberNum_;
        to_bitField0_ |= 0x00000001;
      }
      if (chatroomMemberListBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          chatroomMemberList_ = java.util.Collections.unmodifiableList(chatroomMemberList_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.chatroomMemberList_ = chatroomMemberList_;
      } else {
        result.chatroomMemberList_ = chatroomMemberListBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.infoMask_ = infoMask_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        if (unknowBuilder_ == null) {
          result.unknow_ = unknow_;
        } else {
          result.unknow_ = unknowBuilder_.build();
        }
        to_bitField0_ |= 0x00000004;
      }
      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.ChatRoomMemberData) {
        return mergeFrom((wechat.protobuf.ChatRoomMemberData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.ChatRoomMemberData other) {
      if (other == wechat.protobuf.ChatRoomMemberData.getDefaultInstance()) return this;
      if (other.hasMemberNum()) {
        setMemberNum(other.getMemberNum());
      }
      if (chatroomMemberListBuilder_ == null) {
        if (!other.chatroomMemberList_.isEmpty()) {
          if (chatroomMemberList_.isEmpty()) {
            chatroomMemberList_ = other.chatroomMemberList_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureChatroomMemberListIsMutable();
            chatroomMemberList_.addAll(other.chatroomMemberList_);
          }
          onChanged();
        }
      } else {
        if (!other.chatroomMemberList_.isEmpty()) {
          if (chatroomMemberListBuilder_.isEmpty()) {
            chatroomMemberListBuilder_.dispose();
            chatroomMemberListBuilder_ = null;
            chatroomMemberList_ = other.chatroomMemberList_;
            bitField0_ = (bitField0_ & ~0x00000002);
            chatroomMemberListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getChatroomMemberListFieldBuilder() : null;
          } else {
            chatroomMemberListBuilder_.addAllMessages(other.chatroomMemberList_);
          }
        }
      }
      if (other.hasInfoMask()) {
        setInfoMask(other.getInfoMask());
      }
      if (other.hasUnknow()) {
        mergeUnknow(other.getUnknow());
      }
      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.ChatRoomMemberData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.ChatRoomMemberData) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int memberNum_ ;
    /**
     * optional uint32 member_num = 1;
     * @return Whether the memberNum field is set.
     */
    @java.lang.Override
    public boolean hasMemberNum() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional uint32 member_num = 1;
     * @return The memberNum.
     */
    @java.lang.Override
    public int getMemberNum() {
      return memberNum_;
    }
    /**
     * optional uint32 member_num = 1;
     * @param value The memberNum to set.
     * @return This builder for chaining.
     */
    public Builder setMemberNum(int value) {
      bitField0_ |= 0x00000001;
      memberNum_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 member_num = 1;
     * @return This builder for chaining.
     */
    public Builder clearMemberNum() {
      bitField0_ = (bitField0_ & ~0x00000001);
      memberNum_ = 0;
      onChanged();
      return this;
    }

    private java.util.List chatroomMemberList_ =
      java.util.Collections.emptyList();
    private void ensureChatroomMemberListIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        chatroomMemberList_ = new java.util.ArrayList(chatroomMemberList_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        wechat.protobuf.ChatRoomMemberInfo, wechat.protobuf.ChatRoomMemberInfo.Builder, wechat.protobuf.ChatRoomMemberInfoOrBuilder> chatroomMemberListBuilder_;

    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public java.util.List getChatroomMemberListList() {
      if (chatroomMemberListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(chatroomMemberList_);
      } else {
        return chatroomMemberListBuilder_.getMessageList();
      }
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public int getChatroomMemberListCount() {
      if (chatroomMemberListBuilder_ == null) {
        return chatroomMemberList_.size();
      } else {
        return chatroomMemberListBuilder_.getCount();
      }
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public wechat.protobuf.ChatRoomMemberInfo getChatroomMemberList(int index) {
      if (chatroomMemberListBuilder_ == null) {
        return chatroomMemberList_.get(index);
      } else {
        return chatroomMemberListBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder setChatroomMemberList(
        int index, wechat.protobuf.ChatRoomMemberInfo value) {
      if (chatroomMemberListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChatroomMemberListIsMutable();
        chatroomMemberList_.set(index, value);
        onChanged();
      } else {
        chatroomMemberListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder setChatroomMemberList(
        int index, wechat.protobuf.ChatRoomMemberInfo.Builder builderForValue) {
      if (chatroomMemberListBuilder_ == null) {
        ensureChatroomMemberListIsMutable();
        chatroomMemberList_.set(index, builderForValue.build());
        onChanged();
      } else {
        chatroomMemberListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder addChatroomMemberList(wechat.protobuf.ChatRoomMemberInfo value) {
      if (chatroomMemberListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChatroomMemberListIsMutable();
        chatroomMemberList_.add(value);
        onChanged();
      } else {
        chatroomMemberListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder addChatroomMemberList(
        int index, wechat.protobuf.ChatRoomMemberInfo value) {
      if (chatroomMemberListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureChatroomMemberListIsMutable();
        chatroomMemberList_.add(index, value);
        onChanged();
      } else {
        chatroomMemberListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder addChatroomMemberList(
        wechat.protobuf.ChatRoomMemberInfo.Builder builderForValue) {
      if (chatroomMemberListBuilder_ == null) {
        ensureChatroomMemberListIsMutable();
        chatroomMemberList_.add(builderForValue.build());
        onChanged();
      } else {
        chatroomMemberListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder addChatroomMemberList(
        int index, wechat.protobuf.ChatRoomMemberInfo.Builder builderForValue) {
      if (chatroomMemberListBuilder_ == null) {
        ensureChatroomMemberListIsMutable();
        chatroomMemberList_.add(index, builderForValue.build());
        onChanged();
      } else {
        chatroomMemberListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder addAllChatroomMemberList(
        java.lang.Iterable values) {
      if (chatroomMemberListBuilder_ == null) {
        ensureChatroomMemberListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, chatroomMemberList_);
        onChanged();
      } else {
        chatroomMemberListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder clearChatroomMemberList() {
      if (chatroomMemberListBuilder_ == null) {
        chatroomMemberList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        chatroomMemberListBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public Builder removeChatroomMemberList(int index) {
      if (chatroomMemberListBuilder_ == null) {
        ensureChatroomMemberListIsMutable();
        chatroomMemberList_.remove(index);
        onChanged();
      } else {
        chatroomMemberListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public wechat.protobuf.ChatRoomMemberInfo.Builder getChatroomMemberListBuilder(
        int index) {
      return getChatroomMemberListFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public wechat.protobuf.ChatRoomMemberInfoOrBuilder getChatroomMemberListOrBuilder(
        int index) {
      if (chatroomMemberListBuilder_ == null) {
        return chatroomMemberList_.get(index);  } else {
        return chatroomMemberListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public java.util.List 
         getChatroomMemberListOrBuilderList() {
      if (chatroomMemberListBuilder_ != null) {
        return chatroomMemberListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(chatroomMemberList_);
      }
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public wechat.protobuf.ChatRoomMemberInfo.Builder addChatroomMemberListBuilder() {
      return getChatroomMemberListFieldBuilder().addBuilder(
          wechat.protobuf.ChatRoomMemberInfo.getDefaultInstance());
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public wechat.protobuf.ChatRoomMemberInfo.Builder addChatroomMemberListBuilder(
        int index) {
      return getChatroomMemberListFieldBuilder().addBuilder(
          index, wechat.protobuf.ChatRoomMemberInfo.getDefaultInstance());
    }
    /**
     * repeated .wechat_proto.ChatRoomMemberInfo chatroom_member_list = 2;
     */
    public java.util.List 
         getChatroomMemberListBuilderList() {
      return getChatroomMemberListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        wechat.protobuf.ChatRoomMemberInfo, wechat.protobuf.ChatRoomMemberInfo.Builder, wechat.protobuf.ChatRoomMemberInfoOrBuilder> 
        getChatroomMemberListFieldBuilder() {
      if (chatroomMemberListBuilder_ == null) {
        chatroomMemberListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            wechat.protobuf.ChatRoomMemberInfo, wechat.protobuf.ChatRoomMemberInfo.Builder, wechat.protobuf.ChatRoomMemberInfoOrBuilder>(
                chatroomMemberList_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        chatroomMemberList_ = null;
      }
      return chatroomMemberListBuilder_;
    }

    private int infoMask_ ;
    /**
     * optional uint32 info_mask = 3;
     * @return Whether the infoMask field is set.
     */
    @java.lang.Override
    public boolean hasInfoMask() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint32 info_mask = 3;
     * @return The infoMask.
     */
    @java.lang.Override
    public int getInfoMask() {
      return infoMask_;
    }
    /**
     * optional uint32 info_mask = 3;
     * @param value The infoMask to set.
     * @return This builder for chaining.
     */
    public Builder setInfoMask(int value) {
      bitField0_ |= 0x00000004;
      infoMask_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 info_mask = 3;
     * @return This builder for chaining.
     */
    public Builder clearInfoMask() {
      bitField0_ = (bitField0_ & ~0x00000004);
      infoMask_ = 0;
      onChanged();
      return this;
    }

    private wechat.protobuf.SKBuiltinString unknow_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> unknowBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     * @return Whether the unknow field is set.
     */
    public boolean hasUnknow() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     * @return The unknow.
     */
    public wechat.protobuf.SKBuiltinString getUnknow() {
      if (unknowBuilder_ == null) {
        return unknow_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : unknow_;
      } else {
        return unknowBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     */
    public Builder setUnknow(wechat.protobuf.SKBuiltinString value) {
      if (unknowBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        unknow_ = value;
        onChanged();
      } else {
        unknowBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     */
    public Builder setUnknow(
        wechat.protobuf.SKBuiltinString.Builder builderForValue) {
      if (unknowBuilder_ == null) {
        unknow_ = builderForValue.build();
        onChanged();
      } else {
        unknowBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     */
    public Builder mergeUnknow(wechat.protobuf.SKBuiltinString value) {
      if (unknowBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
            unknow_ != null &&
            unknow_ != wechat.protobuf.SKBuiltinString.getDefaultInstance()) {
          unknow_ =
            wechat.protobuf.SKBuiltinString.newBuilder(unknow_).mergeFrom(value).buildPartial();
        } else {
          unknow_ = value;
        }
        onChanged();
      } else {
        unknowBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     */
    public Builder clearUnknow() {
      if (unknowBuilder_ == null) {
        unknow_ = null;
        onChanged();
      } else {
        unknowBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     */
    public wechat.protobuf.SKBuiltinString.Builder getUnknowBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getUnknowFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     */
    public wechat.protobuf.SKBuiltinStringOrBuilder getUnknowOrBuilder() {
      if (unknowBuilder_ != null) {
        return unknowBuilder_.getMessageOrBuilder();
      } else {
        return unknow_ == null ?
            wechat.protobuf.SKBuiltinString.getDefaultInstance() : unknow_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString unknow = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> 
        getUnknowFieldBuilder() {
      if (unknowBuilder_ == null) {
        unknowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>(
                getUnknow(),
                getParentForChildren(),
                isClean());
        unknow_ = null;
      }
      return unknowBuilder_;
    }
    @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.ChatRoomMemberData)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy