public static final class StorageObject.Builder extends com.google.protobuf.GeneratedMessage.Builder<StorageObject.Builder> implements StorageObjectOrBuilder
An object within the storage engine.Protobuf type
nakama.api.StorageObject| Modifier and Type | Method and Description |
|---|---|
StorageObject |
build() |
StorageObject |
buildPartial() |
StorageObject.Builder |
clear() |
StorageObject.Builder |
clearCollection()
The collection which stores the object.
|
StorageObject.Builder |
clearCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
StorageObject.Builder |
clearKey()
The key of the object within the collection.
|
StorageObject.Builder |
clearPermissionRead()
The read access permissions for the object.
|
StorageObject.Builder |
clearPermissionWrite()
The write access permissions for the object.
|
StorageObject.Builder |
clearUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
StorageObject.Builder |
clearUserId()
The user owner of the object.
|
StorageObject.Builder |
clearValue()
The value of the object.
|
StorageObject.Builder |
clearVersion()
The version hash of the object.
|
java.lang.String |
getCollection()
The collection which stores the object.
|
com.google.protobuf.ByteString |
getCollectionBytes()
The collection which stores the object.
|
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
StorageObject |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getKey()
The key of the object within the collection.
|
com.google.protobuf.ByteString |
getKeyBytes()
The key of the object within the collection.
|
int |
getPermissionRead()
The read access permissions for the object.
|
int |
getPermissionWrite()
The write access permissions for the object.
|
com.google.protobuf.Timestamp |
getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
java.lang.String |
getUserId()
The user owner of the object.
|
com.google.protobuf.ByteString |
getUserIdBytes()
The user owner of the object.
|
java.lang.String |
getValue()
The value of the object.
|
com.google.protobuf.ByteString |
getValueBytes()
The value of the object.
|
java.lang.String |
getVersion()
The version hash of the object.
|
com.google.protobuf.ByteString |
getVersionBytes()
The version hash of the object.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
boolean |
hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StorageObject.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
StorageObject.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StorageObject.Builder |
mergeFrom(com.google.protobuf.Message other) |
StorageObject.Builder |
mergeFrom(StorageObject other) |
StorageObject.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
StorageObject.Builder |
setCollection(java.lang.String value)
The collection which stores the object.
|
StorageObject.Builder |
setCollectionBytes(com.google.protobuf.ByteString value)
The collection which stores the object.
|
StorageObject.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
StorageObject.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
|
StorageObject.Builder |
setKey(java.lang.String value)
The key of the object within the collection.
|
StorageObject.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
The key of the object within the collection.
|
StorageObject.Builder |
setPermissionRead(int value)
The read access permissions for the object.
|
StorageObject.Builder |
setPermissionWrite(int value)
The write access permissions for the object.
|
StorageObject.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
StorageObject.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
|
StorageObject.Builder |
setUserId(java.lang.String value)
The user owner of the object.
|
StorageObject.Builder |
setUserIdBytes(com.google.protobuf.ByteString value)
The user owner of the object.
|
StorageObject.Builder |
setValue(java.lang.String value)
The value of the object.
|
StorageObject.Builder |
setValueBytes(com.google.protobuf.ByteString value)
The value of the object.
|
StorageObject.Builder |
setVersion(java.lang.String value)
The version hash of the object.
|
StorageObject.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
The version hash of the object.
|
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<StorageObject.Builder>public StorageObject.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<StorageObject.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<StorageObject.Builder>public StorageObject getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StorageObject build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StorageObject buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StorageObject.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StorageObject.Builder>public StorageObject.Builder mergeFrom(StorageObject other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<StorageObject.Builder>public StorageObject.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<StorageObject.Builder>java.io.IOExceptionpublic java.lang.String getCollection()
The collection which stores the object.
string collection = 1 [json_name = "collection"];getCollection in interface StorageObjectOrBuilderpublic com.google.protobuf.ByteString getCollectionBytes()
The collection which stores the object.
string collection = 1 [json_name = "collection"];getCollectionBytes in interface StorageObjectOrBuilderpublic StorageObject.Builder setCollection(java.lang.String value)
The collection which stores the object.
string collection = 1 [json_name = "collection"];value - The collection to set.public StorageObject.Builder clearCollection()
The collection which stores the object.
string collection = 1 [json_name = "collection"];public StorageObject.Builder setCollectionBytes(com.google.protobuf.ByteString value)
The collection which stores the object.
string collection = 1 [json_name = "collection"];value - The bytes for collection to set.public java.lang.String getKey()
The key of the object within the collection.
string key = 2 [json_name = "key"];getKey in interface StorageObjectOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
The key of the object within the collection.
string key = 2 [json_name = "key"];getKeyBytes in interface StorageObjectOrBuilderpublic StorageObject.Builder setKey(java.lang.String value)
The key of the object within the collection.
string key = 2 [json_name = "key"];value - The key to set.public StorageObject.Builder clearKey()
The key of the object within the collection.
string key = 2 [json_name = "key"];public StorageObject.Builder setKeyBytes(com.google.protobuf.ByteString value)
The key of the object within the collection.
string key = 2 [json_name = "key"];value - The bytes for key to set.public java.lang.String getUserId()
The user owner of the object.
string user_id = 3 [json_name = "userId"];getUserId in interface StorageObjectOrBuilderpublic com.google.protobuf.ByteString getUserIdBytes()
The user owner of the object.
string user_id = 3 [json_name = "userId"];getUserIdBytes in interface StorageObjectOrBuilderpublic StorageObject.Builder setUserId(java.lang.String value)
The user owner of the object.
string user_id = 3 [json_name = "userId"];value - The userId to set.public StorageObject.Builder clearUserId()
The user owner of the object.
string user_id = 3 [json_name = "userId"];public StorageObject.Builder setUserIdBytes(com.google.protobuf.ByteString value)
The user owner of the object.
string user_id = 3 [json_name = "userId"];value - The bytes for userId to set.public java.lang.String getValue()
The value of the object.
string value = 4 [json_name = "value"];getValue in interface StorageObjectOrBuilderpublic com.google.protobuf.ByteString getValueBytes()
The value of the object.
string value = 4 [json_name = "value"];getValueBytes in interface StorageObjectOrBuilderpublic StorageObject.Builder setValue(java.lang.String value)
The value of the object.
string value = 4 [json_name = "value"];value - The value to set.public StorageObject.Builder clearValue()
The value of the object.
string value = 4 [json_name = "value"];public StorageObject.Builder setValueBytes(com.google.protobuf.ByteString value)
The value of the object.
string value = 4 [json_name = "value"];value - The bytes for value to set.public java.lang.String getVersion()
The version hash of the object.
string version = 5 [json_name = "version"];getVersion in interface StorageObjectOrBuilderpublic com.google.protobuf.ByteString getVersionBytes()
The version hash of the object.
string version = 5 [json_name = "version"];getVersionBytes in interface StorageObjectOrBuilderpublic StorageObject.Builder setVersion(java.lang.String value)
The version hash of the object.
string version = 5 [json_name = "version"];value - The version to set.public StorageObject.Builder clearVersion()
The version hash of the object.
string version = 5 [json_name = "version"];public StorageObject.Builder setVersionBytes(com.google.protobuf.ByteString value)
The version hash of the object.
string version = 5 [json_name = "version"];value - The bytes for version to set.public int getPermissionRead()
The read access permissions for the object.
int32 permission_read = 6 [json_name = "permissionRead"];getPermissionRead in interface StorageObjectOrBuilderpublic StorageObject.Builder setPermissionRead(int value)
The read access permissions for the object.
int32 permission_read = 6 [json_name = "permissionRead"];value - The permissionRead to set.public StorageObject.Builder clearPermissionRead()
The read access permissions for the object.
int32 permission_read = 6 [json_name = "permissionRead"];public int getPermissionWrite()
The write access permissions for the object.
int32 permission_write = 7 [json_name = "permissionWrite"];getPermissionWrite in interface StorageObjectOrBuilderpublic StorageObject.Builder setPermissionWrite(int value)
The write access permissions for the object.
int32 permission_write = 7 [json_name = "permissionWrite"];value - The permissionWrite to set.public StorageObject.Builder clearPermissionWrite()
The write access permissions for the object.
int32 permission_write = 7 [json_name = "permissionWrite"];public boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];hasCreateTime in interface StorageObjectOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];getCreateTime in interface StorageObjectOrBuilderpublic StorageObject.Builder setCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];public StorageObject.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];public StorageObject.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];public StorageObject.Builder clearCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];getCreateTimeOrBuilder in interface StorageObjectOrBuilderpublic boolean hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];hasUpdateTime in interface StorageObjectOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];getUpdateTime in interface StorageObjectOrBuilderpublic StorageObject.Builder setUpdateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];public StorageObject.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];public StorageObject.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];public StorageObject.Builder clearUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the object was last updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];getUpdateTimeOrBuilder in interface StorageObjectOrBuilder