public static final class Group.Builder extends com.google.protobuf.GeneratedMessage.Builder<Group.Builder> implements GroupOrBuilder
A group in the server.Protobuf type
nakama.api.Group
Modifier and Type | Method and Description |
---|---|
Group |
build() |
Group |
buildPartial() |
Group.Builder |
clear() |
Group.Builder |
clearAvatarUrl()
A URL for an avatar image.
|
Group.Builder |
clearCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
|
Group.Builder |
clearCreatorId()
The id of the user who created the group.
|
Group.Builder |
clearDescription()
A description for the group.
|
Group.Builder |
clearEdgeCount()
The current count of all members in the group.
|
Group.Builder |
clearId()
The id of a group.
|
Group.Builder |
clearLangTag()
The language expected to be a tag which follows the BCP-47 spec.
|
Group.Builder |
clearMaxCount()
The maximum number of members allowed.
|
Group.Builder |
clearMetadata()
Additional information stored as a JSON object.
|
Group.Builder |
clearName()
The unique name of the group.
|
Group.Builder |
clearOpen()
Anyone can join open groups, otherwise only admins can accept members.
|
Group.Builder |
clearUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
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.Timestamp.Builder |
getCreateTimeBuilder()
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.
|
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() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.BoolValue.Builder |
getOpenBuilder()
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.Timestamp |
getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
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.
|
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() |
Group.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
|
Group.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Group.Builder |
mergeFrom(Group other) |
Group.Builder |
mergeFrom(com.google.protobuf.Message other) |
Group.Builder |
mergeOpen(com.google.protobuf.BoolValue value)
Anyone can join open groups, otherwise only admins can accept members.
|
Group.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
Group.Builder |
setAvatarUrl(java.lang.String value)
A URL for an avatar image.
|
Group.Builder |
setAvatarUrlBytes(com.google.protobuf.ByteString value)
A URL for an avatar image.
|
Group.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
|
Group.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created.
|
Group.Builder |
setCreatorId(java.lang.String value)
The id of the user who created the group.
|
Group.Builder |
setCreatorIdBytes(com.google.protobuf.ByteString value)
The id of the user who created the group.
|
Group.Builder |
setDescription(java.lang.String value)
A description for the group.
|
Group.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A description for the group.
|
Group.Builder |
setEdgeCount(int value)
The current count of all members in the group.
|
Group.Builder |
setId(java.lang.String value)
The id of a group.
|
Group.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The id of a group.
|
Group.Builder |
setLangTag(java.lang.String value)
The language expected to be a tag which follows the BCP-47 spec.
|
Group.Builder |
setLangTagBytes(com.google.protobuf.ByteString value)
The language expected to be a tag which follows the BCP-47 spec.
|
Group.Builder |
setMaxCount(int value)
The maximum number of members allowed.
|
Group.Builder |
setMetadata(java.lang.String value)
Additional information stored as a JSON object.
|
Group.Builder |
setMetadataBytes(com.google.protobuf.ByteString value)
Additional information stored as a JSON object.
|
Group.Builder |
setName(java.lang.String value)
The unique name of the group.
|
Group.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The unique name of the group.
|
Group.Builder |
setOpen(com.google.protobuf.BoolValue.Builder builderForValue)
Anyone can join open groups, otherwise only admins can accept members.
|
Group.Builder |
setOpen(com.google.protobuf.BoolValue value)
Anyone can join open groups, otherwise only admins can accept members.
|
Group.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
Group.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
public Group.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
public Group getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Group build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Group buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Group.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Group.Builder>
public Group.Builder mergeFrom(Group other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Group.Builder>
public Group.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Group.Builder>
java.io.IOException
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 Group.Builder setId(java.lang.String value)
The id of a group.
string id = 1 [json_name = "id"];
value
- The id to set.public Group.Builder clearId()
The id of a group.
string id = 1 [json_name = "id"];
public Group.Builder setIdBytes(com.google.protobuf.ByteString value)
The id of a group.
string id = 1 [json_name = "id"];
value
- The bytes for id to set.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 Group.Builder setCreatorId(java.lang.String value)
The id of the user who created the group.
string creator_id = 2 [json_name = "creatorId"];
value
- The creatorId to set.public Group.Builder clearCreatorId()
The id of the user who created the group.
string creator_id = 2 [json_name = "creatorId"];
public Group.Builder setCreatorIdBytes(com.google.protobuf.ByteString value)
The id of the user who created the group.
string creator_id = 2 [json_name = "creatorId"];
value
- The bytes for creatorId to set.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 Group.Builder setName(java.lang.String value)
The unique name of the group.
string name = 3 [json_name = "name"];
value
- The name to set.public Group.Builder clearName()
The unique name of the group.
string name = 3 [json_name = "name"];
public Group.Builder setNameBytes(com.google.protobuf.ByteString value)
The unique name of the group.
string name = 3 [json_name = "name"];
value
- The bytes for name to set.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 Group.Builder setDescription(java.lang.String value)
A description for the group.
string description = 4 [json_name = "description"];
value
- The description to set.public Group.Builder clearDescription()
A description for the group.
string description = 4 [json_name = "description"];
public Group.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description for the group.
string description = 4 [json_name = "description"];
value
- The bytes for description to set.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 Group.Builder setLangTag(java.lang.String value)
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5 [json_name = "langTag"];
value
- The langTag to set.public Group.Builder clearLangTag()
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5 [json_name = "langTag"];
public Group.Builder setLangTagBytes(com.google.protobuf.ByteString value)
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5 [json_name = "langTag"];
value
- The bytes for langTag to set.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 Group.Builder setMetadata(java.lang.String value)
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];
value
- The metadata to set.public Group.Builder clearMetadata()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];
public Group.Builder setMetadataBytes(com.google.protobuf.ByteString value)
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];
value
- The bytes for metadata to set.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 Group.Builder setAvatarUrl(java.lang.String value)
A URL for an avatar image.
string avatar_url = 7 [json_name = "avatarUrl"];
value
- The avatarUrl to set.public Group.Builder clearAvatarUrl()
A URL for an avatar image.
string avatar_url = 7 [json_name = "avatarUrl"];
public Group.Builder setAvatarUrlBytes(com.google.protobuf.ByteString value)
A URL for an avatar image.
string avatar_url = 7 [json_name = "avatarUrl"];
value
- The bytes for avatarUrl to set.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 Group.Builder setOpen(com.google.protobuf.BoolValue value)
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
public Group.Builder setOpen(com.google.protobuf.BoolValue.Builder builderForValue)
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
public Group.Builder mergeOpen(com.google.protobuf.BoolValue value)
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
public Group.Builder clearOpen()
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
public com.google.protobuf.BoolValue.Builder getOpenBuilder()
Anyone can join open groups, otherwise only admins can accept members.
.google.protobuf.BoolValue open = 8 [json_name = "open"];
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 Group.Builder setEdgeCount(int value)
The current count of all members in the group.
int32 edge_count = 9 [json_name = "edgeCount"];
value
- The edgeCount to set.public Group.Builder clearEdgeCount()
The current count of all members in the group.
int32 edge_count = 9 [json_name = "edgeCount"];
public int getMaxCount()
The maximum number of members allowed.
int32 max_count = 10 [json_name = "maxCount"];
getMaxCount
in interface GroupOrBuilder
public Group.Builder setMaxCount(int value)
The maximum number of members allowed.
int32 max_count = 10 [json_name = "maxCount"];
value
- The maxCount to set.public Group.Builder clearMaxCount()
The maximum number of members allowed.
int32 max_count = 10 [json_name = "maxCount"];
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 Group.Builder setCreateTime(com.google.protobuf.Timestamp value)
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"];
public Group.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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"];
public Group.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
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"];
public Group.Builder clearCreateTime()
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"];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
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"];
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 Group.Builder setUpdateTime(com.google.protobuf.Timestamp value)
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"];
public Group.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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"];
public Group.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
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"];
public Group.Builder clearUpdateTime()
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"];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
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"];
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