Package com.google.storage.v2
Class UpdateBucketRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateBucketRequest.Builder>
com.google.storage.v2.UpdateBucketRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UpdateBucketRequestOrBuilder,Cloneable
- Enclosing class:
- UpdateBucketRequest
public static final class UpdateBucketRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UpdateBucketRequest.Builder>
implements UpdateBucketRequestOrBuilder
Request for [UpdateBucket][google.storage.v2.Storage.UpdateBucket] method.Protobuf type
google.storage.v2.UpdateBucketRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.If set, the request modifies the bucket if its metageneration matches this value.If set, the request modifies the bucket if its metageneration doesn't match this value.Optional.Optional.Required.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongIf set, the request modifies the bucket if its metageneration matches this value.longIf set, the request modifies the bucket if its metageneration doesn't match this value.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.FieldMaskRequired.com.google.protobuf.FieldMask.BuilderRequired.com.google.protobuf.FieldMaskOrBuilderRequired.booleanRequired.booleanIf set, the request modifies the bucket if its metageneration matches this value.booleanIf set, the request modifies the bucket if its metageneration doesn't match this value.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBucket(Bucket value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(UpdateBucketRequest other) mergeUpdateMask(com.google.protobuf.FieldMask value) Required.Required.setBucket(Bucket.Builder builderForValue) Required.setIfMetagenerationMatch(long value) If set, the request modifies the bucket if its metageneration matches this value.setIfMetagenerationNotMatch(long value) If set, the request modifies the bucket if its metageneration doesn't match this value.setPredefinedAcl(String value) Optional.setPredefinedAclBytes(com.google.protobuf.ByteString value) Optional.Optional.setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) Optional.setUpdateMask(com.google.protobuf.FieldMask value) Required.setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UpdateBucketRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UpdateBucketRequest.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.GeneratedMessage.Builder<UpdateBucketRequest.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateBucketRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UpdateBucketRequest.Builder>
-
mergeFrom
public UpdateBucketRequest.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<UpdateBucketRequest.Builder>- Throws:
IOException
-
hasBucket
public boolean hasBucket()Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasBucketin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the bucket field is set.
-
getBucket
Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBucketin interfaceUpdateBucketRequestOrBuilder- Returns:
- The bucket.
-
setBucket
Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; -
setBucket
Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeBucket
Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearBucket
Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; -
getBucketBuilder
Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; -
getBucketOrBuilder
Required. The bucket to update. The bucket's `name` field is used to identify the bucket.
.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBucketOrBuilderin interfaceUpdateBucketRequestOrBuilder
-
hasIfMetagenerationMatch
public boolean hasIfMetagenerationMatch()If set, the request modifies the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Specified by:
hasIfMetagenerationMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the ifMetagenerationMatch field is set.
-
getIfMetagenerationMatch
public long getIfMetagenerationMatch()If set, the request modifies the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Specified by:
getIfMetagenerationMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- The ifMetagenerationMatch.
-
setIfMetagenerationMatch
If set, the request modifies the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Parameters:
value- The ifMetagenerationMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationMatch
If set, the request modifies the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Returns:
- This builder for chaining.
-
hasIfMetagenerationNotMatch
public boolean hasIfMetagenerationNotMatch()If set, the request modifies the bucket if its metageneration doesn't match this value.
optional int64 if_metageneration_not_match = 3;- Specified by:
hasIfMetagenerationNotMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the ifMetagenerationNotMatch field is set.
-
getIfMetagenerationNotMatch
public long getIfMetagenerationNotMatch()If set, the request modifies the bucket if its metageneration doesn't match this value.
optional int64 if_metageneration_not_match = 3;- Specified by:
getIfMetagenerationNotMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- The ifMetagenerationNotMatch.
-
setIfMetagenerationNotMatch
If set, the request modifies the bucket if its metageneration doesn't match this value.
optional int64 if_metageneration_not_match = 3;- Parameters:
value- The ifMetagenerationNotMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationNotMatch
If set, the request modifies the bucket if its metageneration doesn't match this value.
optional int64 if_metageneration_not_match = 3;- Returns:
- This builder for chaining.
-
getPredefinedAcl
Optional. Apply a predefined set of access controls to this bucket. Valid values are `authenticatedRead`, `private`, `projectPrivate`, `publicRead`, or `publicReadWrite`.
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedAclin interfaceUpdateBucketRequestOrBuilder- Returns:
- The predefinedAcl.
-
getPredefinedAclBytes
public com.google.protobuf.ByteString getPredefinedAclBytes()Optional. Apply a predefined set of access controls to this bucket. Valid values are `authenticatedRead`, `private`, `projectPrivate`, `publicRead`, or `publicReadWrite`.
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedAclBytesin interfaceUpdateBucketRequestOrBuilder- Returns:
- The bytes for predefinedAcl.
-
setPredefinedAcl
Optional. Apply a predefined set of access controls to this bucket. Valid values are `authenticatedRead`, `private`, `projectPrivate`, `publicRead`, or `publicReadWrite`.
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The predefinedAcl to set.- Returns:
- This builder for chaining.
-
clearPredefinedAcl
Optional. Apply a predefined set of access controls to this bucket. Valid values are `authenticatedRead`, `private`, `projectPrivate`, `publicRead`, or `publicReadWrite`.
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPredefinedAclBytes
Optional. Apply a predefined set of access controls to this bucket. Valid values are `authenticatedRead`, `private`, `projectPrivate`, `publicRead`, or `publicReadWrite`.
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for predefinedAcl to set.- Returns:
- This builder for chaining.
-
getPredefinedDefaultObjectAcl
Optional. Apply a predefined set of default object access controls to this bucket. Valid values are `authenticatedRead`, `bucketOwnerFullControl`, `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
string predefined_default_object_acl = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedDefaultObjectAclin interfaceUpdateBucketRequestOrBuilder- Returns:
- The predefinedDefaultObjectAcl.
-
getPredefinedDefaultObjectAclBytes
public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes()Optional. Apply a predefined set of default object access controls to this bucket. Valid values are `authenticatedRead`, `bucketOwnerFullControl`, `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
string predefined_default_object_acl = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedDefaultObjectAclBytesin interfaceUpdateBucketRequestOrBuilder- Returns:
- The bytes for predefinedDefaultObjectAcl.
-
setPredefinedDefaultObjectAcl
Optional. Apply a predefined set of default object access controls to this bucket. Valid values are `authenticatedRead`, `bucketOwnerFullControl`, `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
string predefined_default_object_acl = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The predefinedDefaultObjectAcl to set.- Returns:
- This builder for chaining.
-
clearPredefinedDefaultObjectAcl
Optional. Apply a predefined set of default object access controls to this bucket. Valid values are `authenticatedRead`, `bucketOwnerFullControl`, `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
string predefined_default_object_acl = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPredefinedDefaultObjectAclBytes
public UpdateBucketRequest.Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) Optional. Apply a predefined set of default object access controls to this bucket. Valid values are `authenticatedRead`, `bucketOwnerFullControl`, `bucketOwnerRead`, `private`, `projectPrivate`, or `publicRead`.
string predefined_default_object_acl = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for predefinedDefaultObjectAcl to set.- Returns:
- This builder for chaining.
-
hasUpdateMask
public boolean hasUpdateMask()Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasUpdateMaskin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUpdateMaskin interfaceUpdateBucketRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; -
setUpdateMask
public UpdateBucketRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; -
mergeUpdateMask
Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; -
clearUpdateMask
Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; -
getUpdateMaskBuilder
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; -
getUpdateMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()Required. List of fields to be updated. To specify ALL fields, equivalent to the JSON API's "update" function, specify a single field with the value `*`. Note: not recommended. If a new field is introduced at a later time, an older client updating with the `*` might accidentally reset the new field's value. Not specifying any fields is an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUpdateMaskOrBuilderin interfaceUpdateBucketRequestOrBuilder
-