// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ChatInfo.proto package emu.grasscutter.net.proto; public final class ChatInfoOuterClass { private ChatInfoOuterClass() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ChatInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:ChatInfo) com.google.protobuf.MessageOrBuilder { /** * uint32 time = 7; * @return The time. */ int getTime(); /** * uint32 to_uid = 6; * @return The toUid. */ int getToUid(); /** * bool is_read = 4; * @return The isRead. */ boolean getIsRead(); /** * uint32 uid = 5; * @return The uid. */ int getUid(); /** * uint32 sequence = 12; * @return The sequence. */ int getSequence(); /** * string text = 408; * @return Whether the text field is set. */ boolean hasText(); /** * string text = 408; * @return The text. */ java.lang.String getText(); /** * string text = 408; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** * uint32 icon = 1308; * @return Whether the icon field is set. */ boolean hasIcon(); /** * uint32 icon = 1308; * @return The icon. */ int getIcon(); /** * .ChatInfo.SystemHint system_hint = 166; * @return Whether the systemHint field is set. */ boolean hasSystemHint(); /** * .ChatInfo.SystemHint system_hint = 166; * @return The systemHint. */ emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint getSystemHint(); /** * .ChatInfo.SystemHint system_hint = 166; */ emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHintOrBuilder getSystemHintOrBuilder(); public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.ContentCase getContentCase(); } /** *
   * Obf: EEBBPLIOHON
   * 
