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, 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<StorageObject.Builder>
public StorageObject.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<StorageObject.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<StorageObject.Builder>
public StorageObject getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public StorageObject build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public StorageObject buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public StorageObject.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<StorageObject.Builder>
java.io.IOException
public java.lang.String getCollection()
The collection which stores the object.
string collection = 1 [json_name = "collection"];
getCollection
in interface StorageObjectOrBuilder
public com.google.protobuf.ByteString getCollectionBytes()
The collection which stores the object.
string collection = 1 [json_name = "collection"];
getCollectionBytes
in interface StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public com.google.protobuf.ByteString getKeyBytes()
The key of the object within the collection.
string key = 2 [json_name = "key"];
getKeyBytes
in interface StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public com.google.protobuf.ByteString getUserIdBytes()
The user owner of the object.
string user_id = 3 [json_name = "userId"];
getUserIdBytes
in interface StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public com.google.protobuf.ByteString getValueBytes()
The value of the object.
string value = 4 [json_name = "value"];
getValueBytes
in interface StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public com.google.protobuf.ByteString getVersionBytes()
The version hash of the object.
string version = 5 [json_name = "version"];
getVersionBytes
in interface StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public 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 StorageObjectOrBuilder
public 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