public static final class UpdateBucketRequest.Builder extends GeneratedMessageV3.Builder<UpdateBucketRequest.Builder> implements UpdateBucketRequestOrBuilder
Request for UpdateBucket method.
Protobuf type google.storage.v2.UpdateBucketRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UpdateBucketRequest.BuilderImplements
UpdateBucketRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateBucketRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
UpdateBucketRequest.Builder |
build()
public UpdateBucketRequest build()
Type | Description |
UpdateBucketRequest |
buildPartial()
public UpdateBucketRequest buildPartial()
Type | Description |
UpdateBucketRequest |
clear()
public UpdateBucketRequest.Builder clear()
Type | Description |
UpdateBucketRequest.Builder |
clearBucket()
public UpdateBucketRequest.Builder clearBucket()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Type | Description |
UpdateBucketRequest.Builder |
clearCommonRequestParams()
public UpdateBucketRequest.Builder clearCommonRequestParams()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Type | Description |
UpdateBucketRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public UpdateBucketRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
UpdateBucketRequest.Builder |
clearIfMetagenerationMatch()
public UpdateBucketRequest.Builder clearIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
clearIfMetagenerationNotMatch()
public UpdateBucketRequest.Builder clearIfMetagenerationNotMatch()
If set, will only modify the bucket if its metageneration does not match this value.
optional int64 if_metageneration_not_match = 3;
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateBucketRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
UpdateBucketRequest.Builder |
clearPredefinedAcl()
public UpdateBucketRequest.Builder clearPredefinedAcl()
Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8;
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
clearPredefinedDefaultObjectAcl()
public UpdateBucketRequest.Builder clearPredefinedDefaultObjectAcl()
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;
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
clearUpdateMask()
public UpdateBucketRequest.Builder clearUpdateMask()
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Type | Description |
UpdateBucketRequest.Builder |
clone()
public UpdateBucketRequest.Builder clone()
Type | Description |
UpdateBucketRequest.Builder |
getBucket()
public Bucket getBucket()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Type | Description |
Bucket | The bucket. |
getBucketBuilder()
public Bucket.Builder getBucketBuilder()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Type | Description |
Bucket.Builder |
getBucketOrBuilder()
public BucketOrBuilder getBucketOrBuilder()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Type | Description |
BucketOrBuilder |
getCommonRequestParams()
public CommonRequestParams getCommonRequestParams()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Type | Description |
CommonRequestParams | The commonRequestParams. |
getCommonRequestParamsBuilder()
public CommonRequestParams.Builder getCommonRequestParamsBuilder()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Type | Description |
CommonRequestParams.Builder |
getCommonRequestParamsOrBuilder()
public CommonRequestParamsOrBuilder getCommonRequestParamsOrBuilder()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Type | Description |
CommonRequestParamsOrBuilder |
getDefaultInstanceForType()
public UpdateBucketRequest getDefaultInstanceForType()
Type | Description |
UpdateBucketRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getIfMetagenerationMatch()
public long getIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;
Type | Description |
long | The ifMetagenerationMatch. |
getIfMetagenerationNotMatch()
public long getIfMetagenerationNotMatch()
If set, will only modify the bucket if its metageneration does not match this value.
optional int64 if_metageneration_not_match = 3;
Type | Description |
long | The ifMetagenerationNotMatch. |
getPredefinedAcl()
public String getPredefinedAcl()
Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8;
Type | Description |
String | The predefinedAcl. |
getPredefinedAclBytes()
public ByteString getPredefinedAclBytes()
Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8;
Type | Description |
ByteString | The bytes for predefinedAcl. |
getPredefinedDefaultObjectAcl()
public String getPredefinedDefaultObjectAcl()
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;
Type | Description |
String | The predefinedDefaultObjectAcl. |
getPredefinedDefaultObjectAclBytes()
public ByteString getPredefinedDefaultObjectAclBytes()
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;
Type | Description |
ByteString | The bytes for predefinedDefaultObjectAcl. |
getUpdateMask()
public FieldMask getUpdateMask()
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Type | Description |
FieldMask | The updateMask. |
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Type | Description |
Builder |
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Type | Description |
FieldMaskOrBuilder |
hasBucket()
public boolean hasBucket()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Type | Description |
boolean | Whether the bucket field is set. |
hasCommonRequestParams()
public boolean hasCommonRequestParams()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Type | Description |
boolean | Whether the commonRequestParams field is set. |
hasIfMetagenerationMatch()
public boolean hasIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;
Type | Description |
boolean | Whether the ifMetagenerationMatch field is set. |
hasIfMetagenerationNotMatch()
public boolean hasIfMetagenerationNotMatch()
If set, will only modify the bucket if its metageneration does not match this value.
optional int64 if_metageneration_not_match = 3;
Type | Description |
boolean | Whether the ifMetagenerationNotMatch field is set. |
hasUpdateMask()
public boolean hasUpdateMask()
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Type | Description |
boolean | Whether the updateMask field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBucket(Bucket value)
public UpdateBucketRequest.Builder mergeBucket(Bucket value)
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Name | Description |
value | Bucket |
Type | Description |
UpdateBucketRequest.Builder |
mergeCommonRequestParams(CommonRequestParams value)
public UpdateBucketRequest.Builder mergeCommonRequestParams(CommonRequestParams value)
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Name | Description |
value | CommonRequestParams |
Type | Description |
UpdateBucketRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UpdateBucketRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
UpdateBucketRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public UpdateBucketRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
UpdateBucketRequest.Builder |
mergeFrom(UpdateBucketRequest other)
public UpdateBucketRequest.Builder mergeFrom(UpdateBucketRequest other)
Name | Description |
other | UpdateBucketRequest |
Type | Description |
UpdateBucketRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateBucketRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
UpdateBucketRequest.Builder |
mergeUpdateMask(FieldMask value)
public UpdateBucketRequest.Builder mergeUpdateMask(FieldMask value)
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Name | Description |
value | FieldMask |
Type | Description |
UpdateBucketRequest.Builder |
setBucket(Bucket value)
public UpdateBucketRequest.Builder setBucket(Bucket value)
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Name | Description |
value | Bucket |
Type | Description |
UpdateBucketRequest.Builder |
setBucket(Bucket.Builder builderForValue)
public UpdateBucketRequest.Builder setBucket(Bucket.Builder builderForValue)
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Name | Description |
builderForValue | Bucket.Builder |
Type | Description |
UpdateBucketRequest.Builder |
setCommonRequestParams(CommonRequestParams value)
public UpdateBucketRequest.Builder setCommonRequestParams(CommonRequestParams value)
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Name | Description |
value | CommonRequestParams |
Type | Description |
UpdateBucketRequest.Builder |
setCommonRequestParams(CommonRequestParams.Builder builderForValue)
public UpdateBucketRequest.Builder setCommonRequestParams(CommonRequestParams.Builder builderForValue)
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 7;
Name | Description |
builderForValue | CommonRequestParams.Builder |
Type | Description |
UpdateBucketRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateBucketRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
UpdateBucketRequest.Builder |
setIfMetagenerationMatch(long value)
public UpdateBucketRequest.Builder setIfMetagenerationMatch(long value)
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;
Name | Description |
value | long The ifMetagenerationMatch to set. |
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
setIfMetagenerationNotMatch(long value)
public UpdateBucketRequest.Builder setIfMetagenerationNotMatch(long value)
If set, will only modify the bucket if its metageneration does not match this value.
optional int64 if_metageneration_not_match = 3;
Name | Description |
value | long The ifMetagenerationNotMatch to set. |
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
setPredefinedAcl(String value)
public UpdateBucketRequest.Builder setPredefinedAcl(String value)
Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8;
Name | Description |
value | String The predefinedAcl to set. |
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
setPredefinedAclBytes(ByteString value)
public UpdateBucketRequest.Builder setPredefinedAclBytes(ByteString value)
Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8;
Name | Description |
value | ByteString The bytes for predefinedAcl to set. |
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
setPredefinedDefaultObjectAcl(String value)
public UpdateBucketRequest.Builder setPredefinedDefaultObjectAcl(String value)
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;
Name | Description |
value | String The predefinedDefaultObjectAcl to set. |
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
setPredefinedDefaultObjectAclBytes(ByteString value)
public UpdateBucketRequest.Builder setPredefinedDefaultObjectAclBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for predefinedDefaultObjectAcl to set. |
Type | Description |
UpdateBucketRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateBucketRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
UpdateBucketRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateBucketRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
UpdateBucketRequest.Builder |
setUpdateMask(FieldMask value)
public UpdateBucketRequest.Builder setUpdateMask(FieldMask value)
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Name | Description |
value | FieldMask |
Type | Description |
UpdateBucketRequest.Builder |
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateBucketRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
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
may accidentally reset the new field's value.
Not specifying any fields is an error.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Name | Description |
builderForValue | Builder |
Type | Description |
UpdateBucketRequest.Builder |