Class UpdateBucketRequest.Builder (2.36.1)

public static final class UpdateBucketRequest.Builder extends GeneratedMessageV3.Builder<UpdateBucketRequest.Builder> implements UpdateBucketRequestOrBuilder

Request for UpdateBucket method.

Protobuf type google.storage.v2.UpdateBucketRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateBucketRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

build()

public UpdateBucketRequest build()
Returns
Type Description
UpdateBucketRequest

buildPartial()

public UpdateBucketRequest buildPartial()
Returns
Type Description
UpdateBucketRequest

clear()

public UpdateBucketRequest.Builder clear()
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

clearBucket()

public UpdateBucketRequest.Builder clearBucket()

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateBucketRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateBucketRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

clearIfMetagenerationMatch()

public UpdateBucketRequest.Builder clearIfMetagenerationMatch()

If set, will only modify the bucket if its metageneration matches this value.

optional int64 if_metageneration_match = 2;

Returns
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;

Returns
Type Description
UpdateBucketRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateBucketRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

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;

Returns
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;

Returns
Type Description
UpdateBucketRequest.Builder

This builder for chaining.

clearUpdateMask()

public UpdateBucketRequest.Builder 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 may 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];

Returns
Type Description
UpdateBucketRequest.Builder

clone()

public UpdateBucketRequest.Builder clone()
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

getBucket()

public Bucket getBucket()

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Bucket

The bucket.

getBucketBuilder()

public Bucket.Builder getBucketBuilder()

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Bucket.Builder

getBucketOrBuilder()

public BucketOrBuilder getBucketOrBuilder()

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BucketOrBuilder

getDefaultInstanceForType()

public UpdateBucketRequest getDefaultInstanceForType()
Returns
Type Description
UpdateBucketRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIfMetagenerationMatch()

public long getIfMetagenerationMatch()

If set, will only modify the bucket if its metageneration matches this value.

optional int64 if_metageneration_match = 2;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
Type Description
ByteString

The bytes for predefinedDefaultObjectAcl.

getUpdateMask()

public 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 may 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];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public 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 may 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];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public 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 may 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];

Returns
Type Description
FieldMaskOrBuilder

hasBucket()

public boolean hasBucket()

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the bucket 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;

Returns
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;

Returns
Type Description
boolean

Whether the ifMetagenerationNotMatch field is set.

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 may 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];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBucket(Bucket value)

public UpdateBucketRequest.Builder mergeBucket(Bucket value)

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Bucket
Returns
Type Description
UpdateBucketRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateBucketRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateBucketRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateBucketRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

mergeFrom(UpdateBucketRequest other)

public UpdateBucketRequest.Builder mergeFrom(UpdateBucketRequest other)
Parameter
Name Description
other UpdateBucketRequest
Returns
Type Description
UpdateBucketRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBucketRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateBucketRequest.Builder mergeUpdateMask(FieldMask value)

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 may 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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBucketRequest.Builder

setBucket(Bucket value)

public UpdateBucketRequest.Builder setBucket(Bucket value)

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Bucket
Returns
Type Description
UpdateBucketRequest.Builder

setBucket(Bucket.Builder builderForValue)

public UpdateBucketRequest.Builder setBucket(Bucket.Builder builderForValue)

Required. The bucket to update. The bucket's name field will be used to identify the bucket.

.google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Bucket.Builder
Returns
Type Description
UpdateBucketRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateBucketRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

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;

Parameter
Name Description
value long

The ifMetagenerationMatch to set.

Returns
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;

Parameter
Name Description
value long

The ifMetagenerationNotMatch to set.

Returns
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;

Parameter
Name Description
value String

The predefinedAcl to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for predefinedAcl to set.

Returns
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;

Parameter
Name Description
value String

The predefinedDefaultObjectAcl to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for predefinedDefaultObjectAcl to set.

Returns
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)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBucketRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateBucketRequest.Builder setUpdateMask(FieldMask value)

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 may 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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBucketRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateBucketRequest.Builder setUpdateMask(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 may 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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateBucketRequest.Builder