* * Protobuf type {@code ChatInfo} */ public static 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() { } @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 32: { isRead_ = input.readBool(); break; } case 40: { uid_ = input.readUInt32(); break; } case 48: { toUid_ = input.readUInt32(); break; } case 56: { time_ = input.readUInt32(); break; } case 96: { sequence_ = input.readUInt32(); break; } case 1330: { emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder subBuilder = null; if (contentCase_ == 166) { subBuilder = ((emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_).toBuilder(); } content_ = input.readMessage(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 166; break; } case 3266: { java.lang.String s = input.readStringRequireUtf8(); contentCase_ = 408; content_ = s; break; } case 10464: { contentCase_ = 1308; content_ = input.readUInt32(); 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 emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.class, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder.class); } /** * Protobuf enum {@code ChatInfo.SystemHintType} */ public enum SystemHintType implements com.google.protobuf.ProtocolMessageEnum { /** * SYSTEM_HINT_TYPE_CHAT_NONE = 0; */ SYSTEM_HINT_TYPE_CHAT_NONE(0), /** * SYSTEM_HINT_TYPE_CHAT_ENTER_WORLD = 1; */ SYSTEM_HINT_TYPE_CHAT_ENTER_WORLD(1), /** * SYSTEM_HINT_TYPE_CHAT_LEAVE_WORLD = 2; */ SYSTEM_HINT_TYPE_CHAT_LEAVE_WORLD(2), UNRECOGNIZED(-1), ; /** * SYSTEM_HINT_TYPE_CHAT_NONE = 0; */ public static final int SYSTEM_HINT_TYPE_CHAT_NONE_VALUE = 0; /** * SYSTEM_HINT_TYPE_CHAT_ENTER_WORLD = 1; */ public static final int SYSTEM_HINT_TYPE_CHAT_ENTER_WORLD_VALUE = 1; /** * SYSTEM_HINT_TYPE_CHAT_LEAVE_WORLD = 2; */ public static final int SYSTEM_HINT_TYPE_CHAT_LEAVE_WORLD_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SystemHintType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SystemHintType forNumber(int value) { switch (value) { case 0: return SYSTEM_HINT_TYPE_CHAT_NONE; case 1: return SYSTEM_HINT_TYPE_CHAT_ENTER_WORLD; case 2: return SYSTEM_HINT_TYPE_CHAT_LEAVE_WORLD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SystemHintType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SystemHintType findValueByNumber(int number) { return SystemHintType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDescriptor().getEnumTypes().get(0); } private static final SystemHintType[] VALUES = values(); public static SystemHintType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SystemHintType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:ChatInfo.SystemHintType) } public interface SystemHintOrBuilder extends // @@protoc_insertion_point(interface_extends:ChatInfo.SystemHint) com.google.protobuf.MessageOrBuilder { /** * uint32 type = 13; * @return The type. */ int getType(); } /** *
     * Obf: KGNCKLCKPLN
     * 
* * Protobuf type {@code ChatInfo.SystemHint} */ public static final class SystemHint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ChatInfo.SystemHint) SystemHintOrBuilder { private static final long serialVersionUID = 0L; // Use SystemHint.newBuilder() to construct. private SystemHint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SystemHint() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SystemHint(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SystemHint( 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 104: { type_ = input.readUInt32(); 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 emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_SystemHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_SystemHint_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.class, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder.class); } public static final int TYPE_FIELD_NUMBER = 13; private int type_; /** * uint32 type = 13; * @return The type. */ @java.lang.Override public int getType() { return type_; } 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 (type_ != 0) { output.writeUInt32(13, type_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, type_); } 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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint)) { return super.equals(obj); } emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint other = (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) obj; if (getType() != other.getType()) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint 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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint 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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint 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(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint 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; } /** *
       * Obf: KGNCKLCKPLN
       * 
* * Protobuf type {@code ChatInfo.SystemHint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ChatInfo.SystemHint) emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHintOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_SystemHint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_SystemHint_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.class, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder.class); } // Construct using emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.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(); type_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_SystemHint_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint getDefaultInstanceForType() { return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint build() { emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint buildPartial() { emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint result = new emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint(this); result.type_ = type_; 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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) { return mergeFrom((emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint other) { if (other == emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance()) return this; if (other.getType() != 0) { setType(other.getType()); } 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 { emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ ; /** * uint32 type = 13; * @return The type. */ @java.lang.Override public int getType() { return type_; } /** * uint32 type = 13; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(int value) { type_ = value; onChanged(); return this; } /** * uint32 type = 13; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; 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.SystemHint) } // @@protoc_insertion_point(class_scope:ChatInfo.SystemHint) private static final emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint(); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SystemHint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SystemHint(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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int contentCase_ = 0; private java.lang.Object content_; public enum ContentCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT(408), ICON(1308), SYSTEM_HINT(166), 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 408: return TEXT; case 1308: return ICON; case 166: 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 TIME_FIELD_NUMBER = 7; private int time_; /** * uint32 time = 7; * @return The time. */ @java.lang.Override public int getTime() { return time_; } public static final int TO_UID_FIELD_NUMBER = 6; private int toUid_; /** * uint32 to_uid = 6; * @return The toUid. */ @java.lang.Override public int getToUid() { return toUid_; } public static final int IS_READ_FIELD_NUMBER = 4; private boolean isRead_; /** * bool is_read = 4; * @return The isRead. */ @java.lang.Override public boolean getIsRead() { return isRead_; } public static final int UID_FIELD_NUMBER = 5; private int uid_; /** * uint32 uid = 5; * @return The uid. */ @java.lang.Override public int getUid() { return uid_; } public static final int SEQUENCE_FIELD_NUMBER = 12; private int sequence_; /** * uint32 sequence = 12; * @return The sequence. */ @java.lang.Override public int getSequence() { return sequence_; } public static final int TEXT_FIELD_NUMBER = 408; /** * string text = 408; * @return Whether the text field is set. */ public boolean hasText() { return contentCase_ == 408; } /** * string text = 408; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = ""; if (contentCase_ == 408) { 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_ == 408) { content_ = s; } return s; } } /** * string text = 408; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (contentCase_ == 408) { ref = content_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 408) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ICON_FIELD_NUMBER = 1308; /** * uint32 icon = 1308; * @return Whether the icon field is set. */ @java.lang.Override public boolean hasIcon() { return contentCase_ == 1308; } /** * uint32 icon = 1308; * @return The icon. */ @java.lang.Override public int getIcon() { if (contentCase_ == 1308) { return (java.lang.Integer) content_; } return 0; } public static final int SYSTEM_HINT_FIELD_NUMBER = 166; /** * .ChatInfo.SystemHint system_hint = 166; * @return Whether the systemHint field is set. */ @java.lang.Override public boolean hasSystemHint() { return contentCase_ == 166; } /** * .ChatInfo.SystemHint system_hint = 166; * @return The systemHint. */ @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint getSystemHint() { if (contentCase_ == 166) { return (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_; } return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance(); } /** * .ChatInfo.SystemHint system_hint = 166; */ @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHintOrBuilder getSystemHintOrBuilder() { if (contentCase_ == 166) { return (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_; } return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance(); } 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 (isRead_ != false) { output.writeBool(4, isRead_); } if (uid_ != 0) { output.writeUInt32(5, uid_); } if (toUid_ != 0) { output.writeUInt32(6, toUid_); } if (time_ != 0) { output.writeUInt32(7, time_); } if (sequence_ != 0) { output.writeUInt32(12, sequence_); } if (contentCase_ == 166) { output.writeMessage(166, (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_); } if (contentCase_ == 408) { com.google.protobuf.GeneratedMessageV3.writeString(output, 408, content_); } if (contentCase_ == 1308) { output.writeUInt32( 1308, (int)((java.lang.Integer) content_)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (isRead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isRead_); } if (uid_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, uid_); } if (toUid_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, toUid_); } if (time_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, time_); } if (sequence_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, sequence_); } if (contentCase_ == 166) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(166, (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_); } if (contentCase_ == 408) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(408, content_); } if (contentCase_ == 1308) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 1308, (int)((java.lang.Integer) 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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo)) { return super.equals(obj); } emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo other = (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo) obj; if (getTime() != other.getTime()) return false; if (getToUid() != other.getToUid()) return false; if (getIsRead() != other.getIsRead()) return false; if (getUid() != other.getUid()) return false; if (getSequence() != other.getSequence()) return false; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 408: if (!getText() .equals(other.getText())) return false; break; case 1308: if (getIcon() != other.getIcon()) return false; break; case 166: 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) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime(); hash = (37 * hash) + TO_UID_FIELD_NUMBER; hash = (53 * hash) + getToUid(); hash = (37 * hash) + IS_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRead()); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid(); hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + getSequence(); switch (contentCase_) { case 408: hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); break; case 1308: hash = (37 * hash) + ICON_FIELD_NUMBER; hash = (53 * hash) + getIcon(); break; case 166: 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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.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(emu.grasscutter.net.proto.ChatInfoOuterClass.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; } /** *
     * Obf: EEBBPLIOHON
     * 
