public static final class Notification.Builder extends com.google.protobuf.GeneratedMessage.Builder<Notification.Builder> implements NotificationOrBuilder
A notification in the server.Protobuf type
nakama.api.Notification| Modifier and Type | Method and Description |
|---|---|
Notification |
build() |
Notification |
buildPartial() |
Notification.Builder |
clear() |
Notification.Builder |
clearCode()
Category code for this notification.
|
Notification.Builder |
clearContent()
Content of the notification in JSON.
|
Notification.Builder |
clearCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
Notification.Builder |
clearId()
ID of the Notification.
|
Notification.Builder |
clearPersistent()
True if this notification was persisted to the database.
|
Notification.Builder |
clearSenderId()
ID of the sender, if a user.
|
Notification.Builder |
clearSubject()
Subject of the notification.
|
int |
getCode()
Category code for this notification.
|
java.lang.String |
getContent()
Content of the notification in JSON.
|
com.google.protobuf.ByteString |
getContentBytes()
Content of the notification in JSON.
|
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
Notification |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getId()
ID of the Notification.
|
com.google.protobuf.ByteString |
getIdBytes()
ID of the Notification.
|
boolean |
getPersistent()
True if this notification was persisted to the database.
|
java.lang.String |
getSenderId()
ID of the sender, if a user.
|
com.google.protobuf.ByteString |
getSenderIdBytes()
ID of the sender, if a user.
|
java.lang.String |
getSubject()
Subject of the notification.
|
com.google.protobuf.ByteString |
getSubjectBytes()
Subject of the notification.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Notification.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
Notification.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Notification.Builder |
mergeFrom(com.google.protobuf.Message other) |
Notification.Builder |
mergeFrom(Notification other) |
Notification.Builder |
setCode(int value)
Category code for this notification.
|
Notification.Builder |
setContent(java.lang.String value)
Content of the notification in JSON.
|
Notification.Builder |
setContentBytes(com.google.protobuf.ByteString value)
Content of the notification in JSON.
|
Notification.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
Notification.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
|
Notification.Builder |
setId(java.lang.String value)
ID of the Notification.
|
Notification.Builder |
setIdBytes(com.google.protobuf.ByteString value)
ID of the Notification.
|
Notification.Builder |
setPersistent(boolean value)
True if this notification was persisted to the database.
|
Notification.Builder |
setSenderId(java.lang.String value)
ID of the sender, if a user.
|
Notification.Builder |
setSenderIdBytes(com.google.protobuf.ByteString value)
ID of the sender, if a user.
|
Notification.Builder |
setSubject(java.lang.String value)
Subject of the notification.
|
Notification.Builder |
setSubjectBytes(com.google.protobuf.ByteString value)
Subject of the notification.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Notification.Builder>public Notification.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Notification.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Notification.Builder>public Notification getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Notification build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Notification buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Notification.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Notification.Builder>public Notification.Builder mergeFrom(Notification other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Notification.Builder>public Notification.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Notification.Builder>java.io.IOExceptionpublic java.lang.String getId()
ID of the Notification.
string id = 1 [json_name = "id"];getId in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
ID of the Notification.
string id = 1 [json_name = "id"];getIdBytes in interface NotificationOrBuilderpublic Notification.Builder setId(java.lang.String value)
ID of the Notification.
string id = 1 [json_name = "id"];value - The id to set.public Notification.Builder clearId()
ID of the Notification.
string id = 1 [json_name = "id"];public Notification.Builder setIdBytes(com.google.protobuf.ByteString value)
ID of the Notification.
string id = 1 [json_name = "id"];value - The bytes for id to set.public java.lang.String getSubject()
Subject of the notification.
string subject = 2 [json_name = "subject"];getSubject in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getSubjectBytes()
Subject of the notification.
string subject = 2 [json_name = "subject"];getSubjectBytes in interface NotificationOrBuilderpublic Notification.Builder setSubject(java.lang.String value)
Subject of the notification.
string subject = 2 [json_name = "subject"];value - The subject to set.public Notification.Builder clearSubject()
Subject of the notification.
string subject = 2 [json_name = "subject"];public Notification.Builder setSubjectBytes(com.google.protobuf.ByteString value)
Subject of the notification.
string subject = 2 [json_name = "subject"];value - The bytes for subject to set.public java.lang.String getContent()
Content of the notification in JSON.
string content = 3 [json_name = "content"];getContent in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
Content of the notification in JSON.
string content = 3 [json_name = "content"];getContentBytes in interface NotificationOrBuilderpublic Notification.Builder setContent(java.lang.String value)
Content of the notification in JSON.
string content = 3 [json_name = "content"];value - The content to set.public Notification.Builder clearContent()
Content of the notification in JSON.
string content = 3 [json_name = "content"];public Notification.Builder setContentBytes(com.google.protobuf.ByteString value)
Content of the notification in JSON.
string content = 3 [json_name = "content"];value - The bytes for content to set.public int getCode()
Category code for this notification.
int32 code = 4 [json_name = "code"];getCode in interface NotificationOrBuilderpublic Notification.Builder setCode(int value)
Category code for this notification.
int32 code = 4 [json_name = "code"];value - The code to set.public Notification.Builder clearCode()
Category code for this notification.
int32 code = 4 [json_name = "code"];public java.lang.String getSenderId()
ID of the sender, if a user. Otherwise 'null'.
string sender_id = 5 [json_name = "senderId"];getSenderId in interface NotificationOrBuilderpublic com.google.protobuf.ByteString getSenderIdBytes()
ID of the sender, if a user. Otherwise 'null'.
string sender_id = 5 [json_name = "senderId"];getSenderIdBytes in interface NotificationOrBuilderpublic Notification.Builder setSenderId(java.lang.String value)
ID of the sender, if a user. Otherwise 'null'.
string sender_id = 5 [json_name = "senderId"];value - The senderId to set.public Notification.Builder clearSenderId()
ID of the sender, if a user. Otherwise 'null'.
string sender_id = 5 [json_name = "senderId"];public Notification.Builder setSenderIdBytes(com.google.protobuf.ByteString value)
ID of the sender, if a user. Otherwise 'null'.
string sender_id = 5 [json_name = "senderId"];value - The bytes for senderId to set.public boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];hasCreateTime in interface NotificationOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];getCreateTime in interface NotificationOrBuilderpublic Notification.Builder setCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];public Notification.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];public Notification.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];public Notification.Builder clearCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created.
.google.protobuf.Timestamp create_time = 6 [json_name = "createTime"];getCreateTimeOrBuilder in interface NotificationOrBuilderpublic boolean getPersistent()
True if this notification was persisted to the database.
bool persistent = 7 [json_name = "persistent"];getPersistent in interface NotificationOrBuilderpublic Notification.Builder setPersistent(boolean value)
True if this notification was persisted to the database.
bool persistent = 7 [json_name = "persistent"];value - The persistent to set.public Notification.Builder clearPersistent()
True if this notification was persisted to the database.
bool persistent = 7 [json_name = "persistent"];