Class UpdateBucketRequest.Builder (2.11.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateBucketRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

build()

public UpdateBucketRequest build()
Returns
TypeDescription
UpdateBucketRequest

buildPartial()

public UpdateBucketRequest buildPartial()
Returns
TypeDescription
UpdateBucketRequest

clear()

public UpdateBucketRequest.Builder clear()
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

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;

Returns
TypeDescription
UpdateBucketRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateBucketRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateBucketRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateBucketRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
UpdateBucketRequest.Builder

clone()

public UpdateBucketRequest.Builder clone()
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

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;

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

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

Returns
TypeDescription
BucketOrBuilder

getDefaultInstanceForType()

public UpdateBucketRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateBucketRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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;

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

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

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

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

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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;

Parameter
NameDescription
valueBucket
Returns
TypeDescription
UpdateBucketRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateBucketRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateBucketRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

mergeFrom(UpdateBucketRequest other)

public UpdateBucketRequest.Builder mergeFrom(UpdateBucketRequest other)
Parameter
NameDescription
otherUpdateBucketRequest
Returns
TypeDescription
UpdateBucketRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBucketRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

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;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
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;

Parameter
NameDescription
valueBucket
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueBucket.Builder
Returns
TypeDescription
UpdateBucketRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateBucketRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The ifMetagenerationMatch to set.

Returns
TypeDescription
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
NameDescription
valuelong

The ifMetagenerationNotMatch to set.

Returns
TypeDescription
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
NameDescription
valueString

The predefinedAcl to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for predefinedAcl to set.

Returns
TypeDescription
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
NameDescription
valueString

The predefinedDefaultObjectAcl to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for predefinedDefaultObjectAcl to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBucketRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

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;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateBucketRequest.Builder