// 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.EnumLiteMapuint32 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.Builderuint32 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.Parseruint32 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.Builderuint32 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