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()
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];
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()
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
UpdateBucketRequest.Builder |
clone()
public UpdateBucketRequest.Builder clone()
Type | Description |
UpdateBucketRequest.Builder |
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];
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];
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];
Type | Description |
BucketOrBuilder |
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()
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
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];
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;
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()
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
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)
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];
Name | Description |
value | Bucket |
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)
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | FieldMask |
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];
Name | Description |
value | Bucket |
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];
Name | Description |
builderForValue | Bucket.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)
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | FieldMask |
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Builder |
Type | Description |
UpdateBucketRequest.Builder |