// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: im.proto

package com.ywt.gapi.im;

/**
 * Protobuf type {@code com.ywt.gapi.im.GetChatsResponse}
 */
public final class GetChatsResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.im.GetChatsResponse)
    GetChatsResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetChatsResponse.newBuilder() to construct.
  private GetChatsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetChatsResponse() {
    datas_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GetChatsResponse(
      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: {

            code_ = input.readInt32();
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              datas_ = new java.util.ArrayList<com.ywt.gapi.im.SessionMessage>();
              mutable_bitField0_ |= 0x00000001;
            }
            datas_.add(
                input.readMessage(com.ywt.gapi.im.SessionMessage.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_ & 0x00000001) != 0)) {
        datas_ = java.util.Collections.unmodifiableList(datas_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.im.ImProto.internal_static_com_ywt_gapi_im_GetChatsResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.im.ImProto.internal_static_com_ywt_gapi_im_GetChatsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.im.GetChatsResponse.class, com.ywt.gapi.im.GetChatsResponse.Builder.class);
  }

  public static final int CODE_FIELD_NUMBER = 1;
  private int code_;
  /**
   * <code>int32 code = 1;</code>
   * @return The code.
   */
  @java.lang.Override
  public int getCode() {
    return code_;
  }

  public static final int DATAS_FIELD_NUMBER = 2;
  private java.util.List<com.ywt.gapi.im.SessionMessage> datas_;
  /**
   * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.im.SessionMessage> getDatasList() {
    return datas_;
  }
  /**
   * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.im.SessionMessageOrBuilder> 
      getDatasOrBuilderList() {
    return datas_;
  }
  /**
   * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
   */
  @java.lang.Override
  public int getDatasCount() {
    return datas_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.im.SessionMessage getDatas(int index) {
    return datas_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.im.SessionMessageOrBuilder getDatasOrBuilder(
      int index) {
    return datas_.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 (code_ != 0) {
      output.writeInt32(1, code_);
    }
    for (int i = 0; i < datas_.size(); i++) {
      output.writeMessage(2, datas_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (code_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, code_);
    }
    for (int i = 0; i < datas_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, datas_.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 com.ywt.gapi.im.GetChatsResponse)) {
      return super.equals(obj);
    }
    com.ywt.gapi.im.GetChatsResponse other = (com.ywt.gapi.im.GetChatsResponse) obj;

    if (getCode()
        != other.getCode()) return false;
    if (!getDatasList()
        .equals(other.getDatasList())) 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();
    hash = (37 * hash) + CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCode();
    if (getDatasCount() > 0) {
      hash = (37 * hash) + DATAS_FIELD_NUMBER;
      hash = (53 * hash) + getDatasList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.im.ImProto.internal_static_com_ywt_gapi_im_GetChatsResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.im.GetChatsResponse.class, com.ywt.gapi.im.GetChatsResponse.Builder.class);
    }

    // Construct using com.ywt.gapi.im.GetChatsResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getDatasFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      code_ = 0;

      if (datasBuilder_ == null) {
        datas_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        datasBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.im.ImProto.internal_static_com_ywt_gapi_im_GetChatsResponse_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.im.GetChatsResponse getDefaultInstanceForType() {
      return com.ywt.gapi.im.GetChatsResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.im.GetChatsResponse build() {
      com.ywt.gapi.im.GetChatsResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.im.GetChatsResponse buildPartial() {
      com.ywt.gapi.im.GetChatsResponse result = new com.ywt.gapi.im.GetChatsResponse(this);
      int from_bitField0_ = bitField0_;
      result.code_ = code_;
      if (datasBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          datas_ = java.util.Collections.unmodifiableList(datas_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.datas_ = datas_;
      } else {
        result.datas_ = datasBuilder_.build();
      }
      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 com.ywt.gapi.im.GetChatsResponse) {
        return mergeFrom((com.ywt.gapi.im.GetChatsResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.im.GetChatsResponse other) {
      if (other == com.ywt.gapi.im.GetChatsResponse.getDefaultInstance()) return this;
      if (other.getCode() != 0) {
        setCode(other.getCode());
      }
      if (datasBuilder_ == null) {
        if (!other.datas_.isEmpty()) {
          if (datas_.isEmpty()) {
            datas_ = other.datas_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDatasIsMutable();
            datas_.addAll(other.datas_);
          }
          onChanged();
        }
      } else {
        if (!other.datas_.isEmpty()) {
          if (datasBuilder_.isEmpty()) {
            datasBuilder_.dispose();
            datasBuilder_ = null;
            datas_ = other.datas_;
            bitField0_ = (bitField0_ & ~0x00000001);
            datasBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getDatasFieldBuilder() : null;
          } else {
            datasBuilder_.addAllMessages(other.datas_);
          }
        }
      }
      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 {
      com.ywt.gapi.im.GetChatsResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.im.GetChatsResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int code_ ;
    /**
     * <code>int32 code = 1;</code>
     * @return The code.
     */
    @java.lang.Override
    public int getCode() {
      return code_;
    }
    /**
     * <code>int32 code = 1;</code>
     * @param value The code to set.
     * @return This builder for chaining.
     */
    public Builder setCode(int value) {
      
      code_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 code = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearCode() {
      
      code_ = 0;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.im.SessionMessage> datas_ =
      java.util.Collections.emptyList();
    private void ensureDatasIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        datas_ = new java.util.ArrayList<com.ywt.gapi.im.SessionMessage>(datas_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.im.SessionMessage, com.ywt.gapi.im.SessionMessage.Builder, com.ywt.gapi.im.SessionMessageOrBuilder> datasBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public java.util.List<com.ywt.gapi.im.SessionMessage> getDatasList() {
      if (datasBuilder_ == null) {
        return java.util.Collections.unmodifiableList(datas_);
      } else {
        return datasBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public int getDatasCount() {
      if (datasBuilder_ == null) {
        return datas_.size();
      } else {
        return datasBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public com.ywt.gapi.im.SessionMessage getDatas(int index) {
      if (datasBuilder_ == null) {
        return datas_.get(index);
      } else {
        return datasBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder setDatas(
        int index, com.ywt.gapi.im.SessionMessage value) {
      if (datasBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDatasIsMutable();
        datas_.set(index, value);
        onChanged();
      } else {
        datasBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder setDatas(
        int index, com.ywt.gapi.im.SessionMessage.Builder builderForValue) {
      if (datasBuilder_ == null) {
        ensureDatasIsMutable();
        datas_.set(index, builderForValue.build());
        onChanged();
      } else {
        datasBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder addDatas(com.ywt.gapi.im.SessionMessage value) {
      if (datasBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDatasIsMutable();
        datas_.add(value);
        onChanged();
      } else {
        datasBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder addDatas(
        int index, com.ywt.gapi.im.SessionMessage value) {
      if (datasBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDatasIsMutable();
        datas_.add(index, value);
        onChanged();
      } else {
        datasBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder addDatas(
        com.ywt.gapi.im.SessionMessage.Builder builderForValue) {
      if (datasBuilder_ == null) {
        ensureDatasIsMutable();
        datas_.add(builderForValue.build());
        onChanged();
      } else {
        datasBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder addDatas(
        int index, com.ywt.gapi.im.SessionMessage.Builder builderForValue) {
      if (datasBuilder_ == null) {
        ensureDatasIsMutable();
        datas_.add(index, builderForValue.build());
        onChanged();
      } else {
        datasBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder addAllDatas(
        java.lang.Iterable<? extends com.ywt.gapi.im.SessionMessage> values) {
      if (datasBuilder_ == null) {
        ensureDatasIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, datas_);
        onChanged();
      } else {
        datasBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder clearDatas() {
      if (datasBuilder_ == null) {
        datas_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        datasBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public Builder removeDatas(int index) {
      if (datasBuilder_ == null) {
        ensureDatasIsMutable();
        datas_.remove(index);
        onChanged();
      } else {
        datasBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public com.ywt.gapi.im.SessionMessage.Builder getDatasBuilder(
        int index) {
      return getDatasFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public com.ywt.gapi.im.SessionMessageOrBuilder getDatasOrBuilder(
        int index) {
      if (datasBuilder_ == null) {
        return datas_.get(index);  } else {
        return datasBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public java.util.List<? extends com.ywt.gapi.im.SessionMessageOrBuilder> 
         getDatasOrBuilderList() {
      if (datasBuilder_ != null) {
        return datasBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(datas_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public com.ywt.gapi.im.SessionMessage.Builder addDatasBuilder() {
      return getDatasFieldBuilder().addBuilder(
          com.ywt.gapi.im.SessionMessage.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public com.ywt.gapi.im.SessionMessage.Builder addDatasBuilder(
        int index) {
      return getDatasFieldBuilder().addBuilder(
          index, com.ywt.gapi.im.SessionMessage.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.im.SessionMessage datas = 2;</code>
     */
    public java.util.List<com.ywt.gapi.im.SessionMessage.Builder> 
         getDatasBuilderList() {
      return getDatasFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.im.SessionMessage, com.ywt.gapi.im.SessionMessage.Builder, com.ywt.gapi.im.SessionMessageOrBuilder> 
        getDatasFieldBuilder() {
      if (datasBuilder_ == null) {
        datasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.im.SessionMessage, com.ywt.gapi.im.SessionMessage.Builder, com.ywt.gapi.im.SessionMessageOrBuilder>(
                datas_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        datas_ = null;
      }
      return datasBuilder_;
    }
    @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:com.ywt.gapi.im.GetChatsResponse)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.im.GetChatsResponse)
  private static final com.ywt.gapi.im.GetChatsResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.im.GetChatsResponse();
  }

  public static com.ywt.gapi.im.GetChatsResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<GetChatsResponse>
      PARSER = new com.google.protobuf.AbstractParser<GetChatsResponse>() {
    @java.lang.Override
    public GetChatsResponse parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new GetChatsResponse(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<GetChatsResponse> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<GetChatsResponse> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.ywt.gapi.im.GetChatsResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

