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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.GeneratedMessagepublic java.lang.String getId()
The id of a group.
string id = 1 [json_name = "id"];getId in interface GroupOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The id of a group.
string id = 1 [json_name = "id"];getIdBytes in interface GroupOrBuilderpublic java.lang.String getCreatorId()
The id of the user who created the group.
string creator_id = 2 [json_name = "creatorId"];getCreatorId in interface GroupOrBuilderpublic com.google.protobuf.ByteString getCreatorIdBytes()
The id of the user who created the group.
string creator_id = 2 [json_name = "creatorId"];getCreatorIdBytes in interface GroupOrBuilderpublic java.lang.String getName()
The unique name of the group.
string name = 3 [json_name = "name"];getName in interface GroupOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique name of the group.
string name = 3 [json_name = "name"];getNameBytes in interface GroupOrBuilderpublic java.lang.String getDescription()
A description for the group.
string description = 4 [json_name = "description"];getDescription in interface GroupOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description for the group.
string description = 4 [json_name = "description"];getDescriptionBytes in interface GroupOrBuilderpublic 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 GroupOrBuilderpublic 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 GroupOrBuilderpublic java.lang.String getMetadata()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];getMetadata in interface GroupOrBuilderpublic com.google.protobuf.ByteString getMetadataBytes()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];getMetadataBytes in interface GroupOrBuilderpublic java.lang.String getAvatarUrl()
A URL for an avatar image.
string avatar_url = 7 [json_name = "avatarUrl"];getAvatarUrl in interface GroupOrBuilderpublic com.google.protobuf.ByteString getAvatarUrlBytes()
A URL for an avatar image.
string avatar_url = 7 [json_name = "avatarUrl"];getAvatarUrlBytes in interface GroupOrBuilderpublic boolean hasOpen()
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];hasOpen in interface GroupOrBuilderpublic 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 GroupOrBuilderpublic 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 GroupOrBuilderpublic int getEdgeCount()
The current count of all members in the group.
int32 edge_count = 9 [json_name = "edgeCount"];getEdgeCount in interface GroupOrBuilderpublic int getMaxCount()
The maximum number of members allowed.
int32 max_count = 10 [json_name = "maxCount"];getMaxCount in interface GroupOrBuilderpublic 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 GroupOrBuilderpublic 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 GroupOrBuilderpublic 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 GroupOrBuilderpublic 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 GroupOrBuilderpublic 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 GroupOrBuilderpublic 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 GroupOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Group parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Group parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Group parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Group parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Group parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Group parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Group parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Group parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Group parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Group parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Group parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Group parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Group.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Group.Builder newBuilder()
public static Group.Builder newBuilder(Group prototype)
public Group.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Group.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static Group getDefaultInstance()
public static com.google.protobuf.Parser<Group> parser()
public com.google.protobuf.Parser<Group> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic Group getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder