mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 18:26:23 +00:00
聊天UI
This commit is contained in:
@@ -0,0 +1,764 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: GUIMessage.proto
|
||||
|
||||
package cn.jisol.game.proto;
|
||||
|
||||
public final class GUIMessage {
|
||||
private GUIMessage() {}
|
||||
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 GUIChatMessageOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:GUIChatMessage)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @return A list containing the message.
|
||||
*/
|
||||
java.util.List<java.lang.String>
|
||||
getMessageList();
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @return The count of message.
|
||||
*/
|
||||
int getMessageCount();
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The message at the given index.
|
||||
*/
|
||||
java.lang.String getMessage(int index);
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param index The index of the value to return.
|
||||
* @return The bytes of the message at the given index.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getMessageBytes(int index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天信息
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GUIChatMessage}
|
||||
*/
|
||||
public static final class GUIChatMessage extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:GUIChatMessage)
|
||||
GUIChatMessageOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GUIChatMessage.newBuilder() to construct.
|
||||
private GUIChatMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GUIChatMessage() {
|
||||
message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GUIChatMessage();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GUIChatMessage(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
message_ = new com.google.protobuf.LazyStringArrayList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
message_.add(s);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
message_ = message_.getUnmodifiableView();
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return GUIMessage.internal_static_GUIChatMessage_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return GUIMessage.internal_static_GUIChatMessage_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
GUIMessage.GUIChatMessage.class, GUIMessage.GUIChatMessage.Builder.class);
|
||||
}
|
||||
|
||||
public static final int MESSAGE_FIELD_NUMBER = 1;
|
||||
private com.google.protobuf.LazyStringList message_;
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @return A list containing the message.
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getMessageList() {
|
||||
return message_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @return The count of message.
|
||||
*/
|
||||
public int getMessageCount() {
|
||||
return message_.size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The message at the given index.
|
||||
*/
|
||||
public java.lang.String getMessage(int index) {
|
||||
return message_.get(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param index The index of the value to return.
|
||||
* @return The bytes of the message at the given index.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getMessageBytes(int index) {
|
||||
return message_.getByteString(index);
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
for (int i = 0; i < message_.size(); i++) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_.getRaw(i));
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < message_.size(); i++) {
|
||||
dataSize += computeStringSizeNoTag(message_.getRaw(i));
|
||||
}
|
||||
size += dataSize;
|
||||
size += 1 * getMessageList().size();
|
||||
}
|
||||
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 GUIMessage.GUIChatMessage)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
GUIMessage.GUIChatMessage other = (GUIMessage.GUIChatMessage) obj;
|
||||
|
||||
if (!getMessageList()
|
||||
.equals(other.getMessageList())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (getMessageCount() > 0) {
|
||||
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getMessageList().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static GUIMessage.GUIChatMessage parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage 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 GUIMessage.GUIChatMessage parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage 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 GUIMessage.GUIChatMessage parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static GUIMessage.GUIChatMessage 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(GUIMessage.GUIChatMessage 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;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天信息
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code GUIChatMessage}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:GUIChatMessage)
|
||||
GUIMessage.GUIChatMessageOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return GUIMessage.internal_static_GUIChatMessage_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return GUIMessage.internal_static_GUIChatMessage_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
GUIMessage.GUIChatMessage.class, GUIMessage.GUIChatMessage.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cn.jisol.game.proto.GUIMessage.GUIChatMessage.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();
|
||||
message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return GUIMessage.internal_static_GUIChatMessage_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public GUIMessage.GUIChatMessage getDefaultInstanceForType() {
|
||||
return GUIMessage.GUIChatMessage.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public GUIMessage.GUIChatMessage build() {
|
||||
GUIMessage.GUIChatMessage result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public GUIMessage.GUIChatMessage buildPartial() {
|
||||
GUIMessage.GUIChatMessage result = new GUIMessage.GUIChatMessage(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
message_ = message_.getUnmodifiableView();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.message_ = message_;
|
||||
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 GUIMessage.GUIChatMessage) {
|
||||
return mergeFrom((GUIMessage.GUIChatMessage)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(GUIMessage.GUIChatMessage other) {
|
||||
if (other == GUIMessage.GUIChatMessage.getDefaultInstance()) return this;
|
||||
if (!other.message_.isEmpty()) {
|
||||
if (message_.isEmpty()) {
|
||||
message_ = other.message_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureMessageIsMutable();
|
||||
message_.addAll(other.message_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
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 {
|
||||
GUIMessage.GUIChatMessage parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (GUIMessage.GUIChatMessage) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.LazyStringList message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
private void ensureMessageIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
message_ = new com.google.protobuf.LazyStringArrayList(message_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @return A list containing the message.
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getMessageList() {
|
||||
return message_.getUnmodifiableView();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @return The count of message.
|
||||
*/
|
||||
public int getMessageCount() {
|
||||
return message_.size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The message at the given index.
|
||||
*/
|
||||
public java.lang.String getMessage(int index) {
|
||||
return message_.get(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param index The index of the value to return.
|
||||
* @return The bytes of the message at the given index.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getMessageBytes(int index) {
|
||||
return message_.getByteString(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The message to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setMessage(
|
||||
int index, java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureMessageIsMutable();
|
||||
message_.set(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param value The message to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addMessage(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureMessageIsMutable();
|
||||
message_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param values The message to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllMessage(
|
||||
java.lang.Iterable<java.lang.String> values) {
|
||||
ensureMessageIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, message_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearMessage() {
|
||||
message_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*聊天内容
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string message = 1;</code>
|
||||
* @param value The bytes of the message to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addMessageBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
ensureMessageIsMutable();
|
||||
message_.add(value);
|
||||
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:GUIChatMessage)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:GUIChatMessage)
|
||||
private static final GUIMessage.GUIChatMessage DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new GUIMessage.GUIChatMessage();
|
||||
}
|
||||
|
||||
public static GUIMessage.GUIChatMessage getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GUIChatMessage>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GUIChatMessage>() {
|
||||
@java.lang.Override
|
||||
public GUIChatMessage parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GUIChatMessage(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GUIChatMessage> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GUIChatMessage> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public GUIMessage.GUIChatMessage getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_GUIChatMessage_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_GUIChatMessage_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\020GUIMessage.proto\"!\n\016GUIChatMessage\022\017\n\007" +
|
||||
"message\030\001 \003(\tB\026\n\024cn.jisol.ngame.protob\006p" +
|
||||
"roto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_GUIChatMessage_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_GUIChatMessage_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_GUIChatMessage_descriptor,
|
||||
new java.lang.String[] { "Message", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "cn.jisol.ngame.proto";
|
||||
|
||||
//聊天信息
|
||||
message GUIChatMessage {
|
||||
repeated string message = 1; //聊天内容
|
||||
}
|
Reference in New Issue
Block a user