* * Protobuf type {@code ChatInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ChatInfo) emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.class, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder.class); } // Construct using emu.grasscutter.net.proto.ChatInfoOuterClass.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(); time_ = 0; toUid_ = 0; isRead_ = false; uid_ = 0; sequence_ = 0; contentCase_ = 0; content_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.ChatInfoOuterClass.internal_static_ChatInfo_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getDefaultInstanceForType() { return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo build() { emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo buildPartial() { emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo result = new emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo(this); result.time_ = time_; result.toUid_ = toUid_; result.isRead_ = isRead_; result.uid_ = uid_; result.sequence_ = sequence_; if (contentCase_ == 408) { result.content_ = content_; } if (contentCase_ == 1308) { result.content_ = content_; } if (contentCase_ == 166) { if (systemHintBuilder_ == null) { result.content_ = content_; } else { result.content_ = systemHintBuilder_.build(); } } 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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo) { return mergeFrom((emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo other) { if (other == emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()) return this; if (other.getTime() != 0) { setTime(other.getTime()); } if (other.getToUid() != 0) { setToUid(other.getToUid()); } if (other.getIsRead() != false) { setIsRead(other.getIsRead()); } if (other.getUid() != 0) { setUid(other.getUid()); } if (other.getSequence() != 0) { setSequence(other.getSequence()); } switch (other.getContentCase()) { case TEXT: { contentCase_ = 408; 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 { emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.ChatInfoOuterClass.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 int time_ ; /** * uint32 time = 7; * @return The time. */ @java.lang.Override public int getTime() { return time_; } /** * uint32 time = 7; * @param value The time to set. * @return This builder for chaining. */ public Builder setTime(int value) { time_ = value; onChanged(); return this; } /** * uint32 time = 7; * @return This builder for chaining. */ public Builder clearTime() { time_ = 0; onChanged(); return this; } private int toUid_ ; /** * uint32 to_uid = 6; * @return The toUid. */ @java.lang.Override public int getToUid() { return toUid_; } /** * uint32 to_uid = 6; * @param value The toUid to set. * @return This builder for chaining. */ public Builder setToUid(int value) { toUid_ = value; onChanged(); return this; } /** * uint32 to_uid = 6; * @return This builder for chaining. */ public Builder clearToUid() { toUid_ = 0; onChanged(); return this; } private boolean isRead_ ; /** * bool is_read = 4; * @return The isRead. */ @java.lang.Override public boolean getIsRead() { return isRead_; } /** * bool is_read = 4; * @param value The isRead to set. * @return This builder for chaining. */ public Builder setIsRead(boolean value) { isRead_ = value; onChanged(); return this; } /** * bool is_read = 4; * @return This builder for chaining. */ public Builder clearIsRead() { isRead_ = false; onChanged(); return this; } private int uid_ ; /** * uint32 uid = 5; * @return The uid. */ @java.lang.Override public int getUid() { return uid_; } /** * uint32 uid = 5; * @param value The uid to set. * @return This builder for chaining. */ public Builder setUid(int value) { uid_ = value; onChanged(); return this; } /** * uint32 uid = 5; * @return This builder for chaining. */ public Builder clearUid() { uid_ = 0; onChanged(); return this; } private int sequence_ ; /** * uint32 sequence = 12; * @return The sequence. */ @java.lang.Override public int getSequence() { return sequence_; } /** * uint32 sequence = 12; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(int value) { sequence_ = value; onChanged(); return this; } /** * uint32 sequence = 12; * @return This builder for chaining. */ public Builder clearSequence() { sequence_ = 0; onChanged(); return this; } /** * string text = 408; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return contentCase_ == 408; } /** * string text = 408; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = ""; if (contentCase_ == 408) { 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_ == 408) { content_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string text = 408; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (contentCase_ == 408) { ref = content_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 408) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string text = 408; * @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_ = 408; content_ = value; onChanged(); return this; } /** * string text = 408; * @return This builder for chaining. */ public Builder clearText() { if (contentCase_ == 408) { contentCase_ = 0; content_ = null; onChanged(); } return this; } /** * string text = 408; * @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_ = 408; content_ = value; onChanged(); return this; } /** * uint32 icon = 1308; * @return Whether the icon field is set. */ public boolean hasIcon() { return contentCase_ == 1308; } /** * uint32 icon = 1308; * @return The icon. */ public int getIcon() { if (contentCase_ == 1308) { return (java.lang.Integer) content_; } return 0; } /** * uint32 icon = 1308; * @param value The icon to set. * @return This builder for chaining. */ public Builder setIcon(int value) { contentCase_ = 1308; content_ = value; onChanged(); return this; } /** * uint32 icon = 1308; * @return This builder for chaining. */ public Builder clearIcon() { if (contentCase_ == 1308) { contentCase_ = 0; content_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHintOrBuilder> systemHintBuilder_; /** * .ChatInfo.SystemHint system_hint = 166; * @return Whether the systemHint field is set. */ @java.lang.Override public boolean hasSystemHint() { return contentCase_ == 166; } /** * .ChatInfo.SystemHint system_hint = 166; * @return The systemHint. */ @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint getSystemHint() { if (systemHintBuilder_ == null) { if (contentCase_ == 166) { return (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_; } return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance(); } else { if (contentCase_ == 166) { return systemHintBuilder_.getMessage(); } return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance(); } } /** * .ChatInfo.SystemHint system_hint = 166; */ public Builder setSystemHint(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint value) { if (systemHintBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { systemHintBuilder_.setMessage(value); } contentCase_ = 166; return this; } /** * .ChatInfo.SystemHint system_hint = 166; */ public Builder setSystemHint( emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder builderForValue) { if (systemHintBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { systemHintBuilder_.setMessage(builderForValue.build()); } contentCase_ = 166; return this; } /** * .ChatInfo.SystemHint system_hint = 166; */ public Builder mergeSystemHint(emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint value) { if (systemHintBuilder_ == null) { if (contentCase_ == 166 && content_ != emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance()) { content_ = emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.newBuilder((emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 166) { systemHintBuilder_.mergeFrom(value); } systemHintBuilder_.setMessage(value); } contentCase_ = 166; return this; } /** * .ChatInfo.SystemHint system_hint = 166; */ public Builder clearSystemHint() { if (systemHintBuilder_ == null) { if (contentCase_ == 166) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 166) { contentCase_ = 0; content_ = null; } systemHintBuilder_.clear(); } return this; } /** * .ChatInfo.SystemHint system_hint = 166; */ public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder getSystemHintBuilder() { return getSystemHintFieldBuilder().getBuilder(); } /** * .ChatInfo.SystemHint system_hint = 166; */ @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHintOrBuilder getSystemHintOrBuilder() { if ((contentCase_ == 166) && (systemHintBuilder_ != null)) { return systemHintBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 166) { return (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_; } return emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance(); } } /** * .ChatInfo.SystemHint system_hint = 166; */ private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHintOrBuilder> getSystemHintFieldBuilder() { if (systemHintBuilder_ == null) { if (!(contentCase_ == 166)) { content_ = emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.getDefaultInstance(); } systemHintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint.Builder, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHintOrBuilder>( (emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.SystemHint) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 166; onChanged();; return systemHintBuilder_; } @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 emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo(); } public static emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @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 parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChatInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChatInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ChatInfo_SystemHint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ChatInfo_SystemHint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016ChatInfo.proto\"\317\002\n\010ChatInfo\022\014\n\004time\030\007 " + "\001(\r\022\016\n\006to_uid\030\006 \001(\r\022\017\n\007is_read\030\004 \001(\010\022\013\n\003" + "uid\030\005 \001(\r\022\020\n\010sequence\030\014 \001(\r\022\017\n\004text\030\230\003 \001" + "(\tH\000\022\017\n\004icon\030\234\n \001(\rH\000\022,\n\013system_hint\030\246\001 " + "\001(\0132\024.ChatInfo.SystemHintH\000\032\032\n\nSystemHin" + "t\022\014\n\004type\030\r \001(\r\"~\n\016SystemHintType\022\036\n\032SYS" + "TEM_HINT_TYPE_CHAT_NONE\020\000\022%\n!SYSTEM_HINT" + "_TYPE_CHAT_ENTER_WORLD\020\001\022%\n!SYSTEM_HINT_" + "TYPE_CHAT_LEAVE_WORLD\020\002B\t\n\007contentB\033\n\031em" + "u.grasscutter.net.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_ChatInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ChatInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ChatInfo_descriptor, new java.lang.String[] { "Time", "ToUid", "IsRead", "Uid", "Sequence", "Text", "Icon", "SystemHint", "Content", }); internal_static_ChatInfo_SystemHint_descriptor = internal_static_ChatInfo_descriptor.getNestedTypes().get(0); internal_static_ChatInfo_SystemHint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ChatInfo_SystemHint_descriptor, new java.lang.String[] { "Type", }); } // @@protoc_insertion_point(outer_class_scope) }