Package com.google.storage.v2
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 Summary
Modifier and TypeMethodDescriptionaddAcl(int index, BucketAccessControl value) Access controls on the bucket.addAcl(int index, BucketAccessControl.Builder builderForValue) Access controls on the bucket.addAcl(BucketAccessControl value) Access controls on the bucket.addAcl(BucketAccessControl.Builder builderForValue) Access controls on the bucket.Access controls on the bucket.addAclBuilder(int index) Access controls on the bucket.addAllAcl(Iterable<? extends BucketAccessControl> values) Access controls on the bucket.addAllCors(Iterable<? extends Bucket.Cors> values) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.addAllDefaultObjectAcl(Iterable<? extends ObjectAccessControl> values) Default access controls to apply to new objects when no ACL is provided.addCors(int index, Bucket.Cors value) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.addCors(int index, Bucket.Cors.Builder builderForValue) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.addCors(Bucket.Cors value) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.addCors(Bucket.Cors.Builder builderForValue) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.addCorsBuilder(int index) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.addDefaultObjectAcl(int index, ObjectAccessControl value) Default access controls to apply to new objects when no ACL is provided.addDefaultObjectAcl(int index, ObjectAccessControl.Builder builderForValue) Default access controls to apply to new objects when no ACL is provided.Default access controls to apply to new objects when no ACL is provided.addDefaultObjectAcl(ObjectAccessControl.Builder builderForValue) Default access controls to apply to new objects when no ACL is provided.Default access controls to apply to new objects when no ACL is provided.addDefaultObjectAclBuilder(int index) Default access controls to apply to new objects when no ACL is provided.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearAcl()Access controls on the bucket.The bucket's Autoclass configuration.The bucket's billing config.Output only.The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.Output only.Configuration that, if present, specifies the data placement for a [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].The default value for event-based hold on newly created objects in this bucket.Default access controls to apply to new objects when no ACL is provided.Encryption config for a bucket.The etag of the bucket.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The bucket's IAM config.The bucket's lifecycle config.Immutable.Output only.The bucket's logging config, which defines the destination bucket and name prefix (if any) for the current bucket's logs.Output only.Immutable.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Immutable.The bucket's retention policy.clearRpo()The recovery point objective for cross-region replication of the bucket.Reserved for future use.The bucket's default storage class, used whenever no storageClass is specified for a newly-created object.Output only.The bucket's versioning config.The bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.clone()booleancontainsLabels(String key) User-provided labels, in key/value pairs.getAcl(int index) Access controls on the bucket.getAclBuilder(int index) Access controls on the bucket.Access controls on the bucket.intAccess controls on the bucket.Access controls on the bucket.getAclOrBuilder(int index) Access controls on the bucket.List<? extends BucketAccessControlOrBuilder>Access controls on the bucket.The bucket's Autoclass configuration.The bucket's Autoclass configuration.The bucket's Autoclass configuration.The bucket's billing config.The bucket's billing config.The bucket's billing config.Output only.com.google.protobuf.ByteStringOutput only.getCors(int index) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.getCorsBuilder(int index) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.intThe bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.getCorsOrBuilder(int index) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.List<? extends Bucket.CorsOrBuilder>The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Configuration that, if present, specifies the data placement for a [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].Configuration that, if present, specifies the data placement for a [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].Configuration that, if present, specifies the data placement for a [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].booleanThe default value for event-based hold on newly created objects in this bucket.getDefaultObjectAcl(int index) Default access controls to apply to new objects when no ACL is provided.getDefaultObjectAclBuilder(int index) Default access controls to apply to new objects when no ACL is provided.Default access controls to apply to new objects when no ACL is provided.intDefault access controls to apply to new objects when no ACL is provided.Default access controls to apply to new objects when no ACL is provided.getDefaultObjectAclOrBuilder(int index) Default access controls to apply to new objects when no ACL is provided.List<? extends ObjectAccessControlOrBuilder>Default access controls to apply to new objects when no ACL is provided.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEncryption config for a bucket.Encryption config for a bucket.Encryption config for a bucket.getEtag()The etag of the bucket.com.google.protobuf.ByteStringThe etag of the bucket.The bucket's IAM config.The bucket's IAM config.The bucket's IAM config.Deprecated.intUser-provided labels, in key/value pairs.User-provided labels, in key/value pairs.getLabelsOrDefault(String key, String defaultValue) User-provided labels, in key/value pairs.getLabelsOrThrow(String key) User-provided labels, in key/value pairs.The bucket's lifecycle config.The bucket's lifecycle config.The bucket's lifecycle config.Immutable.com.google.protobuf.ByteStringImmutable.Output only.com.google.protobuf.ByteStringOutput only.The bucket's logging config, which defines the destination bucket and name prefix (if any) for the current bucket's logs.The bucket's logging config, which defines the destination bucket and name prefix (if any) for the current bucket's logs.The bucket's logging config, which defines the destination bucket and name prefix (if any) for the current bucket's logs.longOutput only.Deprecated.getName()Immutable.com.google.protobuf.ByteStringImmutable.getOwner()Output only.Output only.Output only.Immutable.com.google.protobuf.ByteStringImmutable.The bucket's retention policy.The bucket's retention policy.The bucket's retention policy.getRpo()The recovery point objective for cross-region replication of the bucket.com.google.protobuf.ByteStringThe recovery point objective for cross-region replication of the bucket.booleanReserved for future use.The bucket's default storage class, used whenever no storageClass is specified for a newly-created object.com.google.protobuf.ByteStringThe bucket's default storage class, used whenever no storageClass is specified for a newly-created object.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.The bucket's versioning config.The bucket's versioning config.The bucket's versioning config.The bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.The bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.The bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.booleanThe bucket's Autoclass configuration.booleanThe bucket's billing config.booleanOutput only.booleanConfiguration that, if present, specifies the data placement for a [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].booleanEncryption config for a bucket.booleanThe bucket's IAM config.booleanThe bucket's lifecycle config.booleanThe bucket's logging config, which defines the destination bucket and name prefix (if any) for the current bucket's logs.booleanhasOwner()Output only.booleanThe bucket's retention policy.booleanOutput only.booleanThe bucket's versioning config.booleanThe bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeAutoclass(Bucket.Autoclass value) The bucket's Autoclass configuration.mergeBilling(Bucket.Billing value) The bucket's billing config.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.Configuration that, if present, specifies the data placement for a [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].mergeEncryption(Bucket.Encryption value) Encryption config for a bucket.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIamConfig(Bucket.IamConfig value) The bucket's IAM config.mergeLifecycle(Bucket.Lifecycle value) The bucket's lifecycle config.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.mergeOwner(Owner value) Output only.The bucket's retention policy.final Bucket.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.mergeVersioning(Bucket.Versioning value) The bucket's versioning config.mergeWebsite(Bucket.Website value) The bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.putAllLabels(Map<String, String> values) User-provided labels, in key/value pairs.User-provided labels, in key/value pairs.removeAcl(int index) Access controls on the bucket.removeCors(int index) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.removeDefaultObjectAcl(int index) Default access controls to apply to new objects when no ACL is provided.removeLabels(String key) User-provided labels, in key/value pairs.setAcl(int index, BucketAccessControl value) Access controls on the bucket.setAcl(int index, BucketAccessControl.Builder builderForValue) Access controls on the bucket.setAutoclass(Bucket.Autoclass value) The bucket's Autoclass configuration.setAutoclass(Bucket.Autoclass.Builder builderForValue) The bucket's Autoclass configuration.setBilling(Bucket.Billing value) The bucket's billing config.setBilling(Bucket.Billing.Builder builderForValue) The bucket's billing config.setBucketId(String value) Output only.setBucketIdBytes(com.google.protobuf.ByteString value) Output only.setCors(int index, Bucket.Cors value) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.setCors(int index, Bucket.Cors.Builder builderForValue) The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Configuration that, if present, specifies the data placement for a [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].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].setDefaultEventBasedHold(boolean value) The default value for event-based hold on newly created objects in this bucket.setDefaultObjectAcl(int index, ObjectAccessControl value) Default access controls to apply to new objects when no ACL is provided.setDefaultObjectAcl(int index, ObjectAccessControl.Builder builderForValue) Default access controls to apply to new objects when no ACL is provided.setEncryption(Bucket.Encryption value) Encryption config for a bucket.setEncryption(Bucket.Encryption.Builder builderForValue) Encryption config for a bucket.The etag of the bucket.setEtagBytes(com.google.protobuf.ByteString value) The etag of the bucket.setIamConfig(Bucket.IamConfig value) The bucket's IAM config.setIamConfig(Bucket.IamConfig.Builder builderForValue) The bucket's IAM config.setLifecycle(Bucket.Lifecycle value) The bucket's lifecycle config.setLifecycle(Bucket.Lifecycle.Builder builderForValue) The bucket's lifecycle config.setLocation(String value) Immutable.setLocationBytes(com.google.protobuf.ByteString value) Immutable.setLocationType(String value) Output only.setLocationTypeBytes(com.google.protobuf.ByteString value) Output only.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.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.setMetageneration(long value) Output only.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.Output only.setOwner(Owner.Builder builderForValue) Output only.setProject(String value) Immutable.setProjectBytes(com.google.protobuf.ByteString value) Immutable.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The bucket's retention policy.setRetentionPolicy(Bucket.RetentionPolicy.Builder builderForValue) The bucket's retention policy.The recovery point objective for cross-region replication of the bucket.setRpoBytes(com.google.protobuf.ByteString value) The recovery point objective for cross-region replication of the bucket.setSatisfiesPzs(boolean value) Reserved for future use.setStorageClass(String value) The bucket's default storage class, used whenever no storageClass is specified for a newly-created object.setStorageClassBytes(com.google.protobuf.ByteString value) The bucket's default storage class, used whenever no storageClass is specified for a newly-created object.final Bucket.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVersioning(Bucket.Versioning value) The bucket's versioning config.setVersioning(Bucket.Versioning.Builder builderForValue) The bucket's versioning config.setWebsite(Bucket.Website value) The bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.setWebsite(Bucket.Website.Builder builderForValue) The bucket's website config, controlling how the service behaves when accessing bucket contents as a web site.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
setRepeatedField
public Bucket.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
addRepeatedField
public Bucket.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Bucket.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Bucket.Builder>- Throws:
IOException
-
getName
Immutable. The name of the bucket. Format: `projects/{project}/buckets/{bucket}`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceBucketOrBuilder- 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:
getNameBytesin interfaceBucketOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
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:
getBucketIdin interfaceBucketOrBuilder- 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:
getBucketIdBytesin interfaceBucketOrBuilder- Returns:
- The bytes for bucketId.
-
setBucketId
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
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
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
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:
getEtagin interfaceBucketOrBuilder- 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:
getEtagBytesin interfaceBucketOrBuilder- Returns:
- The bytes for etag.
-
setEtag
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
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
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
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:
getProjectin interfaceBucketOrBuilder- 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:
getProjectBytesin interfaceBucketOrBuilder- Returns:
- The bytes for project.
-
setProject
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
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
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. 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];- Specified by:
getMetagenerationin interfaceBucketOrBuilder- Returns:
- The metageneration.
-
setMetageneration
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];- Parameters:
value- The metageneration to set.- Returns:
- This builder for chaining.
-
clearMetageneration
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];- Returns:
- This builder for chaining.
-
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:
getLocationin interfaceBucketOrBuilder- 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:
getLocationBytesin interfaceBucketOrBuilder- Returns:
- The bytes for location.
-
setLocation
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
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
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
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:
getLocationTypein interfaceBucketOrBuilder- 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:
getLocationTypeBytesin interfaceBucketOrBuilder- Returns:
- The bytes for locationType.
-
setLocationType
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
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
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
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:
getStorageClassin interfaceBucketOrBuilder- 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:
getStorageClassBytesin interfaceBucketOrBuilder- Returns:
- The bytes for storageClass.
-
setStorageClass
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
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
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
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;- Specified by:
getRpoin interfaceBucketOrBuilder- 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/turbo-replication.
string rpo = 27;- Specified by:
getRpoBytesin interfaceBucketOrBuilder- Returns:
- The bytes for rpo.
-
setRpo
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;- Parameters:
value- The rpo to set.- Returns:
- This builder for chaining.
-
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/turbo-replication.
string rpo = 27;- Returns:
- This builder for chaining.
-
setRpoBytes
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;- Parameters:
value- The bytes for rpo to set.- Returns:
- This builder for chaining.
-
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:
getAclListin interfaceBucketOrBuilder
-
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:
getAclCountin interfaceBucketOrBuilder
-
getAcl
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:
getAclin interfaceBucketOrBuilder
-
setAcl
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
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
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
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
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
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
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
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
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
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
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:
getAclOrBuilderin interfaceBucketOrBuilder
-
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:
getAclOrBuilderListin interfaceBucketOrBuilder
-
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
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
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
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:
getDefaultObjectAclListin interfaceBucketOrBuilder
-
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:
getDefaultObjectAclCountin interfaceBucketOrBuilder
-
getDefaultObjectAcl
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:
getDefaultObjectAclin interfaceBucketOrBuilder
-
setDefaultObjectAcl
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
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
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
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
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
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
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
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
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
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
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:
getDefaultObjectAclOrBuilderin interfaceBucketOrBuilder
-
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:
getDefaultObjectAclOrBuilderListin interfaceBucketOrBuilder
-
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
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
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:
hasLifecyclein interfaceBucketOrBuilder- Returns:
- Whether the lifecycle field is set.
-
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:
getLifecyclein interfaceBucketOrBuilder- Returns:
- The lifecycle.
-
setLifecycle
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
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
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
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
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
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:
getLifecycleOrBuilderin interfaceBucketOrBuilder
-
hasCreateTime
public 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];- Specified by:
hasCreateTimein interfaceBucketOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public 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];- Specified by:
getCreateTimein interfaceBucketOrBuilder- Returns:
- The createTime.
-
setCreateTime
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]; -
setCreateTime
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]; -
mergeCreateTime
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]; -
clearCreateTime
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]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()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]; -
getCreateTimeOrBuilder
public 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];- Specified by:
getCreateTimeOrBuilderin interfaceBucketOrBuilder
-
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:
getCorsListin interfaceBucketOrBuilder
-
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:
getCorsCountin interfaceBucketOrBuilder
-
getCors
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:
getCorsin interfaceBucketOrBuilder
-
setCors
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
setCors
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
addCors
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
addCors
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
addCors
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
addCors
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
addAllCors
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
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
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
getCorsBuilder
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
getCorsOrBuilder
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:
getCorsOrBuilderin interfaceBucketOrBuilder
-
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:
getCorsOrBuilderListin interfaceBucketOrBuilder
-
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
The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing] (CORS) config.
repeated .google.storage.v2.Bucket.Cors cors = 12; -
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. 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];- Specified by:
hasUpdateTimein interfaceBucketOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public 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];- Specified by:
getUpdateTimein interfaceBucketOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
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]; -
setUpdateTime
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]; -
mergeUpdateTime
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]; -
clearUpdateTime
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]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()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]; -
getUpdateTimeOrBuilder
public 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];- Specified by:
getUpdateTimeOrBuilderin interfaceBucketOrBuilder
-
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:
getDefaultEventBasedHoldin interfaceBucketOrBuilder- Returns:
- The defaultEventBasedHold.
-
setDefaultEventBasedHold
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
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:BucketOrBuilderUser-provided labels, in key/value pairs.
map<string, string> labels = 15;- Specified by:
getLabelsCountin interfaceBucketOrBuilder
-
containsLabels
User-provided labels, in key/value pairs.
map<string, string> labels = 15;- Specified by:
containsLabelsin interfaceBucketOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceBucketOrBuilder
-
getLabelsMap
User-provided labels, in key/value pairs.
map<string, string> labels = 15;- Specified by:
getLabelsMapin interfaceBucketOrBuilder
-
getLabelsOrDefault
User-provided labels, in key/value pairs.
map<string, string> labels = 15;- Specified by:
getLabelsOrDefaultin interfaceBucketOrBuilder
-
getLabelsOrThrow
User-provided labels, in key/value pairs.
map<string, string> labels = 15;- Specified by:
getLabelsOrThrowin interfaceBucketOrBuilder
-
clearLabels
-
removeLabels
User-provided labels, in key/value pairs.
map<string, string> labels = 15; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
User-provided labels, in key/value pairs.
map<string, string> labels = 15; -
putAllLabels
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:
hasWebsitein interfaceBucketOrBuilder- Returns:
- Whether the website field is set.
-
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:
getWebsitein interfaceBucketOrBuilder- Returns:
- The website.
-
setWebsite
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
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
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
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
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
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:
getWebsiteOrBuilderin interfaceBucketOrBuilder
-
hasVersioning
public boolean hasVersioning()The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17;- Specified by:
hasVersioningin interfaceBucketOrBuilder- Returns:
- Whether the versioning field is set.
-
getVersioning
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17;- Specified by:
getVersioningin interfaceBucketOrBuilder- Returns:
- The versioning.
-
setVersioning
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17; -
setVersioning
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17; -
mergeVersioning
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17; -
clearVersioning
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17; -
getVersioningBuilder
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17; -
getVersioningOrBuilder
The bucket's versioning config.
.google.storage.v2.Bucket.Versioning versioning = 17;- Specified by:
getVersioningOrBuilderin interfaceBucketOrBuilder
-
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:
hasLoggingin interfaceBucketOrBuilder- Returns:
- Whether the logging field is set.
-
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:
getLoggingin interfaceBucketOrBuilder- Returns:
- The logging.
-
setLogging
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
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
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
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
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
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:
getLoggingOrBuilderin interfaceBucketOrBuilder
-
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:
hasOwnerin interfaceBucketOrBuilder- Returns:
- Whether the owner field is set.
-
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:
getOwnerin interfaceBucketOrBuilder- Returns:
- The owner.
-
setOwner
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
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
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
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
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
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:
getOwnerOrBuilderin interfaceBucketOrBuilder
-
hasEncryption
public boolean hasEncryption()Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20;- Specified by:
hasEncryptionin interfaceBucketOrBuilder- Returns:
- Whether the encryption field is set.
-
getEncryption
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20;- Specified by:
getEncryptionin interfaceBucketOrBuilder- Returns:
- The encryption.
-
setEncryption
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20; -
setEncryption
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20; -
mergeEncryption
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20; -
clearEncryption
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20; -
getEncryptionBuilder
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20; -
getEncryptionOrBuilder
Encryption config for a bucket.
.google.storage.v2.Bucket.Encryption encryption = 20;- Specified by:
getEncryptionOrBuilderin interfaceBucketOrBuilder
-
hasBilling
public boolean hasBilling()The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21;- Specified by:
hasBillingin interfaceBucketOrBuilder- Returns:
- Whether the billing field is set.
-
getBilling
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21;- Specified by:
getBillingin interfaceBucketOrBuilder- Returns:
- The billing.
-
setBilling
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21; -
setBilling
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21; -
mergeBilling
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21; -
clearBilling
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21; -
getBillingBuilder
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21; -
getBillingOrBuilder
The bucket's billing config.
.google.storage.v2.Bucket.Billing billing = 21;- Specified by:
getBillingOrBuilderin interfaceBucketOrBuilder
-
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:
hasRetentionPolicyin interfaceBucketOrBuilder- Returns:
- Whether the retentionPolicy field is set.
-
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:
getRetentionPolicyin interfaceBucketOrBuilder- Returns:
- The retentionPolicy.
-
setRetentionPolicy
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
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
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
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
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
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:
getRetentionPolicyOrBuilderin interfaceBucketOrBuilder
-
hasIamConfig
public boolean hasIamConfig()The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23;- Specified by:
hasIamConfigin interfaceBucketOrBuilder- Returns:
- Whether the iamConfig field is set.
-
getIamConfig
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23;- Specified by:
getIamConfigin interfaceBucketOrBuilder- Returns:
- The iamConfig.
-
setIamConfig
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23; -
setIamConfig
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23; -
mergeIamConfig
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23; -
clearIamConfig
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23; -
getIamConfigBuilder
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23; -
getIamConfigOrBuilder
The bucket's IAM config.
.google.storage.v2.Bucket.IamConfig iam_config = 23;- Specified by:
getIamConfigOrBuilderin interfaceBucketOrBuilder
-
getSatisfiesPzs
public boolean getSatisfiesPzs()Reserved for future use.
bool satisfies_pzs = 25;- Specified by:
getSatisfiesPzsin interfaceBucketOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
Reserved for future use.
bool satisfies_pzs = 25;- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
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:
hasCustomPlacementConfigin interfaceBucketOrBuilder- Returns:
- Whether the customPlacementConfig field is set.
-
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:
getCustomPlacementConfigin interfaceBucketOrBuilder- Returns:
- The customPlacementConfig.
-
setCustomPlacementConfig
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
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
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
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
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:
getCustomPlacementConfigOrBuilderin interfaceBucketOrBuilder
-
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:
hasAutoclassin interfaceBucketOrBuilder- Returns:
- Whether the autoclass field is set.
-
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:
getAutoclassin interfaceBucketOrBuilder- Returns:
- The autoclass.
-
setAutoclass
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
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
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
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
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
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:
getAutoclassOrBuilderin interfaceBucketOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Bucket.Builder>
-