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

package io.grasscutter.net.proto.scene;

/**
 * Protobuf type {@code ChatInfo}
 */
public final class ChatInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ChatInfo)
    ChatInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ChatInfo.newBuilder() to construct.
  private ChatInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ChatInfo() {
    lBKDGOEFEBC_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ChatInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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 18: {
            java.lang.String s = input.readStringRequireUtf8();

            lBKDGOEFEBC_ = s;
            break;
          }
          case 24: {

            cPMEFHEEOAH_ = input.readUInt32();
            break;
          }
          case 56: {

            isRead_ = input.readBool();
            break;
          }
          case 80: {

            deviceInfo_ = input.readUInt32();
            break;
          }
          case 88: {

            gGIGCLLHEFM_ = input.readUInt32();
            break;
          }
          case 104: {

            uid_ = input.readUInt32();
            break;
          }
          case 112: {

            aEEDOAGEHPP_ = input.readUInt32();
            break;
          }
          case 1450: {
            io.grasscutter.net.proto.scene.SystemHint.Builder subBuilder = null;
            if (contentCase_ == 181) {
              subBuilder = ((io.grasscutter.net.proto.scene.SystemHint) content_).toBuilder();
            }
            content_ =
                input.readMessage(io.grasscutter.net.proto.scene.SystemHint.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.scene.SystemHint) content_);
              content_ = subBuilder.buildPartial();
            }
            contentCase_ = 181;
            break;
          }
          case 6920: {
            contentCase_ = 865;
            content_ = input.readUInt32();
            break;
          }
          case 13114: {
            java.lang.String s = input.readStringRequireUtf8();
            contentCase_ = 1639;
            content_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.scene.Scene.internal_static_ChatInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.scene.Scene.internal_static_ChatInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.scene.ChatInfo.class, io.grasscutter.net.proto.scene.ChatInfo.Builder.class);
  }

  private int contentCase_ = 0;
  private java.lang.Object content_;
  public enum ContentCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    TEXT(1639),
    ICON(865),
    SYSTEM_HINT(181),
    CONTENT_NOT_SET(0);
    private final int value;
    private ContentCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ContentCase valueOf(int value) {
      return forNumber(value);
    }

    public static ContentCase forNumber(int value) {
      switch (value) {
        case 1639: return TEXT;
        case 865: return ICON;
        case 181: return SYSTEM_HINT;
        case 0: return CONTENT_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ContentCase
  getContentCase() {
    return ContentCase.forNumber(
        contentCase_);
  }

  public static final int LBKDGOEFEBC_FIELD_NUMBER = 2;
  private volatile java.lang.Object lBKDGOEFEBC_;
  /**
   * <code>string LBKDGOEFEBC = 2;</code>
   * @return The lBKDGOEFEBC.
   */
  @java.lang.Override
  public java.lang.String getLBKDGOEFEBC() {
    java.lang.Object ref = lBKDGOEFEBC_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      lBKDGOEFEBC_ = s;
      return s;
    }
  }
  /**
   * <code>string LBKDGOEFEBC = 2;</code>
   * @return The bytes for lBKDGOEFEBC.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLBKDGOEFEBCBytes() {
    java.lang.Object ref = lBKDGOEFEBC_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      lBKDGOEFEBC_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CPMEFHEEOAH_FIELD_NUMBER = 3;
  private int cPMEFHEEOAH_;
  /**
   * <code>uint32 CPMEFHEEOAH = 3;</code>
   * @return The cPMEFHEEOAH.
   */
  @java.lang.Override
  public int getCPMEFHEEOAH() {
    return cPMEFHEEOAH_;
  }

  public static final int AEEDOAGEHPP_FIELD_NUMBER = 14;
  private int aEEDOAGEHPP_;
  /**
   * <code>uint32 AEEDOAGEHPP = 14;</code>
   * @return The aEEDOAGEHPP.
   */
  @java.lang.Override
  public int getAEEDOAGEHPP() {
    return aEEDOAGEHPP_;
  }

  public static final int GGIGCLLHEFM_FIELD_NUMBER = 11;
  private int gGIGCLLHEFM_;
  /**
   * <code>uint32 GGIGCLLHEFM = 11;</code>
   * @return The gGIGCLLHEFM.
   */
  @java.lang.Override
  public int getGGIGCLLHEFM() {
    return gGIGCLLHEFM_;
  }

  public static final int DEVICE_INFO_FIELD_NUMBER = 10;
  private int deviceInfo_;
  /**
   * <code>uint32 device_info = 10;</code>
   * @return The deviceInfo.
   */
  @java.lang.Override
  public int getDeviceInfo() {
    return deviceInfo_;
  }

  public static final int TEXT_FIELD_NUMBER = 1639;
  /**
   * <code>string text = 1639;</code>
   * @return Whether the text field is set.
   */
  public boolean hasText() {
    return contentCase_ == 1639;
  }
  /**
   * <code>string text = 1639;</code>
   * @return The text.
   */
  public java.lang.String getText() {
    java.lang.Object ref = "";
    if (contentCase_ == 1639) {
      ref = content_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (contentCase_ == 1639) {
        content_ = s;
      }
      return s;
    }
  }
  /**
   * <code>string text = 1639;</code>
   * @return The bytes for text.
   */
  public com.google.protobuf.ByteString
      getTextBytes() {
    java.lang.Object ref = "";
    if (contentCase_ == 1639) {
      ref = content_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (contentCase_ == 1639) {
        content_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ICON_FIELD_NUMBER = 865;
  /**
   * <code>uint32 icon = 865;</code>
   * @return Whether the icon field is set.
   */
  @java.lang.Override
  public boolean hasIcon() {
    return contentCase_ == 865;
  }
  /**
   * <code>uint32 icon = 865;</code>
   * @return The icon.
   */
  @java.lang.Override
  public int getIcon() {
    if (contentCase_ == 865) {
      return (java.lang.Integer) content_;
    }
    return 0;
  }

  public static final int SYSTEM_HINT_FIELD_NUMBER = 181;
  /**
   * <code>.SystemHint system_hint = 181;</code>
   * @return Whether the systemHint field is set.
   */
  @java.lang.Override
  public boolean hasSystemHint() {
    return contentCase_ == 181;
  }
  /**
   * <code>.SystemHint system_hint = 181;</code>
   * @return The systemHint.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.scene.SystemHint getSystemHint() {
    if (contentCase_ == 181) {
       return (io.grasscutter.net.proto.scene.SystemHint) content_;
    }
    return io.grasscutter.net.proto.scene.SystemHint.getDefaultInstance();
  }
  /**
   * <code>.SystemHint system_hint = 181;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.scene.SystemHintOrBuilder getSystemHintOrBuilder() {
    if (contentCase_ == 181) {
       return (io.grasscutter.net.proto.scene.SystemHint) content_;
    }
    return io.grasscutter.net.proto.scene.SystemHint.getDefaultInstance();
  }

  public static final int UID_FIELD_NUMBER = 13;
  private int uid_;
  /**
   * <code>uint32 uid = 13;</code>
   * @return The uid.
   */
  @java.lang.Override
  public int getUid() {
    return uid_;
  }

  public static final int IS_READ_FIELD_NUMBER = 7;
  private boolean isRead_;
  /**
   * <code>bool is_read = 7;</code>
   * @return The isRead.
   */
  @java.lang.Override
  public boolean getIsRead() {
    return isRead_;
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lBKDGOEFEBC_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lBKDGOEFEBC_);
    }
    if (cPMEFHEEOAH_ != 0) {
      output.writeUInt32(3, cPMEFHEEOAH_);
    }
    if (isRead_ != false) {
      output.writeBool(7, isRead_);
    }
    if (deviceInfo_ != 0) {
      output.writeUInt32(10, deviceInfo_);
    }
    if (gGIGCLLHEFM_ != 0) {
      output.writeUInt32(11, gGIGCLLHEFM_);
    }
    if (uid_ != 0) {
      output.writeUInt32(13, uid_);
    }
    if (aEEDOAGEHPP_ != 0) {
      output.writeUInt32(14, aEEDOAGEHPP_);
    }
    if (contentCase_ == 181) {
      output.writeMessage(181, (io.grasscutter.net.proto.scene.SystemHint) content_);
    }
    if (contentCase_ == 865) {
      output.writeUInt32(
          865, (int)((java.lang.Integer) content_));
    }
    if (contentCase_ == 1639) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1639, content_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lBKDGOEFEBC_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lBKDGOEFEBC_);
    }
    if (cPMEFHEEOAH_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, cPMEFHEEOAH_);
    }
    if (isRead_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(7, isRead_);
    }
    if (deviceInfo_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(10, deviceInfo_);
    }
    if (gGIGCLLHEFM_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(11, gGIGCLLHEFM_);
    }
    if (uid_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(13, uid_);
    }
    if (aEEDOAGEHPP_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(14, aEEDOAGEHPP_);
    }
    if (contentCase_ == 181) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(181, (io.grasscutter.net.proto.scene.SystemHint) content_);
    }
    if (contentCase_ == 865) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            865, (int)((java.lang.Integer) content_));
    }
    if (contentCase_ == 1639) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1639, content_);
    }
    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 io.grasscutter.net.proto.scene.ChatInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.scene.ChatInfo other = (io.grasscutter.net.proto.scene.ChatInfo) obj;

    if (!getLBKDGOEFEBC()
        .equals(other.getLBKDGOEFEBC())) return false;
    if (getCPMEFHEEOAH()
        != other.getCPMEFHEEOAH()) return false;
    if (getAEEDOAGEHPP()
        != other.getAEEDOAGEHPP()) return false;
    if (getGGIGCLLHEFM()
        != other.getGGIGCLLHEFM()) return false;
    if (getDeviceInfo()
        != other.getDeviceInfo()) return false;
    if (getUid()
        != other.getUid()) return false;
    if (getIsRead()
        != other.getIsRead()) return false;
    if (!getContentCase().equals(other.getContentCase())) return false;
    switch (contentCase_) {
      case 1639:
        if (!getText()
            .equals(other.getText())) return false;
        break;
      case 865:
        if (getIcon()
            != other.getIcon()) return false;
        break;
      case 181:
        if (!getSystemHint()
            .equals(other.getSystemHint())) return false;
        break;
      case 0:
      default:
    }
    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) + LBKDGOEFEBC_FIELD_NUMBER;
    hash = (53 * hash) + getLBKDGOEFEBC().hashCode();
    hash = (37 * hash) + CPMEFHEEOAH_FIELD_NUMBER;
    hash = (53 * hash) + getCPMEFHEEOAH();
    hash = (37 * hash) + AEEDOAGEHPP_FIELD_NUMBER;
    hash = (53 * hash) + getAEEDOAGEHPP();
    hash = (37 * hash) + GGIGCLLHEFM_FIELD_NUMBER;
    hash = (53 * hash) + getGGIGCLLHEFM();
    hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER;
    hash = (53 * hash) + getDeviceInfo();
    hash = (37 * hash) + UID_FIELD_NUMBER;
    hash = (53 * hash) + getUid();
    hash = (37 * hash) + IS_READ_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsRead());
    switch (contentCase_) {
      case 1639:
        hash = (37 * hash) + TEXT_FIELD_NUMBER;
        hash = (53 * hash) + getText().hashCode();
        break;
      case 865:
        hash = (37 * hash) + ICON_FIELD_NUMBER;
        hash = (53 * hash) + getIcon();
        break;
      case 181:
        hash = (37 * hash) + SYSTEM_HINT_FIELD_NUMBER;
        hash = (53 * hash) + getSystemHint().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_ChatInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.scene.ChatInfo.class, io.grasscutter.net.proto.scene.ChatInfo.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.scene.ChatInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

      cPMEFHEEOAH_ = 0;

      aEEDOAGEHPP_ = 0;

      gGIGCLLHEFM_ = 0;

      deviceInfo_ = 0;

      uid_ = 0;

      isRead_ = false;

      contentCase_ = 0;
      content_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_ChatInfo_descriptor;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.scene.ChatInfo getDefaultInstanceForType() {
      return io.grasscutter.net.proto.scene.ChatInfo.getDefaultInstance();
    }

    @java.lang.Override
    public io.grasscutter.net.proto.scene.ChatInfo build() {
      io.grasscutter.net.proto.scene.ChatInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.scene.ChatInfo buildPartial() {
      io.grasscutter.net.proto.scene.ChatInfo result = new io.grasscutter.net.proto.scene.ChatInfo(this);
      result.lBKDGOEFEBC_ = lBKDGOEFEBC_;
      result.cPMEFHEEOAH_ = cPMEFHEEOAH_;
      result.aEEDOAGEHPP_ = aEEDOAGEHPP_;
      result.gGIGCLLHEFM_ = gGIGCLLHEFM_;
      result.deviceInfo_ = deviceInfo_;
      if (contentCase_ == 1639) {
        result.content_ = content_;
      }
      if (contentCase_ == 865) {
        result.content_ = content_;
      }
      if (contentCase_ == 181) {
        if (systemHintBuilder_ == null) {
          result.content_ = content_;
        } else {
          result.content_ = systemHintBuilder_.build();
        }
      }
      result.uid_ = uid_;
      result.isRead_ = isRead_;
      result.contentCase_ = contentCase_;
      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 io.grasscutter.net.proto.scene.ChatInfo) {
        return mergeFrom((io.grasscutter.net.proto.scene.ChatInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.scene.ChatInfo other) {
      if (other == io.grasscutter.net.proto.scene.ChatInfo.getDefaultInstance()) return this;
      if (!other.getLBKDGOEFEBC().isEmpty()) {
        lBKDGOEFEBC_ = other.lBKDGOEFEBC_;
        onChanged();
      }
      if (other.getCPMEFHEEOAH() != 0) {
        setCPMEFHEEOAH(other.getCPMEFHEEOAH());
      }
      if (other.getAEEDOAGEHPP() != 0) {
        setAEEDOAGEHPP(other.getAEEDOAGEHPP());
      }
      if (other.getGGIGCLLHEFM() != 0) {
        setGGIGCLLHEFM(other.getGGIGCLLHEFM());
      }
      if (other.getDeviceInfo() != 0) {
        setDeviceInfo(other.getDeviceInfo());
      }
      if (other.getUid() != 0) {
        setUid(other.getUid());
      }
      if (other.getIsRead() != false) {
        setIsRead(other.getIsRead());
      }
      switch (other.getContentCase()) {
        case TEXT: {
          contentCase_ = 1639;
          content_ = other.content_;
          onChanged();
          break;
        }
        case ICON: {
          setIcon(other.getIcon());
          break;
        }
        case SYSTEM_HINT: {
          mergeSystemHint(other.getSystemHint());
          break;
        }
        case CONTENT_NOT_SET: {
          break;
        }
      }
      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 {
      io.grasscutter.net.proto.scene.ChatInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.scene.ChatInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int contentCase_ = 0;
    private java.lang.Object content_;
    public ContentCase
        getContentCase() {
      return ContentCase.forNumber(
          contentCase_);
    }

    public Builder clearContent() {
      contentCase_ = 0;
      content_ = null;
      onChanged();
      return this;
    }


    private java.lang.Object lBKDGOEFEBC_ = "";
    /**
     * <code>string LBKDGOEFEBC = 2;</code>
     * @return The lBKDGOEFEBC.
     */
    public java.lang.String getLBKDGOEFEBC() {
      java.lang.Object ref = lBKDGOEFEBC_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        lBKDGOEFEBC_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string LBKDGOEFEBC = 2;</code>
     * @return The bytes for lBKDGOEFEBC.
     */
    public com.google.protobuf.ByteString
        getLBKDGOEFEBCBytes() {
      java.lang.Object ref = lBKDGOEFEBC_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        lBKDGOEFEBC_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string LBKDGOEFEBC = 2;</code>
     * @param value The lBKDGOEFEBC to set.
     * @return This builder for chaining.
     */
    public Builder setLBKDGOEFEBC(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      lBKDGOEFEBC_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string LBKDGOEFEBC = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearLBKDGOEFEBC() {
      
      lBKDGOEFEBC_ = getDefaultInstance().getLBKDGOEFEBC();
      onChanged();
      return this;
    }
    /**
     * <code>string LBKDGOEFEBC = 2;</code>
     * @param value The bytes for lBKDGOEFEBC to set.
     * @return This builder for chaining.
     */
    public Builder setLBKDGOEFEBCBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      lBKDGOEFEBC_ = value;
      onChanged();
      return this;
    }

    private int cPMEFHEEOAH_ ;
    /**
     * <code>uint32 CPMEFHEEOAH = 3;</code>
     * @return The cPMEFHEEOAH.
     */
    @java.lang.Override
    public int getCPMEFHEEOAH() {
      return cPMEFHEEOAH_;
    }
    /**
     * <code>uint32 CPMEFHEEOAH = 3;</code>
     * @param value The cPMEFHEEOAH to set.
     * @return This builder for chaining.
     */
    public Builder setCPMEFHEEOAH(int value) {
      
      cPMEFHEEOAH_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 CPMEFHEEOAH = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearCPMEFHEEOAH() {
      
      cPMEFHEEOAH_ = 0;
      onChanged();
      return this;
    }

    private int aEEDOAGEHPP_ ;
    /**
     * <code>uint32 AEEDOAGEHPP = 14;</code>
     * @return The aEEDOAGEHPP.
     */
    @java.lang.Override
    public int getAEEDOAGEHPP() {
      return aEEDOAGEHPP_;
    }
    /**
     * <code>uint32 AEEDOAGEHPP = 14;</code>
     * @param value The aEEDOAGEHPP to set.
     * @return This builder for chaining.
     */
    public Builder setAEEDOAGEHPP(int value) {
      
      aEEDOAGEHPP_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 AEEDOAGEHPP = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearAEEDOAGEHPP() {
      
      aEEDOAGEHPP_ = 0;
      onChanged();
      return this;
    }

    private int gGIGCLLHEFM_ ;
    /**
     * <code>uint32 GGIGCLLHEFM = 11;</code>
     * @return The gGIGCLLHEFM.
     */
    @java.lang.Override
    public int getGGIGCLLHEFM() {
      return gGIGCLLHEFM_;
    }
    /**
     * <code>uint32 GGIGCLLHEFM = 11;</code>
     * @param value The gGIGCLLHEFM to set.
     * @return This builder for chaining.
     */
    public Builder setGGIGCLLHEFM(int value) {
      
      gGIGCLLHEFM_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 GGIGCLLHEFM = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearGGIGCLLHEFM() {
      
      gGIGCLLHEFM_ = 0;
      onChanged();
      return this;
    }

    private int deviceInfo_ ;
    /**
     * <code>uint32 device_info = 10;</code>
     * @return The deviceInfo.
     */
    @java.lang.Override
    public int getDeviceInfo() {
      return deviceInfo_;
    }
    /**
     * <code>uint32 device_info = 10;</code>
     * @param value The deviceInfo to set.
     * @return This builder for chaining.
     */
    public Builder setDeviceInfo(int value) {
      
      deviceInfo_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 device_info = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearDeviceInfo() {
      
      deviceInfo_ = 0;
      onChanged();
      return this;
    }

    /**
     * <code>string text = 1639;</code>
     * @return Whether the text field is set.
     */
    @java.lang.Override
    public boolean hasText() {
      return contentCase_ == 1639;
    }
    /**
     * <code>string text = 1639;</code>
     * @return The text.
     */
    @java.lang.Override
    public java.lang.String getText() {
      java.lang.Object ref = "";
      if (contentCase_ == 1639) {
        ref = content_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (contentCase_ == 1639) {
          content_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string text = 1639;</code>
     * @return The bytes for text.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTextBytes() {
      java.lang.Object ref = "";
      if (contentCase_ == 1639) {
        ref = content_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (contentCase_ == 1639) {
          content_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string text = 1639;</code>
     * @param value The text to set.
     * @return This builder for chaining.
     */
    public Builder setText(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  contentCase_ = 1639;
      content_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string text = 1639;</code>
     * @return This builder for chaining.
     */
    public Builder clearText() {
      if (contentCase_ == 1639) {
        contentCase_ = 0;
        content_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * <code>string text = 1639;</code>
     * @param value The bytes for text to set.
     * @return This builder for chaining.
     */
    public Builder setTextBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      contentCase_ = 1639;
      content_ = value;
      onChanged();
      return this;
    }

    /**
     * <code>uint32 icon = 865;</code>
     * @return Whether the icon field is set.
     */
    public boolean hasIcon() {
      return contentCase_ == 865;
    }
    /**
     * <code>uint32 icon = 865;</code>
     * @return The icon.
     */
    public int getIcon() {
      if (contentCase_ == 865) {
        return (java.lang.Integer) content_;
      }
      return 0;
    }
    /**
     * <code>uint32 icon = 865;</code>
     * @param value The icon to set.
     * @return This builder for chaining.
     */
    public Builder setIcon(int value) {
      contentCase_ = 865;
      content_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 icon = 865;</code>
     * @return This builder for chaining.
     */
    public Builder clearIcon() {
      if (contentCase_ == 865) {
        contentCase_ = 0;
        content_ = null;
        onChanged();
      }
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.scene.SystemHint, io.grasscutter.net.proto.scene.SystemHint.Builder, io.grasscutter.net.proto.scene.SystemHintOrBuilder> systemHintBuilder_;
    /**
     * <code>.SystemHint system_hint = 181;</code>
     * @return Whether the systemHint field is set.
     */
    @java.lang.Override
    public boolean hasSystemHint() {
      return contentCase_ == 181;
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     * @return The systemHint.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.scene.SystemHint getSystemHint() {
      if (systemHintBuilder_ == null) {
        if (contentCase_ == 181) {
          return (io.grasscutter.net.proto.scene.SystemHint) content_;
        }
        return io.grasscutter.net.proto.scene.SystemHint.getDefaultInstance();
      } else {
        if (contentCase_ == 181) {
          return systemHintBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.scene.SystemHint.getDefaultInstance();
      }
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     */
    public Builder setSystemHint(io.grasscutter.net.proto.scene.SystemHint value) {
      if (systemHintBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        content_ = value;
        onChanged();
      } else {
        systemHintBuilder_.setMessage(value);
      }
      contentCase_ = 181;
      return this;
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     */
    public Builder setSystemHint(
        io.grasscutter.net.proto.scene.SystemHint.Builder builderForValue) {
      if (systemHintBuilder_ == null) {
        content_ = builderForValue.build();
        onChanged();
      } else {
        systemHintBuilder_.setMessage(builderForValue.build());
      }
      contentCase_ = 181;
      return this;
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     */
    public Builder mergeSystemHint(io.grasscutter.net.proto.scene.SystemHint value) {
      if (systemHintBuilder_ == null) {
        if (contentCase_ == 181 &&
            content_ != io.grasscutter.net.proto.scene.SystemHint.getDefaultInstance()) {
          content_ = io.grasscutter.net.proto.scene.SystemHint.newBuilder((io.grasscutter.net.proto.scene.SystemHint) content_)
              .mergeFrom(value).buildPartial();
        } else {
          content_ = value;
        }
        onChanged();
      } else {
        if (contentCase_ == 181) {
          systemHintBuilder_.mergeFrom(value);
        }
        systemHintBuilder_.setMessage(value);
      }
      contentCase_ = 181;
      return this;
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     */
    public Builder clearSystemHint() {
      if (systemHintBuilder_ == null) {
        if (contentCase_ == 181) {
          contentCase_ = 0;
          content_ = null;
          onChanged();
        }
      } else {
        if (contentCase_ == 181) {
          contentCase_ = 0;
          content_ = null;
        }
        systemHintBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     */
    public io.grasscutter.net.proto.scene.SystemHint.Builder getSystemHintBuilder() {
      return getSystemHintFieldBuilder().getBuilder();
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.scene.SystemHintOrBuilder getSystemHintOrBuilder() {
      if ((contentCase_ == 181) && (systemHintBuilder_ != null)) {
        return systemHintBuilder_.getMessageOrBuilder();
      } else {
        if (contentCase_ == 181) {
          return (io.grasscutter.net.proto.scene.SystemHint) content_;
        }
        return io.grasscutter.net.proto.scene.SystemHint.getDefaultInstance();
      }
    }
    /**
     * <code>.SystemHint system_hint = 181;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.scene.SystemHint, io.grasscutter.net.proto.scene.SystemHint.Builder, io.grasscutter.net.proto.scene.SystemHintOrBuilder> 
        getSystemHintFieldBuilder() {
      if (systemHintBuilder_ == null) {
        if (!(contentCase_ == 181)) {
          content_ = io.grasscutter.net.proto.scene.SystemHint.getDefaultInstance();
        }
        systemHintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.scene.SystemHint, io.grasscutter.net.proto.scene.SystemHint.Builder, io.grasscutter.net.proto.scene.SystemHintOrBuilder>(
                (io.grasscutter.net.proto.scene.SystemHint) content_,
                getParentForChildren(),
                isClean());
        content_ = null;
      }
      contentCase_ = 181;
      onChanged();;
      return systemHintBuilder_;
    }

    private int uid_ ;
    /**
     * <code>uint32 uid = 13;</code>
     * @return The uid.
     */
    @java.lang.Override
    public int getUid() {
      return uid_;
    }
    /**
     * <code>uint32 uid = 13;</code>
     * @param value The uid to set.
     * @return This builder for chaining.
     */
    public Builder setUid(int value) {
      
      uid_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 uid = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearUid() {
      
      uid_ = 0;
      onChanged();
      return this;
    }

    private boolean isRead_ ;
    /**
     * <code>bool is_read = 7;</code>
     * @return The isRead.
     */
    @java.lang.Override
    public boolean getIsRead() {
      return isRead_;
    }
    /**
     * <code>bool is_read = 7;</code>
     * @param value The isRead to set.
     * @return This builder for chaining.
     */
    public Builder setIsRead(boolean value) {
      
      isRead_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_read = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsRead() {
      
      isRead_ = false;
      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:ChatInfo)
  }

  // @@protoc_insertion_point(class_scope:ChatInfo)
  private static final io.grasscutter.net.proto.scene.ChatInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.scene.ChatInfo();
  }

  public static io.grasscutter.net.proto.scene.ChatInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public io.grasscutter.net.proto.scene.ChatInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

