public interface BucketOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabels(String key)
User-provided labels, in key/value pairs.
|
BucketAccessControl |
getAcl(int index)
Access controls on the bucket.
|
int |
getAclCount()
Access controls on the bucket.
|
List<BucketAccessControl> |
getAclList()
Access controls on the bucket.
|
BucketAccessControlOrBuilder |
getAclOrBuilder(int index)
Access controls on the bucket.
|
List<? extends BucketAccessControlOrBuilder> |
getAclOrBuilderList()
Access controls on the bucket.
|
Bucket.Autoclass |
getAutoclass()
The bucket's Autoclass configuration.
|
Bucket.AutoclassOrBuilder |
getAutoclassOrBuilder()
The bucket's Autoclass configuration.
|
Bucket.Billing |
getBilling()
The bucket's billing config.
|
Bucket.BillingOrBuilder |
getBillingOrBuilder()
The bucket's billing config.
|
String |
getBucketId()
Output only.
|
com.google.protobuf.ByteString |
getBucketIdBytes()
Output only.
|
Bucket.Cors |
getCors(int index)
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
(CORS) config.
|
int |
getCorsCount()
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
(CORS) config.
|
List<Bucket.Cors> |
getCorsList()
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
(CORS) config.
|
Bucket.CorsOrBuilder |
getCorsOrBuilder(int index)
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
(CORS) config.
|
List<? extends Bucket.CorsOrBuilder> |
getCorsOrBuilderList()
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
(CORS) config.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Bucket.CustomPlacementConfig |
getCustomPlacementConfig()
Configuration that, if present, specifies the data placement for a
[https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
|
Bucket.CustomPlacementConfigOrBuilder |
getCustomPlacementConfigOrBuilder()
Configuration that, if present, specifies the data placement for a
[https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
|
boolean |
getDefaultEventBasedHold()
The default value for event-based hold on newly created objects in this
bucket.
|
ObjectAccessControl |
getDefaultObjectAcl(int index)
Default access controls to apply to new objects when no ACL is provided.
|
int |
getDefaultObjectAclCount()
Default access controls to apply to new objects when no ACL is provided.
|
List<ObjectAccessControl> |
getDefaultObjectAclList()
Default access controls to apply to new objects when no ACL is provided.
|
ObjectAccessControlOrBuilder |
getDefaultObjectAclOrBuilder(int index)
Default access controls to apply to new objects when no ACL is provided.
|
List<? extends ObjectAccessControlOrBuilder> |
getDefaultObjectAclOrBuilderList()
Default access controls to apply to new objects when no ACL is provided.
|
Bucket.Encryption |
getEncryption()
Encryption config for a bucket.
|
Bucket.EncryptionOrBuilder |
getEncryptionOrBuilder()
Encryption config for a bucket.
|
String |
getEtag()
The etag of the bucket.
|
com.google.protobuf.ByteString |
getEtagBytes()
The etag of the bucket.
|
Bucket.IamConfig |
getIamConfig()
The bucket's IAM config.
|
Bucket.IamConfigOrBuilder |
getIamConfigOrBuilder()
The bucket's IAM config.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
User-provided labels, in key/value pairs.
|
Map<String,String> |
getLabelsMap()
User-provided labels, in key/value pairs.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
User-provided labels, in key/value pairs.
|
String |
getLabelsOrThrow(String key)
User-provided labels, in key/value pairs.
|
Bucket.Lifecycle |
getLifecycle()
The bucket's lifecycle config.
|
Bucket.LifecycleOrBuilder |
getLifecycleOrBuilder()
The bucket's lifecycle config.
|
String |
getLocation()
Immutable.
|
com.google.protobuf.ByteString |
getLocationBytes()
Immutable.
|
String |
getLocationType()
Output only.
|
com.google.protobuf.ByteString |
getLocationTypeBytes()
Output only.
|
Bucket.Logging |
getLogging()
The bucket's logging config, which defines the destination bucket
and name prefix (if any) for the current bucket's logs.
|
Bucket.LoggingOrBuilder |
getLoggingOrBuilder()
The bucket's logging config, which defines the destination bucket
and name prefix (if any) for the current bucket's logs.
|
long |
getMetageneration()
Output only.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
Owner |
getOwner()
Output only.
|
OwnerOrBuilder |
getOwnerOrBuilder()
Output only.
|
String |
getProject()
Immutable.
|
com.google.protobuf.ByteString |
getProjectBytes()
Immutable.
|
Bucket.RetentionPolicy |
getRetentionPolicy()
The bucket's retention policy.
|
Bucket.RetentionPolicyOrBuilder |
getRetentionPolicyOrBuilder()
The bucket's retention policy.
|
String |
getRpo()
The recovery point objective for cross-region replication of the bucket.
|
com.google.protobuf.ByteString |
getRpoBytes()
The recovery point objective for cross-region replication of the bucket.
|
boolean |
getSatisfiesPzs()
Reserved for future use.
|
String |
getStorageClass()
The bucket's default storage class, used whenever no storageClass is
specified for a newly-created object.
|
com.google.protobuf.ByteString |
getStorageClassBytes()
The bucket's default storage class, used whenever no storageClass is
specified for a newly-created object.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
Bucket.Versioning |
getVersioning()
The bucket's versioning config.
|
Bucket.VersioningOrBuilder |
getVersioningOrBuilder()
The bucket's versioning config.
|
Bucket.Website |
getWebsite()
The bucket's website config, controlling how the service behaves
when accessing bucket contents as a web site.
|
Bucket.WebsiteOrBuilder |
getWebsiteOrBuilder()
The bucket's website config, controlling how the service behaves
when accessing bucket contents as a web site.
|
boolean |
hasAutoclass()
The bucket's Autoclass configuration.
|
boolean |
hasBilling()
The bucket's billing config.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasCustomPlacementConfig()
Configuration that, if present, specifies the data placement for a
[https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
|
boolean |
hasEncryption()
Encryption config for a bucket.
|
boolean |
hasIamConfig()
The bucket's IAM config.
|
boolean |
hasLifecycle()
The bucket's lifecycle config.
|
boolean |
hasLogging()
The bucket's logging config, which defines the destination bucket
and name prefix (if any) for the current bucket's logs.
|
boolean |
hasOwner()
Output only.
|
boolean |
hasRetentionPolicy()
The bucket's retention policy.
|
boolean |
hasUpdateTime()
Output only.
|
boolean |
hasVersioning()
The bucket's versioning config.
|
boolean |
hasWebsite()
The bucket's website config, controlling how the service behaves
when accessing bucket contents as a web site.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
String getName()
Immutable. The name of the bucket. Format: `projects/{project}/buckets/{bucket}`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
com.google.protobuf.ByteString getNameBytes()
Immutable. The name of the bucket. Format: `projects/{project}/buckets/{bucket}`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
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];
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];
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;
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;
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) = { ... }
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) = { ... }
long getMetageneration()
Output only. The metadata generation of this bucket. Attempting to set or update this field will result in a [FieldViolation][google.rpc.BadRequest.FieldViolation].
int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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];
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];
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;
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;
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/turbo-replication.
string rpo = 27;
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/turbo-replication.
string rpo = 27;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
boolean hasCreateTime()
Output only. The creation time of the bucket. Attempting to set or update this field will result in a [FieldViolation][google.rpc.BadRequest.FieldViolation].
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.Timestamp getCreateTime()
Output only. The creation time of the bucket. Attempting to set or update this field will result in a [FieldViolation][google.rpc.BadRequest.FieldViolation].
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time of the bucket. Attempting to set or update this field will result in a [FieldViolation][google.rpc.BadRequest.FieldViolation].
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
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;
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;
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;
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;
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;
boolean hasUpdateTime()
Output only. The modification time of the bucket. Attempting to set or update this field will result in a [FieldViolation][google.rpc.BadRequest.FieldViolation].
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.Timestamp getUpdateTime()
Output only. The modification time of the bucket. Attempting to set or update this field will result in a [FieldViolation][google.rpc.BadRequest.FieldViolation].
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The modification time of the bucket. Attempting to set or update this field will result in a [FieldViolation][google.rpc.BadRequest.FieldViolation].
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
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;
int getLabelsCount()
User-provided labels, in key/value pairs.
map<string, string> labels = 15;
boolean containsLabels(String key)
User-provided labels, in key/value pairs.
map<string, string> labels = 15;
@Deprecated Map<String,String> getLabels()
getLabelsMap()
instead.Map<String,String> getLabelsMap()
User-provided labels, in key/value pairs.
map<string, string> labels = 15;
String getLabelsOrDefault(String key, String defaultValue)
User-provided labels, in key/value pairs.
map<string, string> labels = 15;
String getLabelsOrThrow(String key)
User-provided labels, in key/value pairs.
map<string, string> labels = 15;
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;
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;
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;
boolean hasVersioning()
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17;
Bucket.Versioning getVersioning()
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17;
Bucket.VersioningOrBuilder getVersioningOrBuilder()
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17;
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;
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;
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;
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];
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];
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];
boolean hasEncryption()
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20;
Bucket.Encryption getEncryption()
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20;
Bucket.EncryptionOrBuilder getEncryptionOrBuilder()
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20;
boolean hasBilling()
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21;
Bucket.Billing getBilling()
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21;
Bucket.BillingOrBuilder getBillingOrBuilder()
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21;
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;
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;
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;
boolean hasIamConfig()
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23;
Bucket.IamConfig getIamConfig()
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23;
Bucket.IamConfigOrBuilder getIamConfigOrBuilder()
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23;
boolean getSatisfiesPzs()
Reserved for future use.
bool satisfies_pzs = 25;
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;
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;
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;
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;
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;
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;
Copyright © 2023 Google LLC. All rights reserved.