Package com.heroiclabs.nakama.api
Class WriteStorageObject.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
com.heroiclabs.nakama.api.WriteStorageObject.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,WriteStorageObjectOrBuilder
,Cloneable
- Enclosing class:
- WriteStorageObject
public static final class WriteStorageObject.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
implements WriteStorageObjectOrBuilder
The object to store.Protobuf type
nakama.api.WriteStorageObject
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The collection to store the object.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()
The key for 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 value of the object.The version hash of the object to check.clone()
The collection to store the object.com.google.protobuf.ByteString
The collection to store the object.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKey()
The key for the object within the collection.com.google.protobuf.ByteString
The key for the object within the collection.The read access permissions for the object.The read access permissions for the object.The read access permissions for the object.The write access permissions for the object.The write access permissions for the object.The write access permissions for the object.getValue()
The value of the object.com.google.protobuf.ByteString
The value of the object.The version hash of the object to check.com.google.protobuf.ByteString
The version hash of the object to check.boolean
The read access permissions for the object.boolean
The write access permissions for the object.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(WriteStorageObject other) mergePermissionRead
(Int32Value value) The read access permissions for the object.mergePermissionWrite
(Int32Value value) The write access permissions for the object.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCollection
(String value) The collection to store the object.setCollectionBytes
(com.google.protobuf.ByteString value) The collection to store the object.The key for the object within the collection.setKeyBytes
(com.google.protobuf.ByteString value) The key for the object within the collection.setPermissionRead
(Int32Value value) The read access permissions for the object.setPermissionRead
(Int32Value.Builder builderForValue) The read access permissions for the object.setPermissionWrite
(Int32Value value) The write access permissions for the object.setPermissionWrite
(Int32Value.Builder builderForValue) The write access permissions for the object.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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 to check.setVersionBytes
(com.google.protobuf.ByteString value) The version hash of the object to check.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<WriteStorageObject.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<WriteStorageObject.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<WriteStorageObject.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<WriteStorageObject.Builder>
-
setField
public WriteStorageObject.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<WriteStorageObject.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
-
setRepeatedField
public WriteStorageObject.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<WriteStorageObject.Builder>
-
addRepeatedField
public WriteStorageObject.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<WriteStorageObject.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WriteStorageObject.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
-
mergeFrom
public WriteStorageObject.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<WriteStorageObject.Builder>
- Throws:
IOException
-
getCollection
The collection to store the object.
string collection = 1;
- Specified by:
getCollection
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The collection.
-
getCollectionBytes
public com.google.protobuf.ByteString getCollectionBytes()The collection to store the object.
string collection = 1;
- Specified by:
getCollectionBytes
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The bytes for collection.
-
setCollection
The collection to store the object.
string collection = 1;
- Parameters:
value
- The collection to set.- Returns:
- This builder for chaining.
-
clearCollection
The collection to store the object.
string collection = 1;
- Returns:
- This builder for chaining.
-
setCollectionBytes
The collection to store the object.
string collection = 1;
- Parameters:
value
- The bytes for collection to set.- Returns:
- This builder for chaining.
-
getKey
The key for the object within the collection.
string key = 2;
- Specified by:
getKey
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()The key for the object within the collection.
string key = 2;
- Specified by:
getKeyBytes
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The bytes for key.
-
setKey
The key for the object within the collection.
string key = 2;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
The key for the object within the collection.
string key = 2;
- Returns:
- This builder for chaining.
-
setKeyBytes
The key for the object within the collection.
string key = 2;
- Parameters:
value
- The bytes for key to set.- Returns:
- This builder for chaining.
-
getValue
The value of the object.
string value = 3;
- Specified by:
getValue
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()The value of the object.
string value = 3;
- Specified by:
getValueBytes
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The bytes for value.
-
setValue
The value of the object.
string value = 3;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The value of the object.
string value = 3;
- Returns:
- This builder for chaining.
-
setValueBytes
The value of the object.
string value = 3;
- Parameters:
value
- The bytes for value to set.- Returns:
- This builder for chaining.
-
getVersion
The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
string version = 4;
- Specified by:
getVersion
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
string version = 4;
- Specified by:
getVersionBytes
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The bytes for version.
-
setVersion
The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
string version = 4;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
string version = 4;
- Returns:
- This builder for chaining.
-
setVersionBytes
The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
string version = 4;
- Parameters:
value
- The bytes for version to set.- Returns:
- This builder for chaining.
-
hasPermissionRead
public boolean hasPermissionRead()The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
- Specified by:
hasPermissionRead
in interfaceWriteStorageObjectOrBuilder
- Returns:
- Whether the permissionRead field is set.
-
getPermissionRead
The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
- Specified by:
getPermissionRead
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The permissionRead.
-
setPermissionRead
The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
-
setPermissionRead
The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
-
mergePermissionRead
The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
-
clearPermissionRead
The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
-
getPermissionReadBuilder
The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
-
getPermissionReadOrBuilder
The read access permissions for the object.
.google.protobuf.Int32Value permission_read = 5;
- Specified by:
getPermissionReadOrBuilder
in interfaceWriteStorageObjectOrBuilder
-
hasPermissionWrite
public boolean hasPermissionWrite()The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
- Specified by:
hasPermissionWrite
in interfaceWriteStorageObjectOrBuilder
- Returns:
- Whether the permissionWrite field is set.
-
getPermissionWrite
The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
- Specified by:
getPermissionWrite
in interfaceWriteStorageObjectOrBuilder
- Returns:
- The permissionWrite.
-
setPermissionWrite
The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
-
setPermissionWrite
The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
-
mergePermissionWrite
The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
-
clearPermissionWrite
The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
-
getPermissionWriteBuilder
The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
-
getPermissionWriteOrBuilder
The write access permissions for the object.
.google.protobuf.Int32Value permission_write = 6;
- Specified by:
getPermissionWriteOrBuilder
in interfaceWriteStorageObjectOrBuilder
-
setUnknownFields
public final WriteStorageObject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
-
mergeUnknownFields
public final WriteStorageObject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
-