Class Bucket.Builder

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

public static final class Bucket.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder> implements BucketOrBuilder
 A bucket.
 
Protobuf type google.storage.v2.Bucket
  • 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<Bucket.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Bucket.Builder mergeFrom(Bucket other)
    • isInitialized

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

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

      public String getName()
       Immutable. The name of the bucket.
       Format: `projects/{project}/buckets/{bucket}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface BucketOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. The name of the bucket.
       Format: `projects/{project}/buckets/{bucket}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface BucketOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Bucket.Builder setName(String value)
       Immutable. The name of the bucket.
       Format: `projects/{project}/buckets/{bucket}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Bucket.Builder clearName()
       Immutable. The name of the bucket.
       Format: `projects/{project}/buckets/{bucket}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Bucket.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. The name of the bucket.
       Format: `projects/{project}/buckets/{bucket}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getBucketId

      public String getBucketId()
       Output only. The user-chosen part of the bucket name. The `{bucket}`
       portion of the `name` field. For globally unique buckets, this is equal to
       the "bucket name" of other Cloud Storage APIs. Example: "pub".
       
      string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBucketId in interface BucketOrBuilder
      Returns:
      The bucketId.
    • getBucketIdBytes

      public com.google.protobuf.ByteString getBucketIdBytes()
       Output only. The user-chosen part of the bucket name. The `{bucket}`
       portion of the `name` field. For globally unique buckets, this is equal to
       the "bucket name" of other Cloud Storage APIs. Example: "pub".
       
      string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBucketIdBytes in interface BucketOrBuilder
      Returns:
      The bytes for bucketId.
    • setBucketId

      public Bucket.Builder setBucketId(String value)
       Output only. The user-chosen part of the bucket name. The `{bucket}`
       portion of the `name` field. For globally unique buckets, this is equal to
       the "bucket name" of other Cloud Storage APIs. Example: "pub".
       
      string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bucketId to set.
      Returns:
      This builder for chaining.
    • clearBucketId

      public Bucket.Builder clearBucketId()
       Output only. The user-chosen part of the bucket name. The `{bucket}`
       portion of the `name` field. For globally unique buckets, this is equal to
       the "bucket name" of other Cloud Storage APIs. Example: "pub".
       
      string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setBucketIdBytes

      public Bucket.Builder setBucketIdBytes(com.google.protobuf.ByteString value)
       Output only. The user-chosen part of the bucket name. The `{bucket}`
       portion of the `name` field. For globally unique buckets, this is equal to
       the "bucket name" of other Cloud Storage APIs. Example: "pub".
       
      string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for bucketId to set.
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       The etag of the bucket.
       If included in the metadata of an UpdateBucketRequest, the operation will
       only be performed if the etag matches that of the bucket.
       
      string etag = 29;
      Specified by:
      getEtag in interface BucketOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       The etag of the bucket.
       If included in the metadata of an UpdateBucketRequest, the operation will
       only be performed if the etag matches that of the bucket.
       
      string etag = 29;
      Specified by:
      getEtagBytes in interface BucketOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Bucket.Builder setEtag(String value)
       The etag of the bucket.
       If included in the metadata of an UpdateBucketRequest, the operation will
       only be performed if the etag matches that of the bucket.
       
      string etag = 29;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Bucket.Builder clearEtag()
       The etag of the bucket.
       If included in the metadata of an UpdateBucketRequest, the operation will
       only be performed if the etag matches that of the bucket.
       
      string etag = 29;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Bucket.Builder setEtagBytes(com.google.protobuf.ByteString value)
       The etag of the bucket.
       If included in the metadata of an UpdateBucketRequest, the operation will
       only be performed if the etag matches that of the bucket.
       
      string etag = 29;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Immutable. The project which owns this bucket, in the format of
       "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getProject in interface BucketOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Immutable. The project which owns this bucket, in the format of
       "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectBytes in interface BucketOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public Bucket.Builder setProject(String value)
       Immutable. The project which owns this bucket, in the format of
       "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public Bucket.Builder clearProject()
       Immutable. The project which owns this bucket, in the format of
       "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setProjectBytes

      public Bucket.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Immutable. The project which owns this bucket, in the format of
       "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getMetageneration

      public long getMetageneration()
       Output only. The metadata generation of this bucket.
       
      int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMetageneration in interface BucketOrBuilder
      Returns:
      The metageneration.
    • setMetageneration

      public Bucket.Builder setMetageneration(long value)
       Output only. The metadata generation of this bucket.
       
      int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The metageneration to set.
      Returns:
      This builder for chaining.
    • clearMetageneration

      public Bucket.Builder clearMetageneration()
       Output only. The metadata generation of this bucket.
       
      int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Immutable. The location of the bucket. Object data for objects in the
       bucket resides in physical storage within this region.  Defaults to `US`.
       See the
       [https://developers.google.com/storage/docs/concepts-techniques#specifyinglocations"][developer's
       guide] for the authoritative list. Attempting to update this field after
       the bucket is created will result in an error.
       
      string location = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getLocation in interface BucketOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Immutable. The location of the bucket. Object data for objects in the
       bucket resides in physical storage within this region.  Defaults to `US`.
       See the
       [https://developers.google.com/storage/docs/concepts-techniques#specifyinglocations"][developer's
       guide] for the authoritative list. Attempting to update this field after
       the bucket is created will result in an error.
       
      string location = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getLocationBytes in interface BucketOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public Bucket.Builder setLocation(String value)
       Immutable. The location of the bucket. Object data for objects in the
       bucket resides in physical storage within this region.  Defaults to `US`.
       See the
       [https://developers.google.com/storage/docs/concepts-techniques#specifyinglocations"][developer's
       guide] for the authoritative list. Attempting to update this field after
       the bucket is created will result in an error.
       
      string location = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public Bucket.Builder clearLocation()
       Immutable. The location of the bucket. Object data for objects in the
       bucket resides in physical storage within this region.  Defaults to `US`.
       See the
       [https://developers.google.com/storage/docs/concepts-techniques#specifyinglocations"][developer's
       guide] for the authoritative list. Attempting to update this field after
       the bucket is created will result in an error.
       
      string location = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public Bucket.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Immutable. The location of the bucket. Object data for objects in the
       bucket resides in physical storage within this region.  Defaults to `US`.
       See the
       [https://developers.google.com/storage/docs/concepts-techniques#specifyinglocations"][developer's
       guide] for the authoritative list. Attempting to update this field after
       the bucket is created will result in an error.
       
      string location = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getLocationType

      public String getLocationType()
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationType in interface BucketOrBuilder
      Returns:
      The locationType.
    • getLocationTypeBytes

      public com.google.protobuf.ByteString getLocationTypeBytes()
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationTypeBytes in interface BucketOrBuilder
      Returns:
      The bytes for locationType.
    • setLocationType

      public Bucket.Builder setLocationType(String value)
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The locationType to set.
      Returns:
      This builder for chaining.
    • clearLocationType

      public Bucket.Builder clearLocationType()
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLocationTypeBytes

      public Bucket.Builder setLocationTypeBytes(com.google.protobuf.ByteString value)
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for locationType to set.
      Returns:
      This builder for chaining.
    • getStorageClass

      public String getStorageClass()
       The bucket's default storage class, used whenever no storageClass is
       specified for a newly-created object. This defines how objects in the
       bucket are stored and determines the SLA and the cost of storage.
       If this value is not specified when the bucket is created, it will default
       to `STANDARD`. For more information, see
       https://developers.google.com/storage/docs/storage-classes.
       
      string storage_class = 7;
      Specified by:
      getStorageClass in interface BucketOrBuilder
      Returns:
      The storageClass.
    • getStorageClassBytes

      public com.google.protobuf.ByteString getStorageClassBytes()
       The bucket's default storage class, used whenever no storageClass is
       specified for a newly-created object. This defines how objects in the
       bucket are stored and determines the SLA and the cost of storage.
       If this value is not specified when the bucket is created, it will default
       to `STANDARD`. For more information, see
       https://developers.google.com/storage/docs/storage-classes.
       
      string storage_class = 7;
      Specified by:
      getStorageClassBytes in interface BucketOrBuilder
      Returns:
      The bytes for storageClass.
    • setStorageClass

      public Bucket.Builder setStorageClass(String value)
       The bucket's default storage class, used whenever no storageClass is
       specified for a newly-created object. This defines how objects in the
       bucket are stored and determines the SLA and the cost of storage.
       If this value is not specified when the bucket is created, it will default
       to `STANDARD`. For more information, see
       https://developers.google.com/storage/docs/storage-classes.
       
      string storage_class = 7;
      Parameters:
      value - The storageClass to set.
      Returns:
      This builder for chaining.
    • clearStorageClass

      public Bucket.Builder clearStorageClass()
       The bucket's default storage class, used whenever no storageClass is
       specified for a newly-created object. This defines how objects in the
       bucket are stored and determines the SLA and the cost of storage.
       If this value is not specified when the bucket is created, it will default
       to `STANDARD`. For more information, see
       https://developers.google.com/storage/docs/storage-classes.
       
      string storage_class = 7;
      Returns:
      This builder for chaining.
    • setStorageClassBytes

      public Bucket.Builder setStorageClassBytes(com.google.protobuf.ByteString value)
       The bucket's default storage class, used whenever no storageClass is
       specified for a newly-created object. This defines how objects in the
       bucket are stored and determines the SLA and the cost of storage.
       If this value is not specified when the bucket is created, it will default
       to `STANDARD`. For more information, see
       https://developers.google.com/storage/docs/storage-classes.
       
      string storage_class = 7;
      Parameters:
      value - The bytes for storageClass to set.
      Returns:
      This builder for chaining.
    • getRpo

      public String getRpo()
       The recovery point objective for cross-region replication of the bucket.
       Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
       replication. "ASYNC_TURBO" enables turbo replication, valid for dual-region
       buckets only. If rpo is not specified when the bucket is created, it
       defaults to "DEFAULT". For more information, see
       https://cloud.google.com/storage/docs/availability-durability#turbo-replication.
       
      string rpo = 27;
      Specified by:
      getRpo in interface BucketOrBuilder
      Returns:
      The rpo.
    • getRpoBytes

      public com.google.protobuf.ByteString getRpoBytes()
       The recovery point objective for cross-region replication of the bucket.
       Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
       replication. "ASYNC_TURBO" enables turbo replication, valid for dual-region
       buckets only. If rpo is not specified when the bucket is created, it
       defaults to "DEFAULT". For more information, see
       https://cloud.google.com/storage/docs/availability-durability#turbo-replication.
       
      string rpo = 27;
      Specified by:
      getRpoBytes in interface BucketOrBuilder
      Returns:
      The bytes for rpo.
    • setRpo

      public Bucket.Builder setRpo(String value)
       The recovery point objective for cross-region replication of the bucket.
       Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
       replication. "ASYNC_TURBO" enables turbo replication, valid for dual-region
       buckets only. If rpo is not specified when the bucket is created, it
       defaults to "DEFAULT". For more information, see
       https://cloud.google.com/storage/docs/availability-durability#turbo-replication.
       
      string rpo = 27;
      Parameters:
      value - The rpo to set.
      Returns:
      This builder for chaining.
    • clearRpo

      public Bucket.Builder clearRpo()
       The recovery point objective for cross-region replication of the bucket.
       Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
       replication. "ASYNC_TURBO" enables turbo replication, valid for dual-region
       buckets only. If rpo is not specified when the bucket is created, it
       defaults to "DEFAULT". For more information, see
       https://cloud.google.com/storage/docs/availability-durability#turbo-replication.
       
      string rpo = 27;
      Returns:
      This builder for chaining.
    • setRpoBytes

      public Bucket.Builder setRpoBytes(com.google.protobuf.ByteString value)
       The recovery point objective for cross-region replication of the bucket.
       Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
       replication. "ASYNC_TURBO" enables turbo replication, valid for dual-region
       buckets only. If rpo is not specified when the bucket is created, it
       defaults to "DEFAULT". For more information, see
       https://cloud.google.com/storage/docs/availability-durability#turbo-replication.
       
      string rpo = 27;
      Parameters:
      value - The bytes for rpo to set.
      Returns:
      This builder for chaining.
    • getAclList

      public List<BucketAccessControl> getAclList()
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
      Specified by:
      getAclList in interface BucketOrBuilder
    • getAclCount

      public int getAclCount()
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
      Specified by:
      getAclCount in interface BucketOrBuilder
    • getAcl

      public BucketAccessControl getAcl(int index)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
      Specified by:
      getAcl in interface BucketOrBuilder
    • setAcl

      public Bucket.Builder setAcl(int index, BucketAccessControl value)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • setAcl

      public Bucket.Builder setAcl(int index, BucketAccessControl.Builder builderForValue)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • addAcl

      public Bucket.Builder addAcl(BucketAccessControl value)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • addAcl

      public Bucket.Builder addAcl(int index, BucketAccessControl value)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • addAcl

      public Bucket.Builder addAcl(BucketAccessControl.Builder builderForValue)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • addAcl

      public Bucket.Builder addAcl(int index, BucketAccessControl.Builder builderForValue)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • addAllAcl

      public Bucket.Builder addAllAcl(Iterable<? extends BucketAccessControl> values)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • clearAcl

      public Bucket.Builder clearAcl()
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • removeAcl

      public Bucket.Builder removeAcl(int index)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • getAclBuilder

      public BucketAccessControl.Builder getAclBuilder(int index)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • getAclOrBuilder

      public BucketAccessControlOrBuilder getAclOrBuilder(int index)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
      Specified by:
      getAclOrBuilder in interface BucketOrBuilder
    • getAclOrBuilderList

      public List<? extends BucketAccessControlOrBuilder> getAclOrBuilderList()
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
      Specified by:
      getAclOrBuilderList in interface BucketOrBuilder
    • addAclBuilder

      public BucketAccessControl.Builder addAclBuilder()
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • addAclBuilder

      public BucketAccessControl.Builder addAclBuilder(int index)
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • getAclBuilderList

      public List<BucketAccessControl.Builder> getAclBuilderList()
       Access controls on the bucket.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.BucketAccessControl acl = 8;
    • getDefaultObjectAclList

      public List<ObjectAccessControl> getDefaultObjectAclList()
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      Specified by:
      getDefaultObjectAclList in interface BucketOrBuilder
    • getDefaultObjectAclCount

      public int getDefaultObjectAclCount()
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      Specified by:
      getDefaultObjectAclCount in interface BucketOrBuilder
    • getDefaultObjectAcl

      public ObjectAccessControl getDefaultObjectAcl(int index)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      Specified by:
      getDefaultObjectAcl in interface BucketOrBuilder
    • setDefaultObjectAcl

      public Bucket.Builder setDefaultObjectAcl(int index, ObjectAccessControl value)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • setDefaultObjectAcl

      public Bucket.Builder setDefaultObjectAcl(int index, ObjectAccessControl.Builder builderForValue)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • addDefaultObjectAcl

      public Bucket.Builder addDefaultObjectAcl(ObjectAccessControl value)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • addDefaultObjectAcl

      public Bucket.Builder addDefaultObjectAcl(int index, ObjectAccessControl value)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • addDefaultObjectAcl

      public Bucket.Builder addDefaultObjectAcl(ObjectAccessControl.Builder builderForValue)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • addDefaultObjectAcl

      public Bucket.Builder addDefaultObjectAcl(int index, ObjectAccessControl.Builder builderForValue)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • addAllDefaultObjectAcl

      public Bucket.Builder addAllDefaultObjectAcl(Iterable<? extends ObjectAccessControl> values)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • clearDefaultObjectAcl

      public Bucket.Builder clearDefaultObjectAcl()
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • removeDefaultObjectAcl

      public Bucket.Builder removeDefaultObjectAcl(int index)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • getDefaultObjectAclBuilder

      public ObjectAccessControl.Builder getDefaultObjectAclBuilder(int index)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • getDefaultObjectAclOrBuilder

      public ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(int index)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      Specified by:
      getDefaultObjectAclOrBuilder in interface BucketOrBuilder
    • getDefaultObjectAclOrBuilderList

      public List<? extends ObjectAccessControlOrBuilder> getDefaultObjectAclOrBuilderList()
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
      Specified by:
      getDefaultObjectAclOrBuilderList in interface BucketOrBuilder
    • addDefaultObjectAclBuilder

      public ObjectAccessControl.Builder addDefaultObjectAclBuilder()
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • addDefaultObjectAclBuilder

      public ObjectAccessControl.Builder addDefaultObjectAclBuilder(int index)
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • getDefaultObjectAclBuilderList

      public List<ObjectAccessControl.Builder> getDefaultObjectAclBuilderList()
       Default access controls to apply to new objects when no ACL is provided.
       If iam_config.uniform_bucket_level_access is enabled on this bucket,
       requests to set, read, or modify acl is an error.
       
      repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
    • hasLifecycle

      public boolean hasLifecycle()
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
      Specified by:
      hasLifecycle in interface BucketOrBuilder
      Returns:
      Whether the lifecycle field is set.
    • getLifecycle

      public Bucket.Lifecycle getLifecycle()
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
      Specified by:
      getLifecycle in interface BucketOrBuilder
      Returns:
      The lifecycle.
    • setLifecycle

      public Bucket.Builder setLifecycle(Bucket.Lifecycle value)
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
    • setLifecycle

      public Bucket.Builder setLifecycle(Bucket.Lifecycle.Builder builderForValue)
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
    • mergeLifecycle

      public Bucket.Builder mergeLifecycle(Bucket.Lifecycle value)
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
    • clearLifecycle

      public Bucket.Builder clearLifecycle()
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
    • getLifecycleBuilder

      public Bucket.Lifecycle.Builder getLifecycleBuilder()
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
    • getLifecycleOrBuilder

      public Bucket.LifecycleOrBuilder getLifecycleOrBuilder()
       The bucket's lifecycle config. See
       [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
       for more information.
       
      .google.storage.v2.Bucket.Lifecycle lifecycle = 10;
      Specified by:
      getLifecycleOrBuilder in interface BucketOrBuilder
    • hasCreateTime

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

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

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

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

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

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

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

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time of the bucket.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface BucketOrBuilder
    • getCorsList

      public List<Bucket.Cors> getCorsList()
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
      Specified by:
      getCorsList in interface BucketOrBuilder
    • getCorsCount

      public int getCorsCount()
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
      Specified by:
      getCorsCount in interface BucketOrBuilder
    • getCors

      public Bucket.Cors getCors(int index)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
      Specified by:
      getCors in interface BucketOrBuilder
    • setCors

      public Bucket.Builder setCors(int index, Bucket.Cors value)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • setCors

      public Bucket.Builder setCors(int index, Bucket.Cors.Builder builderForValue)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • addCors

      public Bucket.Builder addCors(Bucket.Cors value)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • addCors

      public Bucket.Builder addCors(int index, Bucket.Cors value)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • addCors

      public Bucket.Builder addCors(Bucket.Cors.Builder builderForValue)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • addCors

      public Bucket.Builder addCors(int index, Bucket.Cors.Builder builderForValue)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • addAllCors

      public Bucket.Builder addAllCors(Iterable<? extends Bucket.Cors> values)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • clearCors

      public Bucket.Builder clearCors()
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • removeCors

      public Bucket.Builder removeCors(int index)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • getCorsBuilder

      public Bucket.Cors.Builder getCorsBuilder(int index)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • getCorsOrBuilder

      public Bucket.CorsOrBuilder getCorsOrBuilder(int index)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
      Specified by:
      getCorsOrBuilder in interface BucketOrBuilder
    • getCorsOrBuilderList

      public List<? extends Bucket.CorsOrBuilder> getCorsOrBuilderList()
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
      Specified by:
      getCorsOrBuilderList in interface BucketOrBuilder
    • addCorsBuilder

      public Bucket.Cors.Builder addCorsBuilder()
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • addCorsBuilder

      public Bucket.Cors.Builder addCorsBuilder(int index)
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • getCorsBuilderList

      public List<Bucket.Cors.Builder> getCorsBuilderList()
       The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
       (CORS) config.
       
      repeated .google.storage.v2.Bucket.Cors cors = 12;
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface BucketOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface BucketOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Bucket.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Bucket.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Bucket.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Bucket.Builder clearUpdateTime()
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The modification time of the bucket.
       
      .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface BucketOrBuilder
    • getDefaultEventBasedHold

      public boolean getDefaultEventBasedHold()
       The default value for event-based hold on newly created objects in this
       bucket.  Event-based hold is a way to retain objects indefinitely until an
       event occurs, signified by the
       hold's release. After being released, such objects will be subject to
       bucket-level retention (if any).  One sample use case of this flag is for
       banks to hold loan documents for at least 3 years after loan is paid in
       full. Here, bucket-level retention is 3 years and the event is loan being
       paid in full. In this example, these objects will be held intact for any
       number of years until the event has occurred (event-based hold on the
       object is released) and then 3 more years after that. That means retention
       duration of the objects begins from the moment event-based hold
       transitioned from true to false.  Objects under event-based hold cannot be
       deleted, overwritten or archived until the hold is removed.
       
      bool default_event_based_hold = 14;
      Specified by:
      getDefaultEventBasedHold in interface BucketOrBuilder
      Returns:
      The defaultEventBasedHold.
    • setDefaultEventBasedHold

      public Bucket.Builder setDefaultEventBasedHold(boolean value)
       The default value for event-based hold on newly created objects in this
       bucket.  Event-based hold is a way to retain objects indefinitely until an
       event occurs, signified by the
       hold's release. After being released, such objects will be subject to
       bucket-level retention (if any).  One sample use case of this flag is for
       banks to hold loan documents for at least 3 years after loan is paid in
       full. Here, bucket-level retention is 3 years and the event is loan being
       paid in full. In this example, these objects will be held intact for any
       number of years until the event has occurred (event-based hold on the
       object is released) and then 3 more years after that. That means retention
       duration of the objects begins from the moment event-based hold
       transitioned from true to false.  Objects under event-based hold cannot be
       deleted, overwritten or archived until the hold is removed.
       
      bool default_event_based_hold = 14;
      Parameters:
      value - The defaultEventBasedHold to set.
      Returns:
      This builder for chaining.
    • clearDefaultEventBasedHold

      public Bucket.Builder clearDefaultEventBasedHold()
       The default value for event-based hold on newly created objects in this
       bucket.  Event-based hold is a way to retain objects indefinitely until an
       event occurs, signified by the
       hold's release. After being released, such objects will be subject to
       bucket-level retention (if any).  One sample use case of this flag is for
       banks to hold loan documents for at least 3 years after loan is paid in
       full. Here, bucket-level retention is 3 years and the event is loan being
       paid in full. In this example, these objects will be held intact for any
       number of years until the event has occurred (event-based hold on the
       object is released) and then 3 more years after that. That means retention
       duration of the objects begins from the moment event-based hold
       transitioned from true to false.  Objects under event-based hold cannot be
       deleted, overwritten or archived until the hold is removed.
       
      bool default_event_based_hold = 14;
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: BucketOrBuilder
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
      Specified by:
      getLabelsCount in interface BucketOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
      Specified by:
      containsLabels in interface BucketOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface BucketOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
      Specified by:
      getLabelsMap in interface BucketOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
      Specified by:
      getLabelsOrDefault in interface BucketOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
      Specified by:
      getLabelsOrThrow in interface BucketOrBuilder
    • clearLabels

      public Bucket.Builder clearLabels()
    • removeLabels

      public Bucket.Builder removeLabels(String key)
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
    • getMutableLabels

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

      public Bucket.Builder putLabels(String key, String value)
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
    • putAllLabels

      public Bucket.Builder putAllLabels(Map<String,String> values)
       User-provided labels, in key/value pairs.
       
      map<string, string> labels = 15;
    • hasWebsite

      public boolean hasWebsite()
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
      Specified by:
      hasWebsite in interface BucketOrBuilder
      Returns:
      Whether the website field is set.
    • getWebsite

      public Bucket.Website getWebsite()
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
      Specified by:
      getWebsite in interface BucketOrBuilder
      Returns:
      The website.
    • setWebsite

      public Bucket.Builder setWebsite(Bucket.Website value)
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
    • setWebsite

      public Bucket.Builder setWebsite(Bucket.Website.Builder builderForValue)
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
    • mergeWebsite

      public Bucket.Builder mergeWebsite(Bucket.Website value)
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
    • clearWebsite

      public Bucket.Builder clearWebsite()
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
    • getWebsiteBuilder

      public Bucket.Website.Builder getWebsiteBuilder()
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
    • getWebsiteOrBuilder

      public Bucket.WebsiteOrBuilder getWebsiteOrBuilder()
       The bucket's website config, controlling how the service behaves
       when accessing bucket contents as a web site. See the
       [https://cloud.google.com/storage/docs/static-website][Static Website
       Examples] for more information.
       
      .google.storage.v2.Bucket.Website website = 16;
      Specified by:
      getWebsiteOrBuilder in interface BucketOrBuilder
    • hasVersioning

      public boolean hasVersioning()
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
      Specified by:
      hasVersioning in interface BucketOrBuilder
      Returns:
      Whether the versioning field is set.
    • getVersioning

      public Bucket.Versioning getVersioning()
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
      Specified by:
      getVersioning in interface BucketOrBuilder
      Returns:
      The versioning.
    • setVersioning

      public Bucket.Builder setVersioning(Bucket.Versioning value)
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
    • setVersioning

      public Bucket.Builder setVersioning(Bucket.Versioning.Builder builderForValue)
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
    • mergeVersioning

      public Bucket.Builder mergeVersioning(Bucket.Versioning value)
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
    • clearVersioning

      public Bucket.Builder clearVersioning()
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
    • getVersioningBuilder

      public Bucket.Versioning.Builder getVersioningBuilder()
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
    • getVersioningOrBuilder

      public Bucket.VersioningOrBuilder getVersioningOrBuilder()
       The bucket's versioning config.
       
      .google.storage.v2.Bucket.Versioning versioning = 17;
      Specified by:
      getVersioningOrBuilder in interface BucketOrBuilder
    • hasLogging

      public boolean hasLogging()
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
      Specified by:
      hasLogging in interface BucketOrBuilder
      Returns:
      Whether the logging field is set.
    • getLogging

      public Bucket.Logging getLogging()
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
      Specified by:
      getLogging in interface BucketOrBuilder
      Returns:
      The logging.
    • setLogging

      public Bucket.Builder setLogging(Bucket.Logging value)
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
    • setLogging

      public Bucket.Builder setLogging(Bucket.Logging.Builder builderForValue)
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
    • mergeLogging

      public Bucket.Builder mergeLogging(Bucket.Logging value)
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
    • clearLogging

      public Bucket.Builder clearLogging()
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
    • getLoggingBuilder

      public Bucket.Logging.Builder getLoggingBuilder()
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
    • getLoggingOrBuilder

      public Bucket.LoggingOrBuilder getLoggingOrBuilder()
       The bucket's logging config, which defines the destination bucket
       and name prefix (if any) for the current bucket's logs.
       
      .google.storage.v2.Bucket.Logging logging = 18;
      Specified by:
      getLoggingOrBuilder in interface BucketOrBuilder
    • hasOwner

      public boolean hasOwner()
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasOwner in interface BucketOrBuilder
      Returns:
      Whether the owner field is set.
    • getOwner

      public Owner getOwner()
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOwner in interface BucketOrBuilder
      Returns:
      The owner.
    • setOwner

      public Bucket.Builder setOwner(Owner value)
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setOwner

      public Bucket.Builder setOwner(Owner.Builder builderForValue)
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeOwner

      public Bucket.Builder mergeOwner(Owner value)
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearOwner

      public Bucket.Builder clearOwner()
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOwnerBuilder

      public Owner.Builder getOwnerBuilder()
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getOwnerOrBuilder

      public OwnerOrBuilder getOwnerOrBuilder()
       Output only. The owner of the bucket. This is always the project team's
       owner group.
       
      .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOwnerOrBuilder in interface BucketOrBuilder
    • hasEncryption

      public boolean hasEncryption()
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
      Specified by:
      hasEncryption in interface BucketOrBuilder
      Returns:
      Whether the encryption field is set.
    • getEncryption

      public Bucket.Encryption getEncryption()
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
      Specified by:
      getEncryption in interface BucketOrBuilder
      Returns:
      The encryption.
    • setEncryption

      public Bucket.Builder setEncryption(Bucket.Encryption value)
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
    • setEncryption

      public Bucket.Builder setEncryption(Bucket.Encryption.Builder builderForValue)
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
    • mergeEncryption

      public Bucket.Builder mergeEncryption(Bucket.Encryption value)
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
    • clearEncryption

      public Bucket.Builder clearEncryption()
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
    • getEncryptionBuilder

      public Bucket.Encryption.Builder getEncryptionBuilder()
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
    • getEncryptionOrBuilder

      public Bucket.EncryptionOrBuilder getEncryptionOrBuilder()
       Encryption config for a bucket.
       
      .google.storage.v2.Bucket.Encryption encryption = 20;
      Specified by:
      getEncryptionOrBuilder in interface BucketOrBuilder
    • hasBilling

      public boolean hasBilling()
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
      Specified by:
      hasBilling in interface BucketOrBuilder
      Returns:
      Whether the billing field is set.
    • getBilling

      public Bucket.Billing getBilling()
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
      Specified by:
      getBilling in interface BucketOrBuilder
      Returns:
      The billing.
    • setBilling

      public Bucket.Builder setBilling(Bucket.Billing value)
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
    • setBilling

      public Bucket.Builder setBilling(Bucket.Billing.Builder builderForValue)
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
    • mergeBilling

      public Bucket.Builder mergeBilling(Bucket.Billing value)
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
    • clearBilling

      public Bucket.Builder clearBilling()
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
    • getBillingBuilder

      public Bucket.Billing.Builder getBillingBuilder()
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
    • getBillingOrBuilder

      public Bucket.BillingOrBuilder getBillingOrBuilder()
       The bucket's billing config.
       
      .google.storage.v2.Bucket.Billing billing = 21;
      Specified by:
      getBillingOrBuilder in interface BucketOrBuilder
    • hasRetentionPolicy

      public boolean hasRetentionPolicy()
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
      Specified by:
      hasRetentionPolicy in interface BucketOrBuilder
      Returns:
      Whether the retentionPolicy field is set.
    • getRetentionPolicy

      public Bucket.RetentionPolicy getRetentionPolicy()
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
      Specified by:
      getRetentionPolicy in interface BucketOrBuilder
      Returns:
      The retentionPolicy.
    • setRetentionPolicy

      public Bucket.Builder setRetentionPolicy(Bucket.RetentionPolicy value)
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
    • setRetentionPolicy

      public Bucket.Builder setRetentionPolicy(Bucket.RetentionPolicy.Builder builderForValue)
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
    • mergeRetentionPolicy

      public Bucket.Builder mergeRetentionPolicy(Bucket.RetentionPolicy value)
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
    • clearRetentionPolicy

      public Bucket.Builder clearRetentionPolicy()
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
    • getRetentionPolicyBuilder

      public Bucket.RetentionPolicy.Builder getRetentionPolicyBuilder()
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
    • getRetentionPolicyOrBuilder

      public Bucket.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder()
       The bucket's retention policy. The retention policy enforces a minimum
       retention time for all objects contained in the bucket, based on their
       creation time. Any attempt to overwrite or delete objects younger than the
       retention period will result in a PERMISSION_DENIED error.  An unlocked
       retention policy can be modified or removed from the bucket via a
       storage.buckets.update operation. A locked retention policy cannot be
       removed or shortened in duration for the lifetime of the bucket.
       Attempting to remove or decrease period of a locked retention policy will
       result in a PERMISSION_DENIED error.
       
      .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22;
      Specified by:
      getRetentionPolicyOrBuilder in interface BucketOrBuilder
    • hasIamConfig

      public boolean hasIamConfig()
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
      Specified by:
      hasIamConfig in interface BucketOrBuilder
      Returns:
      Whether the iamConfig field is set.
    • getIamConfig

      public Bucket.IamConfig getIamConfig()
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
      Specified by:
      getIamConfig in interface BucketOrBuilder
      Returns:
      The iamConfig.
    • setIamConfig

      public Bucket.Builder setIamConfig(Bucket.IamConfig value)
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
    • setIamConfig

      public Bucket.Builder setIamConfig(Bucket.IamConfig.Builder builderForValue)
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
    • mergeIamConfig

      public Bucket.Builder mergeIamConfig(Bucket.IamConfig value)
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
    • clearIamConfig

      public Bucket.Builder clearIamConfig()
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
    • getIamConfigBuilder

      public Bucket.IamConfig.Builder getIamConfigBuilder()
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
    • getIamConfigOrBuilder

      public Bucket.IamConfigOrBuilder getIamConfigOrBuilder()
       The bucket's IAM config.
       
      .google.storage.v2.Bucket.IamConfig iam_config = 23;
      Specified by:
      getIamConfigOrBuilder in interface BucketOrBuilder
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Reserved for future use.
       
      bool satisfies_pzs = 25;
      Specified by:
      getSatisfiesPzs in interface BucketOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public Bucket.Builder setSatisfiesPzs(boolean value)
       Reserved for future use.
       
      bool satisfies_pzs = 25;
      Parameters:
      value - The satisfiesPzs to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzs

      public Bucket.Builder clearSatisfiesPzs()
       Reserved for future use.
       
      bool satisfies_pzs = 25;
      Returns:
      This builder for chaining.
    • hasCustomPlacementConfig

      public boolean hasCustomPlacementConfig()
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      Specified by:
      hasCustomPlacementConfig in interface BucketOrBuilder
      Returns:
      Whether the customPlacementConfig field is set.
    • getCustomPlacementConfig

      public Bucket.CustomPlacementConfig getCustomPlacementConfig()
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      Specified by:
      getCustomPlacementConfig in interface BucketOrBuilder
      Returns:
      The customPlacementConfig.
    • setCustomPlacementConfig

      public Bucket.Builder setCustomPlacementConfig(Bucket.CustomPlacementConfig value)
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
    • setCustomPlacementConfig

      public Bucket.Builder setCustomPlacementConfig(Bucket.CustomPlacementConfig.Builder builderForValue)
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
    • mergeCustomPlacementConfig

      public Bucket.Builder mergeCustomPlacementConfig(Bucket.CustomPlacementConfig value)
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
    • clearCustomPlacementConfig

      public Bucket.Builder clearCustomPlacementConfig()
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
    • getCustomPlacementConfigBuilder

      public Bucket.CustomPlacementConfig.Builder getCustomPlacementConfigBuilder()
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
    • getCustomPlacementConfigOrBuilder

      public Bucket.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder()
       Configuration that, if present, specifies the data placement for a
       [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
       
      .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26;
      Specified by:
      getCustomPlacementConfigOrBuilder in interface BucketOrBuilder
    • hasAutoclass

      public boolean hasAutoclass()
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
      Specified by:
      hasAutoclass in interface BucketOrBuilder
      Returns:
      Whether the autoclass field is set.
    • getAutoclass

      public Bucket.Autoclass getAutoclass()
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
      Specified by:
      getAutoclass in interface BucketOrBuilder
      Returns:
      The autoclass.
    • setAutoclass

      public Bucket.Builder setAutoclass(Bucket.Autoclass value)
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
    • setAutoclass

      public Bucket.Builder setAutoclass(Bucket.Autoclass.Builder builderForValue)
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
    • mergeAutoclass

      public Bucket.Builder mergeAutoclass(Bucket.Autoclass value)
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
    • clearAutoclass

      public Bucket.Builder clearAutoclass()
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
    • getAutoclassBuilder

      public Bucket.Autoclass.Builder getAutoclassBuilder()
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
    • getAutoclassOrBuilder

      public Bucket.AutoclassOrBuilder getAutoclassOrBuilder()
       The bucket's Autoclass configuration. If there is no configuration, the
       Autoclass feature will be disabled and have no effect on the bucket.
       
      .google.storage.v2.Bucket.Autoclass autoclass = 28;
      Specified by:
      getAutoclassOrBuilder in interface BucketOrBuilder
    • hasHierarchicalNamespace

      public boolean hasHierarchicalNamespace()
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasHierarchicalNamespace in interface BucketOrBuilder
      Returns:
      Whether the hierarchicalNamespace field is set.
    • getHierarchicalNamespace

      public Bucket.HierarchicalNamespace getHierarchicalNamespace()
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHierarchicalNamespace in interface BucketOrBuilder
      Returns:
      The hierarchicalNamespace.
    • setHierarchicalNamespace

      public Bucket.Builder setHierarchicalNamespace(Bucket.HierarchicalNamespace value)
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
    • setHierarchicalNamespace

      public Bucket.Builder setHierarchicalNamespace(Bucket.HierarchicalNamespace.Builder builderForValue)
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
    • mergeHierarchicalNamespace

      public Bucket.Builder mergeHierarchicalNamespace(Bucket.HierarchicalNamespace value)
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
    • clearHierarchicalNamespace

      public Bucket.Builder clearHierarchicalNamespace()
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
    • getHierarchicalNamespaceBuilder

      public Bucket.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder()
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
    • getHierarchicalNamespaceOrBuilder

      public Bucket.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder()
       Optional. The bucket's hierarchical namespace configuration. If there is no
       configuration, the hierarchical namespace feature will be disabled and have
       no effect on the bucket.
       
      .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHierarchicalNamespaceOrBuilder in interface BucketOrBuilder
    • hasSoftDeletePolicy

      public boolean hasSoftDeletePolicy()
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSoftDeletePolicy in interface BucketOrBuilder
      Returns:
      Whether the softDeletePolicy field is set.
    • getSoftDeletePolicy

      public Bucket.SoftDeletePolicy getSoftDeletePolicy()
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSoftDeletePolicy in interface BucketOrBuilder
      Returns:
      The softDeletePolicy.
    • setSoftDeletePolicy

      public Bucket.Builder setSoftDeletePolicy(Bucket.SoftDeletePolicy value)
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
    • setSoftDeletePolicy

      public Bucket.Builder setSoftDeletePolicy(Bucket.SoftDeletePolicy.Builder builderForValue)
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSoftDeletePolicy

      public Bucket.Builder mergeSoftDeletePolicy(Bucket.SoftDeletePolicy value)
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
    • clearSoftDeletePolicy

      public Bucket.Builder clearSoftDeletePolicy()
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
    • getSoftDeletePolicyBuilder

      public Bucket.SoftDeletePolicy.Builder getSoftDeletePolicyBuilder()
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
    • getSoftDeletePolicyOrBuilder

      public Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder()
       Optional. The bucket's soft delete policy. The soft delete policy prevents
       soft-deleted objects from being permanently deleted.
       
      .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSoftDeletePolicyOrBuilder in interface BucketOrBuilder
    • setUnknownFields

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

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