// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/libre/im/core/proto/TextMessage.proto
package com.libre.im.websocket.core.proto;
public final class TextMessageProto {
private TextMessageProto() {}
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 TextMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.libre.im.core.proto.TextMessage)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint64 id = 1;</code>
* @return The id.
*/
long getId();
/**
* <code>uint32 connectType = 2;</code>
* @return The connectType.
*/
int getConnectType();
/**
* <code>uint32 messageBodyType = 3;</code>
* @return The messageBodyType.
*/
int getMessageBodyType();
/**
* <code>uint64 sendUserId = 4;</code>
* @return The sendUserId.
*/
long getSendUserId();
/**
* <code>uint32 status = 5;</code>
* @return The status.
*/
int getStatus();
/**
* <code>string body = 6;</code>
* @return The body.
*/
java.lang.String getBody();
/**
* <code>string body = 6;</code>
* @return The bytes for body.
*/
com.google.protobuf.ByteString
getBodyBytes();
/**
* <code>uint64 acceptUserId = 7;</code>
* @return The acceptUserId.
*/
long getAcceptUserId();
/**
* <code>uint64 acceptGroupId = 8;</code>
* @return The acceptGroupId.
*/
long getAcceptGroupId();
/**
* <code>string createTime = 9;</code>
* @return The createTime.
*/
java.lang.String getCreateTime();
/**
* <code>string createTime = 9;</code>
* @return The bytes for createTime.
*/
com.google.protobuf.ByteString
getCreateTimeBytes();
}
/**
* Protobuf type {@code com.libre.im.core.proto.TextMessage}
*/
public static final class TextMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.libre.im.core.proto.TextMessage)
TextMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use TextMessage.newBuilder() to construct.
private TextMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private TextMessage() {
body_ = "";
createTime_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TextMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TextMessage(
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 8: {
id_ = input.readUInt64();
break;
}
case 16: {
connectType_ = input.readUInt32();
break;
}
case 24: {
messageBodyType_ = input.readUInt32();
break;
}
case 32: {
sendUserId_ = input.readUInt64();
break;
}
case 40: {
status_ = input.readUInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
body_ = s;
break;
}
case 56: {
acceptUserId_ = input.readUInt64();
break;
}
case 64: {
acceptGroupId_ = input.readUInt64();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
createTime_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return TextMessageProto.internal_static_com_libre_im_core_proto_TextMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return TextMessageProto.internal_static_com_libre_im_core_proto_TextMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
TextMessageProto.TextMessage.class, TextMessageProto.TextMessage.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* <code>uint64 id = 1;</code>
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int CONNECTTYPE_FIELD_NUMBER = 2;
private int connectType_;
/**
* <code>uint32 connectType = 2;</code>
* @return The connectType.
*/
@java.lang.Override
public int getConnectType() {
return connectType_;
}
public static final int MESSAGEBODYTYPE_FIELD_NUMBER = 3;
private int messageBodyType_;
/**
* <code>uint32 messageBodyType = 3;</code>
* @return The messageBodyType.
*/
@java.lang.Override
public int getMessageBodyType() {
return messageBodyType_;
}
public static final int SENDUSERID_FIELD_NUMBER = 4;
private long sendUserId_;
/**
* <code>uint64 sendUserId = 4;</code>
* @return The sendUserId.
*/
@java.lang.Override
public long getSendUserId() {
return sendUserId_;
}
public static final int STATUS_FIELD_NUMBER = 5;
private int status_;
/**
* <code>uint32 status = 5;</code>
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
public static final int BODY_FIELD_NUMBER = 6;
private volatile java.lang.Object body_;
/**
* <code>string body = 6;</code>
* @return The body.
*/
@java.lang.Override
public java.lang.String getBody() {
java.lang.Object ref = body_;
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();
body_ = s;
return s;
}
}
/**
* <code>string body = 6;</code>
* @return The bytes for body.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBodyBytes() {
java.lang.Object ref = body_;
if (ref instanceof java