Class Object.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
com.google.storage.v2.Object.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ObjectOrBuilder, Cloneable
Enclosing class:
Object

public static final class Object.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Object.Builder> implements ObjectOrBuilder
 An object.
 
Protobuf type google.storage.v2.Object
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

      public Object.Builder mergeFrom(Object other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Object.Builder>
    • mergeFrom

      public Object.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<Object.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Immutable. The name of this object. Nearly any sequence of unicode
       characters is valid. See
       [Guidelines](https://cloud.google.com/storage/docs/objects#naming).
       Example: `test.txt`
       The `name` field by itself does not uniquely identify a Cloud Storage
       object. A Cloud Storage object is uniquely identified by the tuple of
       (bucket, object, generation).
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface ObjectOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. The name of this object. Nearly any sequence of unicode
       characters is valid. See
       [Guidelines](https://cloud.google.com/storage/docs/objects#naming).
       Example: `test.txt`
       The `name` field by itself does not uniquely identify a Cloud Storage
       object. A Cloud Storage object is uniquely identified by the tuple of
       (bucket, object, generation).
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface ObjectOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Object.Builder setName(String value)
       Immutable. The name of this object. Nearly any sequence of unicode
       characters is valid. See
       [Guidelines](https://cloud.google.com/storage/docs/objects#naming).
       Example: `test.txt`
       The `name` field by itself does not uniquely identify a Cloud Storage
       object. A Cloud Storage object is uniquely identified by the tuple of
       (bucket, object, generation).
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Object.Builder clearName()
       Immutable. The name of this object. Nearly any sequence of unicode
       characters is valid. See
       [Guidelines](https://cloud.google.com/storage/docs/objects#naming).
       Example: `test.txt`
       The `name` field by itself does not uniquely identify a Cloud Storage
       object. A Cloud Storage object is uniquely identified by the tuple of
       (bucket, object, generation).
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Object.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. The name of this object. Nearly any sequence of unicode
       characters is valid. See
       [Guidelines](https://cloud.google.com/storage/docs/objects#naming).
       Example: `test.txt`
       The `name` field by itself does not uniquely identify a Cloud Storage
       object. A Cloud Storage object is uniquely identified by the tuple of
       (bucket, object, generation).
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getBucket

      public String getBucket()
       Immutable. The name of the bucket containing this object.
       
      string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getBucket in interface ObjectOrBuilder
      Returns:
      The bucket.
    • getBucketBytes

      public com.google.protobuf.ByteString getBucketBytes()
       Immutable. The name of the bucket containing this object.
       
      string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getBucketBytes in interface ObjectOrBuilder
      Returns:
      The bytes for bucket.
    • setBucket

      public Object.Builder setBucket(String value)
       Immutable. The name of the bucket containing this object.
       
      string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bucket to set.
      Returns:
      This builder for chaining.
    • clearBucket

      public Object.Builder clearBucket()
       Immutable. The name of the bucket containing this object.
       
      string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBucketBytes

      public Object.Builder setBucketBytes(com.google.protobuf.ByteString value)
       Immutable. The name of the bucket containing this object.
       
      string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for bucket to set.
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Optional. The etag of the object.
       If included in the metadata of an update or delete request message, the
       operation will only be performed if the etag matches that of the live
       object.
       
      string etag = 27 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface ObjectOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. The etag of the object.
       If included in the metadata of an update or delete request message, the
       operation will only be performed if the etag matches that of the live
       object.
       
      string etag = 27 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface ObjectOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Object.Builder setEtag(String value)
       Optional. The etag of the object.
       If included in the metadata of an update or delete request message, the
       operation will only be performed if the etag matches that of the live
       object.
       
      string etag = 27 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Object.Builder clearEtag()
       Optional. The etag of the object.
       If included in the metadata of an update or delete request message, the
       operation will only be performed if the etag matches that of the live
       object.
       
      string etag = 27 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Object.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. The etag of the object.
       If included in the metadata of an update or delete request message, the
       operation will only be performed if the etag matches that of the live
       object.
       
      string etag = 27 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getGeneration

      public long getGeneration()
       Immutable. The content generation of this object. Used for object
       versioning.
       
      int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getGeneration in interface ObjectOrBuilder
      Returns:
      The generation.
    • setGeneration

      public Object.Builder setGeneration(long value)
       Immutable. The content generation of this object. Used for object
       versioning.
       
      int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The generation to set.
      Returns:
      This builder for chaining.
    • clearGeneration

      public Object.Builder clearGeneration()
       Immutable. The content generation of this object. Used for object
       versioning.
       
      int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • hasRestoreToken

      public boolean hasRestoreToken()
       Output only. Restore token used to differentiate deleted objects with the
       same name and generation. This field is output only, and only set for
       deleted objects in HNS buckets.
       
      optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRestoreToken in interface ObjectOrBuilder
      Returns:
      Whether the restoreToken field is set.
    • getRestoreToken

      public String getRestoreToken()
       Output only. Restore token used to differentiate deleted objects with the
       same name and generation. This field is output only, and only set for
       deleted objects in HNS buckets.
       
      optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRestoreToken in interface ObjectOrBuilder
      Returns:
      The restoreToken.
    • getRestoreTokenBytes

      public com.google.protobuf.ByteString getRestoreTokenBytes()
       Output only. Restore token used to differentiate deleted objects with the
       same name and generation. This field is output only, and only set for
       deleted objects in HNS buckets.
       
      optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRestoreTokenBytes in interface ObjectOrBuilder
      Returns:
      The bytes for restoreToken.
    • setRestoreToken

      public Object.Builder setRestoreToken(String value)
       Output only. Restore token used to differentiate deleted objects with the
       same name and generation. This field is output only, and only set for
       deleted objects in HNS buckets.
       
      optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The restoreToken to set.
      Returns:
      This builder for chaining.
    • clearRestoreToken

      public Object.Builder clearRestoreToken()
       Output only. Restore token used to differentiate deleted objects with the
       same name and generation. This field is output only, and only set for
       deleted objects in HNS buckets.
       
      optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRestoreTokenBytes

      public Object.Builder setRestoreTokenBytes(com.google.protobuf.ByteString value)
       Output only. Restore token used to differentiate deleted objects with the
       same name and generation. This field is output only, and only set for
       deleted objects in HNS buckets.
       
      optional string restore_token = 35 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for restoreToken to set.
      Returns:
      This builder for chaining.
    • getMetageneration

      public long getMetageneration()
       Output only. The version of the metadata for this generation of this
       object. Used for preconditions and for detecting changes in metadata. A
       metageneration number is only meaningful in the context of a particular
       generation of a particular object.
       
      int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMetageneration in interface ObjectOrBuilder
      Returns:
      The metageneration.
    • setMetageneration

      public Object.Builder setMetageneration(long value)
       Output only. The version of the metadata for this generation of this
       object. Used for preconditions and for detecting changes in metadata. A
       metageneration number is only meaningful in the context of a particular
       generation of a particular object.
       
      int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The metageneration to set.
      Returns:
      This builder for chaining.
    • clearMetageneration

      public Object.Builder clearMetageneration()
       Output only. The version of the metadata for this generation of this
       object. Used for preconditions and for detecting changes in metadata. A
       metageneration number is only meaningful in the context of a particular
       generation of a particular object.
       
      int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStorageClass

      public String getStorageClass()
       Optional. Storage class of the object.
       
      string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageClass in interface ObjectOrBuilder
      Returns:
      The storageClass.
    • getStorageClassBytes

      public com.google.protobuf.ByteString getStorageClassBytes()
       Optional. Storage class of the object.
       
      string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStorageClassBytes in interface ObjectOrBuilder
      Returns:
      The bytes for storageClass.
    • setStorageClass

      public Object.Builder setStorageClass(String value)
       Optional. Storage class of the object.
       
      string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The storageClass to set.
      Returns:
      This builder for chaining.
    • clearStorageClass

      public Object.Builder clearStorageClass()
       Optional. Storage class of the object.
       
      string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setStorageClassBytes

      public Object.Builder setStorageClassBytes(com.google.protobuf.ByteString value)
       Optional. Storage class of the object.
       
      string storage_class = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for storageClass to set.
      Returns:
      This builder for chaining.
    • getSize

      public long getSize()
       Output only. Content-Length of the object data in bytes, matching
       [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
       
      int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSize in interface ObjectOrBuilder
      Returns:
      The size.
    • setSize

      public Object.Builder setSize(long value)
       Output only. Content-Length of the object data in bytes, matching
       [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
       
      int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public Object.Builder clearSize()
       Output only. Content-Length of the object data in bytes, matching
       [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
       
      int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getContentEncoding

      public String getContentEncoding()
       Optional. Content-Encoding of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
       
      string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentEncoding in interface ObjectOrBuilder
      Returns:
      The contentEncoding.
    • getContentEncodingBytes

      public com.google.protobuf.ByteString getContentEncodingBytes()
       Optional. Content-Encoding of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
       
      string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentEncodingBytes in interface ObjectOrBuilder
      Returns:
      The bytes for contentEncoding.
    • setContentEncoding

      public Object.Builder setContentEncoding(String value)
       Optional. Content-Encoding of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
       
      string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contentEncoding to set.
      Returns:
      This builder for chaining.
    • clearContentEncoding

      public Object.Builder clearContentEncoding()
       Optional. Content-Encoding of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
       
      string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setContentEncodingBytes

      public Object.Builder setContentEncodingBytes(com.google.protobuf.ByteString value)
       Optional. Content-Encoding of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
       
      string content_encoding = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for contentEncoding to set.
      Returns:
      This builder for chaining.
    • getContentDisposition

      public String getContentDisposition()
       Optional. Content-Disposition of the object data, matching
       [https://tools.ietf.org/html/rfc6266][RFC 6266].
       
      string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentDisposition in interface ObjectOrBuilder
      Returns:
      The contentDisposition.
    • getContentDispositionBytes

      public com.google.protobuf.ByteString getContentDispositionBytes()
       Optional. Content-Disposition of the object data, matching
       [https://tools.ietf.org/html/rfc6266][RFC 6266].
       
      string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentDispositionBytes in interface ObjectOrBuilder
      Returns:
      The bytes for contentDisposition.
    • setContentDisposition

      public Object.Builder setContentDisposition(String value)
       Optional. Content-Disposition of the object data, matching
       [https://tools.ietf.org/html/rfc6266][RFC 6266].
       
      string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contentDisposition to set.
      Returns:
      This builder for chaining.
    • clearContentDisposition

      public Object.Builder clearContentDisposition()
       Optional. Content-Disposition of the object data, matching
       [https://tools.ietf.org/html/rfc6266][RFC 6266].
       
      string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setContentDispositionBytes

      public Object.Builder setContentDispositionBytes(com.google.protobuf.ByteString value)
       Optional. Content-Disposition of the object data, matching
       [https://tools.ietf.org/html/rfc6266][RFC 6266].
       
      string content_disposition = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for contentDisposition to set.
      Returns:
      This builder for chaining.
    • getCacheControl

      public String getCacheControl()
       Optional. Cache-Control directive for the object data, matching
       [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
       If omitted, and the object is accessible to all anonymous users, the
       default will be `public, max-age=3600`.
       
      string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCacheControl in interface ObjectOrBuilder
      Returns:
      The cacheControl.
    • getCacheControlBytes

      public com.google.protobuf.ByteString getCacheControlBytes()
       Optional. Cache-Control directive for the object data, matching
       [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
       If omitted, and the object is accessible to all anonymous users, the
       default will be `public, max-age=3600`.
       
      string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCacheControlBytes in interface ObjectOrBuilder
      Returns:
      The bytes for cacheControl.
    • setCacheControl

      public Object.Builder setCacheControl(String value)
       Optional. Cache-Control directive for the object data, matching
       [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
       If omitted, and the object is accessible to all anonymous users, the
       default will be `public, max-age=3600`.
       
      string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cacheControl to set.
      Returns:
      This builder for chaining.
    • clearCacheControl

      public Object.Builder clearCacheControl()
       Optional. Cache-Control directive for the object data, matching
       [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
       If omitted, and the object is accessible to all anonymous users, the
       default will be `public, max-age=3600`.
       
      string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCacheControlBytes

      public Object.Builder setCacheControlBytes(com.google.protobuf.ByteString value)
       Optional. Cache-Control directive for the object data, matching
       [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
       If omitted, and the object is accessible to all anonymous users, the
       default will be `public, max-age=3600`.
       
      string cache_control = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for cacheControl to set.
      Returns:
      This builder for chaining.
    • getAclList

      public List<ObjectAccessControl> getAclList()
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAclList in interface ObjectOrBuilder
    • getAclCount

      public int getAclCount()
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAclCount in interface ObjectOrBuilder
    • getAcl

      public ObjectAccessControl getAcl(int index)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAcl in interface ObjectOrBuilder
    • setAcl

      public Object.Builder setAcl(int index, ObjectAccessControl value)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • setAcl

      public Object.Builder setAcl(int index, ObjectAccessControl.Builder builderForValue)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • addAcl

      public Object.Builder addAcl(ObjectAccessControl value)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • addAcl

      public Object.Builder addAcl(int index, ObjectAccessControl value)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • addAcl

      public Object.Builder addAcl(ObjectAccessControl.Builder builderForValue)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • addAcl

      public Object.Builder addAcl(int index, ObjectAccessControl.Builder builderForValue)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • addAllAcl

      public Object.Builder addAllAcl(Iterable<? extends ObjectAccessControl> values)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • clearAcl

      public Object.Builder clearAcl()
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • removeAcl

      public Object.Builder removeAcl(int index)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getAclBuilder

      public ObjectAccessControl.Builder getAclBuilder(int index)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getAclOrBuilder

      public ObjectAccessControlOrBuilder getAclOrBuilder(int index)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAclOrBuilder in interface ObjectOrBuilder
    • getAclOrBuilderList

      public List<? extends ObjectAccessControlOrBuilder> getAclOrBuilderList()
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAclOrBuilderList in interface ObjectOrBuilder
    • addAclBuilder

      public ObjectAccessControl.Builder addAclBuilder()
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • addAclBuilder

      public ObjectAccessControl.Builder addAclBuilder(int index)
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getAclBuilderList

      public List<ObjectAccessControl.Builder> getAclBuilderList()
       Optional. Access controls on the object.
       If iam_config.uniform_bucket_level_access is enabled on the parent
       bucket, requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl acl = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getContentLanguage

      public String getContentLanguage()
       Optional. Content-Language of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
       
      string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentLanguage in interface ObjectOrBuilder
      Returns:
      The contentLanguage.
    • getContentLanguageBytes

      public com.google.protobuf.ByteString getContentLanguageBytes()
       Optional. Content-Language of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
       
      string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentLanguageBytes in interface ObjectOrBuilder
      Returns:
      The bytes for contentLanguage.
    • setContentLanguage

      public Object.Builder setContentLanguage(String value)
       Optional. Content-Language of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
       
      string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contentLanguage to set.
      Returns:
      This builder for chaining.
    • clearContentLanguage

      public Object.Builder clearContentLanguage()
       Optional. Content-Language of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
       
      string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setContentLanguageBytes

      public Object.Builder setContentLanguageBytes(com.google.protobuf.ByteString value)
       Optional. Content-Language of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
       
      string content_language = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for contentLanguage to set.
      Returns:
      This builder for chaining.
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface ObjectOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface ObjectOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Object.Builder setDeleteTime(com.google.protobuf.Timestamp value)
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeleteTime

      public Object.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeleteTime

      public Object.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeleteTime

      public Object.Builder clearDeleteTime()
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. If this object is noncurrent, this is the time when the object
       became noncurrent.
       
      .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface ObjectOrBuilder
    • hasFinalizeTime

      public boolean hasFinalizeTime()
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFinalizeTime in interface ObjectOrBuilder
      Returns:
      Whether the finalizeTime field is set.
    • getFinalizeTime

      public com.google.protobuf.Timestamp getFinalizeTime()
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFinalizeTime in interface ObjectOrBuilder
      Returns:
      The finalizeTime.
    • setFinalizeTime

      public Object.Builder setFinalizeTime(com.google.protobuf.Timestamp value)
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setFinalizeTime

      public Object.Builder setFinalizeTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeFinalizeTime

      public Object.Builder mergeFinalizeTime(com.google.protobuf.Timestamp value)
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearFinalizeTime

      public Object.Builder clearFinalizeTime()
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFinalizeTimeBuilder

      public com.google.protobuf.Timestamp.Builder getFinalizeTimeBuilder()
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFinalizeTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getFinalizeTimeOrBuilder()
       Output only. The time when the object was finalized.
       
      .google.protobuf.Timestamp finalize_time = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFinalizeTimeOrBuilder in interface ObjectOrBuilder
    • getContentType

      public String getContentType()
       Optional. Content-Type of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
       If an object is stored without a Content-Type, it is served as
       `application/octet-stream`.
       
      string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentType in interface ObjectOrBuilder
      Returns:
      The contentType.
    • getContentTypeBytes

      public com.google.protobuf.ByteString getContentTypeBytes()
       Optional. Content-Type of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
       If an object is stored without a Content-Type, it is served as
       `application/octet-stream`.
       
      string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getContentTypeBytes in interface ObjectOrBuilder
      Returns:
      The bytes for contentType.
    • setContentType

      public Object.Builder setContentType(String value)
       Optional. Content-Type of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
       If an object is stored without a Content-Type, it is served as
       `application/octet-stream`.
       
      string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The contentType to set.
      Returns:
      This builder for chaining.
    • clearContentType

      public Object.Builder clearContentType()
       Optional. Content-Type of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
       If an object is stored without a Content-Type, it is served as
       `application/octet-stream`.
       
      string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setContentTypeBytes

      public Object.Builder setContentTypeBytes(com.google.protobuf.ByteString value)
       Optional. Content-Type of the object data, matching
       [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
       If an object is stored without a Content-Type, it is served as
       `application/octet-stream`.
       
      string content_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for contentType to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ObjectOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ObjectOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Object.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Object.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Object.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Object.Builder clearCreateTime()
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time of the object.
       
      .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ObjectOrBuilder
    • getComponentCount

      public int getComponentCount()
       Output only. Number of underlying components that make up this object.
       Components are accumulated by compose operations.
       
      int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getComponentCount in interface ObjectOrBuilder
      Returns:
      The componentCount.
    • setComponentCount

      public Object.Builder setComponentCount(int value)
       Output only. Number of underlying components that make up this object.
       Components are accumulated by compose operations.
       
      int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The componentCount to set.
      Returns:
      This builder for chaining.
    • clearComponentCount

      public Object.Builder clearComponentCount()
       Output only. Number of underlying components that make up this object.
       Components are accumulated by compose operations.
       
      int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasChecksums

      public boolean hasChecksums()
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasChecksums in interface ObjectOrBuilder
      Returns:
      Whether the checksums field is set.
    • getChecksums

      public ObjectChecksums getChecksums()
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getChecksums in interface ObjectOrBuilder
      Returns:
      The checksums.
    • setChecksums

      public Object.Builder setChecksums(ObjectChecksums value)
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setChecksums

      public Object.Builder setChecksums(ObjectChecksums.Builder builderForValue)
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeChecksums

      public Object.Builder mergeChecksums(ObjectChecksums value)
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearChecksums

      public Object.Builder clearChecksums()
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getChecksumsBuilder

      public ObjectChecksums.Builder getChecksumsBuilder()
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getChecksumsOrBuilder

      public ObjectChecksumsOrBuilder getChecksumsOrBuilder()
       Output only. Hashes for the data part of this object. This field is used
       for output only and will be silently ignored if provided in requests. The
       checksums of the complete object regardless of data range. If the object is
       downloaded in full, the client should compute one of these checksums over
       the downloaded object and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getChecksumsOrBuilder in interface ObjectOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ObjectOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ObjectOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Object.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Object.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Object.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Object.Builder clearUpdateTime()
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The modification time of the object metadata.
       Set initially to object creation time and then updated whenever any
       metadata of the object changes. This includes changes made by a requester,
       such as modifying custom metadata, as well as changes made by Cloud Storage
       on behalf of a requester, such as changing the storage class based on an
       Object Lifecycle Configuration.
       
      .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ObjectOrBuilder
    • getKmsKey

      public String getKmsKey()
       Optional. Cloud KMS Key used to encrypt this object, if the object is
       encrypted by such a key.
       
      string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKey in interface ObjectOrBuilder
      Returns:
      The kmsKey.
    • getKmsKeyBytes

      public com.google.protobuf.ByteString getKmsKeyBytes()
       Optional. Cloud KMS Key used to encrypt this object, if the object is
       encrypted by such a key.
       
      string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyBytes in interface ObjectOrBuilder
      Returns:
      The bytes for kmsKey.
    • setKmsKey

      public Object.Builder setKmsKey(String value)
       Optional. Cloud KMS Key used to encrypt this object, if the object is
       encrypted by such a key.
       
      string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The kmsKey to set.
      Returns:
      This builder for chaining.
    • clearKmsKey

      public Object.Builder clearKmsKey()
       Optional. Cloud KMS Key used to encrypt this object, if the object is
       encrypted by such a key.
       
      string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setKmsKeyBytes

      public Object.Builder setKmsKeyBytes(com.google.protobuf.ByteString value)
       Optional. Cloud KMS Key used to encrypt this object, if the object is
       encrypted by such a key.
       
      string kms_key = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for kmsKey to set.
      Returns:
      This builder for chaining.
    • hasUpdateStorageClassTime

      public boolean hasUpdateStorageClassTime()
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateStorageClassTime in interface ObjectOrBuilder
      Returns:
      Whether the updateStorageClassTime field is set.
    • getUpdateStorageClassTime

      public com.google.protobuf.Timestamp getUpdateStorageClassTime()
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateStorageClassTime in interface ObjectOrBuilder
      Returns:
      The updateStorageClassTime.
    • setUpdateStorageClassTime

      public Object.Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateStorageClassTime

      public Object.Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateStorageClassTime

      public Object.Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateStorageClassTime

      public Object.Builder clearUpdateStorageClassTime()
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateStorageClassTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder()
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateStorageClassTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder()
       Output only. The time at which the object's storage class was last changed.
       When the object is initially created, it will be set to time_created.
       
      .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateStorageClassTimeOrBuilder in interface ObjectOrBuilder
    • getTemporaryHold

      public boolean getTemporaryHold()
       Optional. Whether an object is under temporary hold. While this flag is set
       to true, the object is protected against deletion and overwrites.  A common
       use case of this flag is regulatory investigations where objects need to be
       retained while the investigation is ongoing. Note that unlike event-based
       hold, temporary hold does not impact retention expiration time of an
       object.
       
      bool temporary_hold = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTemporaryHold in interface ObjectOrBuilder
      Returns:
      The temporaryHold.
    • setTemporaryHold

      public Object.Builder setTemporaryHold(boolean value)
       Optional. Whether an object is under temporary hold. While this flag is set
       to true, the object is protected against deletion and overwrites.  A common
       use case of this flag is regulatory investigations where objects need to be
       retained while the investigation is ongoing. Note that unlike event-based
       hold, temporary hold does not impact retention expiration time of an
       object.
       
      bool temporary_hold = 20 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The temporaryHold to set.
      Returns:
      This builder for chaining.
    • clearTemporaryHold

      public Object.Builder clearTemporaryHold()
       Optional. Whether an object is under temporary hold. While this flag is set
       to true, the object is protected against deletion and overwrites.  A common
       use case of this flag is regulatory investigations where objects need to be
       retained while the investigation is ongoing. Note that unlike event-based
       hold, temporary hold does not impact retention expiration time of an
       object.
       
      bool temporary_hold = 20 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasRetentionExpireTime

      public boolean hasRetentionExpireTime()
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRetentionExpireTime in interface ObjectOrBuilder
      Returns:
      Whether the retentionExpireTime field is set.
    • getRetentionExpireTime

      public com.google.protobuf.Timestamp getRetentionExpireTime()
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetentionExpireTime in interface ObjectOrBuilder
      Returns:
      The retentionExpireTime.
    • setRetentionExpireTime

      public Object.Builder setRetentionExpireTime(com.google.protobuf.Timestamp value)
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
    • setRetentionExpireTime

      public Object.Builder setRetentionExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRetentionExpireTime

      public Object.Builder mergeRetentionExpireTime(com.google.protobuf.Timestamp value)
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
    • clearRetentionExpireTime

      public Object.Builder clearRetentionExpireTime()
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
    • getRetentionExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getRetentionExpireTimeBuilder()
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
    • getRetentionExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder()
       Optional. A server-determined value that specifies the earliest time that
       the object's retention period expires. Note 1: This field is not provided
       for objects with an active event-based hold, since retention expiration is
       unknown until the hold is removed. Note 2: This value can be provided even
       when temporary hold is set (so that the user can reason about policy
       without having to first unset the temporary hold).
       
      .google.protobuf.Timestamp retention_expire_time = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetentionExpireTimeOrBuilder in interface ObjectOrBuilder
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: ObjectOrBuilder
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataCount in interface ObjectOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsMetadata in interface ObjectOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface ObjectOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataMap in interface ObjectOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataOrDefault in interface ObjectOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataOrThrow in interface ObjectOrBuilder
    • clearMetadata

      public Object.Builder clearMetadata()
    • removeMetadata

      public Object.Builder removeMetadata(String key)
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public Object.Builder putMetadata(String key, String value)
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
    • putAllMetadata

      public Object.Builder putAllMetadata(Map<String,String> values)
       Optional. User-provided metadata, in key/value pairs.
       
      map<string, string> metadata = 22 [(.google.api.field_behavior) = OPTIONAL];
    • hasEventBasedHold

      public boolean hasEventBasedHold()
       Whether an object is under event-based hold.
       An event-based hold is a way to force the retention of an object until
       after some event occurs. Once the hold is released by explicitly setting
       this field to false, the object will become subject to any bucket-level
       retention policy, except that the retention duration will be calculated
       from the time the event based hold was lifted, rather than the time the
       object was created.
      
       In a WriteObject request, not setting this field implies that the value
       should be taken from the parent bucket's "default_event_based_hold" field.
       In a response, this field will always be set to true or false.
       
      optional bool event_based_hold = 23;
      Specified by:
      hasEventBasedHold in interface ObjectOrBuilder
      Returns:
      Whether the eventBasedHold field is set.
    • getEventBasedHold

      public boolean getEventBasedHold()
       Whether an object is under event-based hold.
       An event-based hold is a way to force the retention of an object until
       after some event occurs. Once the hold is released by explicitly setting
       this field to false, the object will become subject to any bucket-level
       retention policy, except that the retention duration will be calculated
       from the time the event based hold was lifted, rather than the time the
       object was created.
      
       In a WriteObject request, not setting this field implies that the value
       should be taken from the parent bucket's "default_event_based_hold" field.
       In a response, this field will always be set to true or false.
       
      optional bool event_based_hold = 23;
      Specified by:
      getEventBasedHold in interface ObjectOrBuilder
      Returns:
      The eventBasedHold.
    • setEventBasedHold

      public Object.Builder setEventBasedHold(boolean value)
       Whether an object is under event-based hold.
       An event-based hold is a way to force the retention of an object until
       after some event occurs. Once the hold is released by explicitly setting
       this field to false, the object will become subject to any bucket-level
       retention policy, except that the retention duration will be calculated
       from the time the event based hold was lifted, rather than the time the
       object was created.
      
       In a WriteObject request, not setting this field implies that the value
       should be taken from the parent bucket's "default_event_based_hold" field.
       In a response, this field will always be set to true or false.
       
      optional bool event_based_hold = 23;
      Parameters:
      value - The eventBasedHold to set.
      Returns:
      This builder for chaining.
    • clearEventBasedHold

      public Object.Builder clearEventBasedHold()
       Whether an object is under event-based hold.
       An event-based hold is a way to force the retention of an object until
       after some event occurs. Once the hold is released by explicitly setting
       this field to false, the object will become subject to any bucket-level
       retention policy, except that the retention duration will be calculated
       from the time the event based hold was lifted, rather than the time the
       object was created.
      
       In a WriteObject request, not setting this field implies that the value
       should be taken from the parent bucket's "default_event_based_hold" field.
       In a response, this field will always be set to true or false.
       
      optional bool event_based_hold = 23;
      Returns:
      This builder for chaining.
    • hasOwner

      public boolean hasOwner()
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasOwner in interface ObjectOrBuilder
      Returns:
      Whether the owner field is set.
    • getOwner

      public Owner getOwner()
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOwner in interface ObjectOrBuilder
      Returns:
      The owner.
    • setOwner

      public Object.Builder setOwner(Owner value)
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setOwner

      public Object.Builder setOwner(Owner.Builder builderForValue)
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeOwner

      public Object.Builder mergeOwner(Owner value)
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearOwner

      public Object.Builder clearOwner()
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOwnerBuilder

      public Owner.Builder getOwnerBuilder()
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOwnerOrBuilder

      public OwnerOrBuilder getOwnerOrBuilder()
       Output only. The owner of the object. This will always be the uploader of
       the object.
       
      .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOwnerOrBuilder in interface ObjectOrBuilder
    • hasCustomerEncryption

      public boolean hasCustomerEncryption()
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomerEncryption in interface ObjectOrBuilder
      Returns:
      Whether the customerEncryption field is set.
    • getCustomerEncryption

      public CustomerEncryption getCustomerEncryption()
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerEncryption in interface ObjectOrBuilder
      Returns:
      The customerEncryption.
    • setCustomerEncryption

      public Object.Builder setCustomerEncryption(CustomerEncryption value)
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
    • setCustomerEncryption

      public Object.Builder setCustomerEncryption(CustomerEncryption.Builder builderForValue)
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCustomerEncryption

      public Object.Builder mergeCustomerEncryption(CustomerEncryption value)
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
    • clearCustomerEncryption

      public Object.Builder clearCustomerEncryption()
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomerEncryptionBuilder

      public CustomerEncryption.Builder getCustomerEncryptionBuilder()
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomerEncryptionOrBuilder

      public CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder()
       Optional. Metadata of Customer-Supplied Encryption Key, if the object is
       encrypted by such a key.
       
      .google.storage.v2.CustomerEncryption customer_encryption = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerEncryptionOrBuilder in interface ObjectOrBuilder
    • hasCustomTime

      public boolean hasCustomTime()
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomTime in interface ObjectOrBuilder
      Returns:
      Whether the customTime field is set.
    • getCustomTime

      public com.google.protobuf.Timestamp getCustomTime()
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomTime in interface ObjectOrBuilder
      Returns:
      The customTime.
    • setCustomTime

      public Object.Builder setCustomTime(com.google.protobuf.Timestamp value)
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
    • setCustomTime

      public Object.Builder setCustomTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCustomTime

      public Object.Builder mergeCustomTime(com.google.protobuf.Timestamp value)
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
    • clearCustomTime

      public Object.Builder clearCustomTime()
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCustomTimeBuilder()
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder()
       Optional. A user-specified timestamp set on an object.
       
      .google.protobuf.Timestamp custom_time = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomTimeOrBuilder in interface ObjectOrBuilder
    • hasSoftDeleteTime

      public boolean hasSoftDeleteTime()
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSoftDeleteTime in interface ObjectOrBuilder
      Returns:
      Whether the softDeleteTime field is set.
    • getSoftDeleteTime

      public com.google.protobuf.Timestamp getSoftDeleteTime()
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSoftDeleteTime in interface ObjectOrBuilder
      Returns:
      The softDeleteTime.
    • setSoftDeleteTime

      public Object.Builder setSoftDeleteTime(com.google.protobuf.Timestamp value)
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSoftDeleteTime

      public Object.Builder setSoftDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeSoftDeleteTime

      public Object.Builder mergeSoftDeleteTime(com.google.protobuf.Timestamp value)
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSoftDeleteTime

      public Object.Builder clearSoftDeleteTime()
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSoftDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder()
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSoftDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder()
       Output only. This is the time when the object became soft-deleted.
      
       Soft-deleted objects are only accessible if a soft_delete_policy is
       enabled. Also see hard_delete_time.
       
      optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSoftDeleteTimeOrBuilder in interface ObjectOrBuilder
    • hasHardDeleteTime

      public boolean hasHardDeleteTime()
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasHardDeleteTime in interface ObjectOrBuilder
      Returns:
      Whether the hardDeleteTime field is set.
    • getHardDeleteTime

      public com.google.protobuf.Timestamp getHardDeleteTime()
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHardDeleteTime in interface ObjectOrBuilder
      Returns:
      The hardDeleteTime.
    • setHardDeleteTime

      public Object.Builder setHardDeleteTime(com.google.protobuf.Timestamp value)
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setHardDeleteTime

      public Object.Builder setHardDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeHardDeleteTime

      public Object.Builder mergeHardDeleteTime(com.google.protobuf.Timestamp value)
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearHardDeleteTime

      public Object.Builder clearHardDeleteTime()
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getHardDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder()
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getHardDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder()
       Output only. The time when the object will be permanently deleted.
      
       Only set when an object becomes soft-deleted with a soft_delete_policy.
       Otherwise, the object will not be accessible.
       
      optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHardDeleteTimeOrBuilder in interface ObjectOrBuilder
    • hasRetention

      public boolean hasRetention()
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRetention in interface ObjectOrBuilder
      Returns:
      Whether the retention field is set.
    • getRetention

      public Object.Retention getRetention()
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetention in interface ObjectOrBuilder
      Returns:
      The retention.
    • setRetention

      public Object.Builder setRetention(Object.Retention value)
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
    • setRetention

      public Object.Builder setRetention(Object.Retention.Builder builderForValue)
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRetention

      public Object.Builder mergeRetention(Object.Retention value)
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
    • clearRetention

      public Object.Builder clearRetention()
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
    • getRetentionBuilder

      public Object.Retention.Builder getRetentionBuilder()
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
    • getRetentionOrBuilder

      public Object.RetentionOrBuilder getRetentionOrBuilder()
       Optional. Retention configuration of this object.
       May only be configured if the bucket has object retention enabled.
       
      .google.storage.v2.Object.Retention retention = 30 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetentionOrBuilder in interface ObjectOrBuilder
    • setUnknownFields

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

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