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 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<StorageObject.Builder>
    • clear

      public StorageObject.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<StorageObject.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<StorageObject.Builder>
    • getDefaultInstanceForType

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

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

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

      public StorageObject.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<StorageObject.Builder>
    • setField

      public StorageObject.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<StorageObject.Builder>
    • clearField

      public StorageObject.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<StorageObject.Builder>
    • clearOneof

      public StorageObject.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<StorageObject.Builder>
    • setRepeatedField

      public StorageObject.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<StorageObject.Builder>
    • addRepeatedField

      public StorageObject.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<StorageObject.Builder>
    • mergeFrom

      public StorageObject.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<StorageObject.Builder>
    • mergeFrom

      public StorageObject.Builder mergeFrom(StorageObject other)
    • isInitialized

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

      public String getCollection()
       The collection which stores the object.
       
      string collection = 1;
      Specified by:
      getCollection in interface StorageObjectOrBuilder
      Returns:
      The collection.
    • getCollectionBytes

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

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

      public StorageObject.Builder clearCollection()
       The collection which stores the object.
       
      string collection = 1;
      Returns:
      This builder for chaining.
    • setCollectionBytes

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

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

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

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

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

      public String getUserId()
       The user owner of the object.
       
      string user_id = 3;
      Specified by:
      getUserId in interface StorageObjectOrBuilder
      Returns:
      The userId.
    • getUserIdBytes

      public com.google.protobuf.ByteString getUserIdBytes()
       The user owner of the object.
       
      string user_id = 3;
      Specified by:
      getUserIdBytes in interface StorageObjectOrBuilder
      Returns:
      The bytes for userId.
    • setUserId

      public StorageObject.Builder setUserId(String value)
       The user owner of the object.
       
      string user_id = 3;
      Parameters:
      value - The userId to set.
      Returns:
      This builder for chaining.
    • clearUserId

      public StorageObject.Builder clearUserId()
       The user owner of the object.
       
      string user_id = 3;
      Returns:
      This builder for chaining.
    • setUserIdBytes

      public StorageObject.Builder setUserIdBytes(com.google.protobuf.ByteString value)
       The user owner of the object.
       
      string user_id = 3;
      Parameters:
      value - The bytes for userId to set.
      Returns:
      This builder for chaining.
    • getValue

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

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

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

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

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

      public String getVersion()
       The version hash of the object.
       
      string version = 5;
      Specified by:
      getVersion in interface StorageObjectOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       The version hash of the object.
       
      string version = 5;
      Specified by:
      getVersionBytes in interface StorageObjectOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public StorageObject.Builder setVersion(String value)
       The version hash of the object.
       
      string version = 5;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public StorageObject.Builder clearVersion()
       The version hash of the object.
       
      string version = 5;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public StorageObject.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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 interface StorageObjectOrBuilder
      Returns:
      The permissionRead.
    • setPermissionRead

      public StorageObject.Builder setPermissionRead(int value)
       The read access permissions for the object.
       
      int32 permission_read = 6;
      Parameters:
      value - The permissionRead to set.
      Returns:
      This builder for chaining.
    • clearPermissionRead

      public StorageObject.Builder 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 interface StorageObjectOrBuilder
      Returns:
      The permissionWrite.
    • setPermissionWrite

      public StorageObject.Builder setPermissionWrite(int value)
       The write access permissions for the object.
       
      int32 permission_write = 7;
      Parameters:
      value - The permissionWrite to set.
      Returns:
      This builder for chaining.
    • clearPermissionWrite

      public StorageObject.Builder 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 interface StorageObjectOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public Timestamp getCreateTime()
       The UNIX time when the object was created.
       
      .google.protobuf.Timestamp create_time = 8;
      Specified by:
      getCreateTime in interface StorageObjectOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public StorageObject.Builder setCreateTime(Timestamp value)
       The UNIX time when the object was created.
       
      .google.protobuf.Timestamp create_time = 8;
    • setCreateTime

      public StorageObject.Builder setCreateTime(Timestamp.Builder builderForValue)
       The UNIX time when the object was created.
       
      .google.protobuf.Timestamp create_time = 8;
    • mergeCreateTime

      public StorageObject.Builder mergeCreateTime(Timestamp value)
       The UNIX time when the object was created.
       
      .google.protobuf.Timestamp create_time = 8;
    • clearCreateTime

      public StorageObject.Builder clearCreateTime()
       The UNIX time when the object was created.
       
      .google.protobuf.Timestamp create_time = 8;
    • getCreateTimeBuilder

      public Timestamp.Builder getCreateTimeBuilder()
       The UNIX time when the object was created.
       
      .google.protobuf.Timestamp create_time = 8;
    • getCreateTimeOrBuilder

      public TimestampOrBuilder getCreateTimeOrBuilder()
       The UNIX time when the object was created.
       
      .google.protobuf.Timestamp create_time = 8;
      Specified by:
      getCreateTimeOrBuilder in interface StorageObjectOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
      Specified by:
      hasUpdateTime in interface StorageObjectOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public Timestamp getUpdateTime()
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
      Specified by:
      getUpdateTime in interface StorageObjectOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public StorageObject.Builder setUpdateTime(Timestamp value)
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
    • setUpdateTime

      public StorageObject.Builder setUpdateTime(Timestamp.Builder builderForValue)
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
    • mergeUpdateTime

      public StorageObject.Builder mergeUpdateTime(Timestamp value)
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
    • clearUpdateTime

      public StorageObject.Builder clearUpdateTime()
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
    • getUpdateTimeBuilder

      public Timestamp.Builder getUpdateTimeBuilder()
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
    • getUpdateTimeOrBuilder

      public TimestampOrBuilder getUpdateTimeOrBuilder()
       The UNIX time when the object was last updated.
       
      .google.protobuf.Timestamp update_time = 9;
      Specified by:
      getUpdateTimeOrBuilder in interface StorageObjectOrBuilder
    • setUnknownFields

      public final StorageObject.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<StorageObject.Builder>
    • mergeUnknownFields

      public final StorageObject.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<StorageObject.Builder>