Package com.heroiclabs.nakama.api
Class StorageObject.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
com.heroiclabs.nakama.api.StorageObject.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,StorageObjectOrBuilder
,Cloneable
- Enclosing class:
- StorageObject
public static final class StorageObject.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
implements StorageObjectOrBuilder
An object within the storage engine.Protobuf type
nakama.api.StorageObject
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The collection which stores the object.The UNIX time when the object was created.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()
The key of the object within the collection.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The read access permissions for the object.The write access permissions for the object.The UNIX time when the object was last updated.The user owner of the object.The value of the object.The version hash of the object.clone()
The collection which stores the object.com.google.protobuf.ByteString
The collection which stores the object.The UNIX time when the object was created.The UNIX time when the object was created.The UNIX time when the object was created.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKey()
The key of the object within the collection.com.google.protobuf.ByteString
The key of the object within the collection.int
The read access permissions for the object.int
The write access permissions for the object.The UNIX time when the object was last updated.The UNIX time when the object was last updated.The UNIX time when the object was last updated.The user owner of the object.com.google.protobuf.ByteString
The user owner of the object.getValue()
The value of the object.com.google.protobuf.ByteString
The value of the object.The version hash of the object.com.google.protobuf.ByteString
The version hash of the object.boolean
The UNIX time when the object was created.boolean
The UNIX time when the object was last updated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCreateTime
(Timestamp value) The UNIX time when the object was created.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(StorageObject other) final StorageObject.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateTime
(Timestamp value) The UNIX time when the object was last updated.setCollection
(String value) The collection which stores the object.setCollectionBytes
(com.google.protobuf.ByteString value) The collection which stores the object.setCreateTime
(Timestamp value) The UNIX time when the object was created.setCreateTime
(Timestamp.Builder builderForValue) The UNIX time when the object was created.The key of the object within the collection.setKeyBytes
(com.google.protobuf.ByteString value) The key of the object within the collection.setPermissionRead
(int value) The read access permissions for the object.setPermissionWrite
(int value) The write access permissions for the object.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final StorageObject.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateTime
(Timestamp value) The UNIX time when the object was last updated.setUpdateTime
(Timestamp.Builder builderForValue) The UNIX time when the object was last updated.The user owner of the object.setUserIdBytes
(com.google.protobuf.ByteString value) The user owner of the object.The value of the object.setValueBytes
(com.google.protobuf.ByteString value) The value of the object.setVersion
(String value) The version hash of the object.setVersionBytes
(com.google.protobuf.ByteString value) The version hash of the object.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
setField
public StorageObject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
setRepeatedField
public StorageObject.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
addRepeatedField
public StorageObject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StorageObject.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
mergeFrom
public StorageObject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StorageObject.Builder>
- Throws:
IOException
-
getCollection
The collection which stores the object.
string collection = 1;
- Specified by:
getCollection
in interfaceStorageObjectOrBuilder
- Returns:
- The collection.
-
getCollectionBytes
public com.google.protobuf.ByteString getCollectionBytes()The collection which stores the object.
string collection = 1;
- Specified by:
getCollectionBytes
in interfaceStorageObjectOrBuilder
- Returns:
- The bytes for collection.
-
setCollection
The collection which stores the object.
string collection = 1;
- Parameters:
value
- The collection to set.- Returns:
- This builder for chaining.
-
clearCollection
The collection which stores the object.
string collection = 1;
- Returns:
- This builder for chaining.
-
setCollectionBytes
The collection which stores the object.
string collection = 1;
- Parameters:
value
- The bytes for collection to set.- Returns:
- This builder for chaining.
-
getKey
The key of the object within the collection.
string key = 2;
- Specified by:
getKey
in interfaceStorageObjectOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()The key of the object within the collection.
string key = 2;
- Specified by:
getKeyBytes
in interfaceStorageObjectOrBuilder
- Returns:
- The bytes for key.
-
setKey
The key of the object within the collection.
string key = 2;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
The key of the object within the collection.
string key = 2;
- Returns:
- This builder for chaining.
-
setKeyBytes
The key of the object within the collection.
string key = 2;
- Parameters:
value
- The bytes for key to set.- Returns:
- This builder for chaining.
-
getUserId
The user owner of the object.
string user_id = 3;
- Specified by:
getUserId
in interfaceStorageObjectOrBuilder
- Returns:
- The userId.
-
getUserIdBytes
public com.google.protobuf.ByteString getUserIdBytes()The user owner of the object.
string user_id = 3;
- Specified by:
getUserIdBytes
in interfaceStorageObjectOrBuilder
- Returns:
- The bytes for userId.
-
setUserId
The user owner of the object.
string user_id = 3;
- Parameters:
value
- The userId to set.- Returns:
- This builder for chaining.
-
clearUserId
The user owner of the object.
string user_id = 3;
- Returns:
- This builder for chaining.
-
setUserIdBytes
The user owner of the object.
string user_id = 3;
- Parameters:
value
- The bytes for userId to set.- Returns:
- This builder for chaining.
-
getValue
The value of the object.
string value = 4;
- Specified by:
getValue
in interfaceStorageObjectOrBuilder
- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()The value of the object.
string value = 4;
- Specified by:
getValueBytes
in interfaceStorageObjectOrBuilder
- Returns:
- The bytes for value.
-
setValue
The value of the object.
string value = 4;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The value of the object.
string value = 4;
- Returns:
- This builder for chaining.
-
setValueBytes
The value of the object.
string value = 4;
- Parameters:
value
- The bytes for value to set.- Returns:
- This builder for chaining.
-
getVersion
The version hash of the object.
string version = 5;
- Specified by:
getVersion
in interfaceStorageObjectOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()The version hash of the object.
string version = 5;
- Specified by:
getVersionBytes
in interfaceStorageObjectOrBuilder
- Returns:
- The bytes for version.
-
setVersion
The version hash of the object.
string version = 5;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
The version hash of the object.
string version = 5;
- Returns:
- This builder for chaining.
-
setVersionBytes
The version hash of the object.
string version = 5;
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
getPermissionRead
public int getPermissionRead()The read access permissions for the object.
int32 permission_read = 6;
- Specified by:
getPermissionRead
in interfaceStorageObjectOrBuilder
- Returns:
- The permissionRead.
-
setPermissionRead
The read access permissions for the object.
int32 permission_read = 6;
- Parameters:
value
- The permissionRead to set.- Returns:
- This builder for chaining.
-
clearPermissionRead
The read access permissions for the object.
int32 permission_read = 6;
- Returns:
- This builder for chaining.
-
getPermissionWrite
public int getPermissionWrite()The write access permissions for the object.
int32 permission_write = 7;
- Specified by:
getPermissionWrite
in interfaceStorageObjectOrBuilder
- Returns:
- The permissionWrite.
-
setPermissionWrite
The write access permissions for the object.
int32 permission_write = 7;
- Parameters:
value
- The permissionWrite to set.- Returns:
- This builder for chaining.
-
clearPermissionWrite
The write access permissions for the object.
int32 permission_write = 7;
- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
- Specified by:
hasCreateTime
in interfaceStorageObjectOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
- Specified by:
getCreateTime
in interfaceStorageObjectOrBuilder
- Returns:
- The createTime.
-
setCreateTime
The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
-
setCreateTime
The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
-
mergeCreateTime
The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
-
clearCreateTime
The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
-
getCreateTimeBuilder
The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
-
getCreateTimeOrBuilder
The UNIX time when the object was created.
.google.protobuf.Timestamp create_time = 8;
- Specified by:
getCreateTimeOrBuilder
in interfaceStorageObjectOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
- Specified by:
hasUpdateTime
in interfaceStorageObjectOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
- Specified by:
getUpdateTime
in interfaceStorageObjectOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
-
setUpdateTime
The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
-
mergeUpdateTime
The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
-
clearUpdateTime
The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
-
getUpdateTimeBuilder
The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
-
getUpdateTimeOrBuilder
The UNIX time when the object was last updated.
.google.protobuf.Timestamp update_time = 9;
- Specified by:
getUpdateTimeOrBuilder
in interfaceStorageObjectOrBuilder
-
setUnknownFields
public final StorageObject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-
mergeUnknownFields
public final StorageObject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StorageObject.Builder>
-