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, 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<Notification.Builder>
public Notification.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<Notification.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<Notification.Builder>
public Notification getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Notification build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Notification buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Notification.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Notification.Builder>
java.io.IOException
public java.lang.String getId()
ID of the Notification.
string id = 1 [json_name = "id"];
getId
in interface NotificationOrBuilder
public com.google.protobuf.ByteString getIdBytes()
ID of the Notification.
string id = 1 [json_name = "id"];
getIdBytes
in interface NotificationOrBuilder
public 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 NotificationOrBuilder
public com.google.protobuf.ByteString getSubjectBytes()
Subject of the notification.
string subject = 2 [json_name = "subject"];
getSubjectBytes
in interface NotificationOrBuilder
public 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 NotificationOrBuilder
public com.google.protobuf.ByteString getContentBytes()
Content of the notification in JSON.
string content = 3 [json_name = "content"];
getContentBytes
in interface NotificationOrBuilder
public 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 NotificationOrBuilder
public 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 NotificationOrBuilder
public com.google.protobuf.ByteString getSenderIdBytes()
ID of the sender, if a user. Otherwise 'null'.
string sender_id = 5 [json_name = "senderId"];
getSenderIdBytes
in interface NotificationOrBuilder
public 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 NotificationOrBuilder
public 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 NotificationOrBuilder
public 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 NotificationOrBuilder
public boolean getPersistent()
True if this notification was persisted to the database.
bool persistent = 7 [json_name = "persistent"];
getPersistent
in interface NotificationOrBuilder
public 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"];