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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • getDefaultInstanceForType

      public WriteStorageObject getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public WriteStorageObject build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WriteStorageObject buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • setField

      public WriteStorageObject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • clearField

      public WriteStorageObject.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • clearOneof

      public WriteStorageObject.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • addRepeatedField

      public WriteStorageObject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • mergeFrom

      public WriteStorageObject.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteStorageObject.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteStorageObject.Builder>
      Throws:
      IOException
    • getCollection

      public String getCollection()
       The collection to store the object.
       
      string collection = 1;
      Specified by:
      getCollection in interface WriteStorageObjectOrBuilder
      Returns:
      The collection.
    • getCollectionBytes

      public com.google.protobuf.ByteString getCollectionBytes()
       The collection to store the object.
       
      string collection = 1;
      Specified by:
      getCollectionBytes in interface WriteStorageObjectOrBuilder
      Returns:
      The bytes for collection.
    • setCollection

      public WriteStorageObject.Builder setCollection(String value)
       The collection to store the object.
       
      string collection = 1;
      Parameters:
      value - The collection to set.
      Returns:
      This builder for chaining.
    • clearCollection

      public WriteStorageObject.Builder clearCollection()
       The collection to store the object.
       
      string collection = 1;
      Returns:
      This builder for chaining.
    • setCollectionBytes

      public WriteStorageObject.Builder setCollectionBytes(com.google.protobuf.ByteString value)
       The collection to store the object.
       
      string collection = 1;
      Parameters:
      value - The bytes for collection to set.
      Returns:
      This builder for chaining.
    • getKey

      public String getKey()
       The key for the object within the collection.
       
      string key = 2;
      Specified by:
      getKey in interface WriteStorageObjectOrBuilder
      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 interface WriteStorageObjectOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public WriteStorageObject.Builder setKey(String value)
       The key for the object within the collection.
       
      string key = 2;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public WriteStorageObject.Builder clearKey()
       The key for the object within the collection.
       
      string key = 2;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public WriteStorageObject.Builder setKeyBytes(com.google.protobuf.ByteString value)
       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

      public String getValue()
       The value of the object.
       
      string value = 3;
      Specified by:
      getValue in interface WriteStorageObjectOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value of the object.
       
      string value = 3;
      Specified by:
      getValueBytes in interface WriteStorageObjectOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public WriteStorageObject.Builder setValue(String value)
       The value of the object.
       
      string value = 3;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public WriteStorageObject.Builder clearValue()
       The value of the object.
       
      string value = 3;
      Returns:
      This builder for chaining.
    • setValueBytes

      public WriteStorageObject.Builder setValueBytes(com.google.protobuf.ByteString value)
       The value of the object.
       
      string value = 3;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
       
      string version = 4;
      Specified by:
      getVersion in interface WriteStorageObjectOrBuilder
      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 interface WriteStorageObjectOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public WriteStorageObject.Builder setVersion(String value)
       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

      public WriteStorageObject.Builder clearVersion()
       The version hash of the object to check. Possible values are: ["", "*", "#hash#"].
       
      string version = 4;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public WriteStorageObject.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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 interface WriteStorageObjectOrBuilder
      Returns:
      Whether the permissionRead field is set.
    • getPermissionRead

      public Int32Value getPermissionRead()
       The read access permissions for the object.
       
      .google.protobuf.Int32Value permission_read = 5;
      Specified by:
      getPermissionRead in interface WriteStorageObjectOrBuilder
      Returns:
      The permissionRead.
    • setPermissionRead

      public WriteStorageObject.Builder setPermissionRead(Int32Value value)
       The read access permissions for the object.
       
      .google.protobuf.Int32Value permission_read = 5;
    • setPermissionRead

      public WriteStorageObject.Builder setPermissionRead(Int32Value.Builder builderForValue)
       The read access permissions for the object.
       
      .google.protobuf.Int32Value permission_read = 5;
    • mergePermissionRead

      public WriteStorageObject.Builder mergePermissionRead(Int32Value value)
       The read access permissions for the object.
       
      .google.protobuf.Int32Value permission_read = 5;
    • clearPermissionRead

      public WriteStorageObject.Builder clearPermissionRead()
       The read access permissions for the object.
       
      .google.protobuf.Int32Value permission_read = 5;
    • getPermissionReadBuilder

      public Int32Value.Builder getPermissionReadBuilder()
       The read access permissions for the object.
       
      .google.protobuf.Int32Value permission_read = 5;
    • getPermissionReadOrBuilder

      public Int32ValueOrBuilder getPermissionReadOrBuilder()
       The read access permissions for the object.
       
      .google.protobuf.Int32Value permission_read = 5;
      Specified by:
      getPermissionReadOrBuilder in interface WriteStorageObjectOrBuilder
    • hasPermissionWrite

      public boolean hasPermissionWrite()
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
      Specified by:
      hasPermissionWrite in interface WriteStorageObjectOrBuilder
      Returns:
      Whether the permissionWrite field is set.
    • getPermissionWrite

      public Int32Value getPermissionWrite()
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
      Specified by:
      getPermissionWrite in interface WriteStorageObjectOrBuilder
      Returns:
      The permissionWrite.
    • setPermissionWrite

      public WriteStorageObject.Builder setPermissionWrite(Int32Value value)
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
    • setPermissionWrite

      public WriteStorageObject.Builder setPermissionWrite(Int32Value.Builder builderForValue)
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
    • mergePermissionWrite

      public WriteStorageObject.Builder mergePermissionWrite(Int32Value value)
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
    • clearPermissionWrite

      public WriteStorageObject.Builder clearPermissionWrite()
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
    • getPermissionWriteBuilder

      public Int32Value.Builder getPermissionWriteBuilder()
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
    • getPermissionWriteOrBuilder

      public Int32ValueOrBuilder getPermissionWriteOrBuilder()
       The write access permissions for the object.
       
      .google.protobuf.Int32Value permission_write = 6;
      Specified by:
      getPermissionWriteOrBuilder in interface WriteStorageObjectOrBuilder
    • setUnknownFields

      public final WriteStorageObject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>
    • mergeUnknownFields

      public final WriteStorageObject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStorageObject.Builder>