public final class Group extends com.google.protobuf.GeneratedMessage implements GroupOrBuilder
A group in the server.Protobuf type
nakama.api.Group
Modifier and Type | Class and Description |
---|---|
static class |
Group.Builder
A group in the server.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
AVATAR_URL_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
CREATOR_ID_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
EDGE_COUNT_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LANG_TAG_FIELD_NUMBER |
static int |
MAX_COUNT_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OPEN_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvatarUrl()
A URL for an avatar image.
|
com.google.protobuf.ByteString |
getAvatarUrlBytes()
A URL for an avatar image.
|
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
|
java.lang.String |
getCreatorId()
The id of the user who created the group.
|
com.google.protobuf.ByteString |
getCreatorIdBytes()
The id of the user who created the group.
|
static Group |
getDefaultInstance() |
Group |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
A description for the group.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A description for the group.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getEdgeCount()
The current count of all members in the group.
|
java.lang.String |
getId()
The id of a group.
|
com.google.protobuf.ByteString |
getIdBytes()
The id of a group.
|
java.lang.String |
getLangTag()
The language expected to be a tag which follows the BCP-47 spec.
|
com.google.protobuf.ByteString |
getLangTagBytes()
The language expected to be a tag which follows the BCP-47 spec.
|
int |
getMaxCount()
The maximum number of members allowed.
|
java.lang.String |
getMetadata()
Additional information stored as a JSON object.
|
com.google.protobuf.ByteString |
getMetadataBytes()
Additional information stored as a JSON object.
|
java.lang.String |
getName()
The unique name of the group.
|
com.google.protobuf.ByteString |
getNameBytes()
The unique name of the group.
|
com.google.protobuf.BoolValue |
getOpen()
Anyone can join open groups, otherwise only admins can accept members.
|
com.google.protobuf.BoolValueOrBuilder |
getOpenOrBuilder()
Anyone can join open groups, otherwise only admins can accept members.
|
com.google.protobuf.Parser<Group> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
|
int |
hashCode() |
boolean |
hasOpen()
Anyone can join open groups, otherwise only admins can accept members.
|
boolean |
hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Group.Builder |
newBuilder() |
static Group.Builder |
newBuilder(Group prototype) |
Group.Builder |
newBuilderForType() |
protected Group.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Group |
parseDelimitedFrom(java.io.InputStream input) |
static Group |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Group |
parseFrom(byte[] data) |
static Group |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Group |
parseFrom(java.nio.ByteBuffer data) |
static Group |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Group |
parseFrom(com.google.protobuf.ByteString data) |
static Group |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Group |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Group |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Group |
parseFrom(java.io.InputStream input) |
static Group |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Group> |
parser() |
Group.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int ID_FIELD_NUMBER
public static final int CREATOR_ID_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int LANG_TAG_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int AVATAR_URL_FIELD_NUMBER
public static final int OPEN_FIELD_NUMBER
public static final int EDGE_COUNT_FIELD_NUMBER
public static final int MAX_COUNT_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public java.lang.String getId()
The id of a group.
string id = 1 [json_name = "id"];
getId
in interface GroupOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The id of a group.
string id = 1 [json_name = "id"];
getIdBytes
in interface GroupOrBuilder
public java.lang.String getCreatorId()
The id of the user who created the group.
string creator_id = 2 [json_name = "creatorId"];
getCreatorId
in interface GroupOrBuilder
public com.google.protobuf.ByteString getCreatorIdBytes()
The id of the user who created the group.
string creator_id = 2 [json_name = "creatorId"];
getCreatorIdBytes
in interface GroupOrBuilder
public java.lang.String getName()
The unique name of the group.
string name = 3 [json_name = "name"];
getName
in interface GroupOrBuilder
public com.google.protobuf.ByteString getNameBytes()
The unique name of the group.
string name = 3 [json_name = "name"];
getNameBytes
in interface GroupOrBuilder
public java.lang.String getDescription()
A description for the group.
string description = 4 [json_name = "description"];
getDescription
in interface GroupOrBuilder
public com.google.protobuf.ByteString getDescriptionBytes()
A description for the group.
string description = 4 [json_name = "description"];
getDescriptionBytes
in interface GroupOrBuilder
public java.lang.String getLangTag()
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5 [json_name = "langTag"];
getLangTag
in interface GroupOrBuilder
public com.google.protobuf.ByteString getLangTagBytes()
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5 [json_name = "langTag"];
getLangTagBytes
in interface GroupOrBuilder
public java.lang.String getMetadata()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];
getMetadata
in interface GroupOrBuilder
public com.google.protobuf.ByteString getMetadataBytes()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];
getMetadataBytes
in interface GroupOrBuilder
public java.lang.String getAvatarUrl()
A URL for an avatar image.
string avatar_url = 7 [json_name = "avatarUrl"];
getAvatarUrl
in interface GroupOrBuilder
public com.google.protobuf.ByteString getAvatarUrlBytes()
A URL for an avatar image.
string avatar_url = 7 [json_name = "avatarUrl"];
getAvatarUrlBytes
in interface GroupOrBuilder
public boolean hasOpen()
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
hasOpen
in interface GroupOrBuilder
public com.google.protobuf.BoolValue getOpen()
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
getOpen
in interface GroupOrBuilder
public com.google.protobuf.BoolValueOrBuilder getOpenOrBuilder()
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
getOpenOrBuilder
in interface GroupOrBuilder
public int getEdgeCount()
The current count of all members in the group.
int32 edge_count = 9 [json_name = "edgeCount"];
getEdgeCount
in interface GroupOrBuilder
public int getMaxCount()
The maximum number of members allowed.
int32 max_count = 10 [json_name = "maxCount"];
getMaxCount
in interface GroupOrBuilder
public boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
.google.protobuf.Timestamp create_time = 11 [json_name = "createTime"];
hasCreateTime
in interface GroupOrBuilder
public com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
.google.protobuf.Timestamp create_time = 11 [json_name = "createTime"];
getCreateTime
in interface GroupOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
.google.protobuf.Timestamp create_time = 11 [json_name = "createTime"];
getCreateTimeOrBuilder
in interface GroupOrBuilder
public boolean hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];
hasUpdateTime
in interface GroupOrBuilder
public com.google.protobuf.Timestamp getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];
getUpdateTime
in interface GroupOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
.google.protobuf.Timestamp update_time = 12 [json_name = "updateTime"];
getUpdateTimeOrBuilder
in interface GroupOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Group parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Group parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Group parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Group parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Group parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Group parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Group parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Group parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Group parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Group parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Group parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Group parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Group.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Group.Builder newBuilder()
public static Group.Builder newBuilder(Group prototype)
public Group.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Group.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static Group getDefaultInstance()
public static com.google.protobuf.Parser<Group> parser()
public com.google.protobuf.Parser<Group> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public Group getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder