public static final class UpdateBucketRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder> implements UpdateBucketRequestOrBuilder
Request for UpdateBucket method.Protobuf type
google.storage.v2.UpdateBucketRequest
Modifier and Type | Method and Description |
---|---|
UpdateBucketRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateBucketRequest |
build() |
UpdateBucketRequest |
buildPartial() |
UpdateBucketRequest.Builder |
clear() |
UpdateBucketRequest.Builder |
clearBucket()
Required.
|
UpdateBucketRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
UpdateBucketRequest.Builder |
clearIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this
value.
|
UpdateBucketRequest.Builder |
clearIfMetagenerationNotMatch()
If set, will only modify the bucket if its metageneration does not match
this value.
|
UpdateBucketRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
UpdateBucketRequest.Builder |
clearPredefinedAcl()
Apply a predefined set of access controls to this bucket.
|
UpdateBucketRequest.Builder |
clearPredefinedDefaultObjectAcl()
Apply a predefined set of default object access controls to this bucket.
|
UpdateBucketRequest.Builder |
clearUpdateMask()
Required.
|
UpdateBucketRequest.Builder |
clone() |
Bucket |
getBucket()
Required.
|
Bucket.Builder |
getBucketBuilder()
Required.
|
BucketOrBuilder |
getBucketOrBuilder()
Required.
|
UpdateBucketRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this
value.
|
long |
getIfMetagenerationNotMatch()
If set, will only modify the bucket if its metageneration does not match
this value.
|
String |
getPredefinedAcl()
Apply a predefined set of access controls to this bucket.
|
com.google.protobuf.ByteString |
getPredefinedAclBytes()
Apply a predefined set of access controls to this bucket.
|
String |
getPredefinedDefaultObjectAcl()
Apply a predefined set of default object access controls to this bucket.
|
com.google.protobuf.ByteString |
getPredefinedDefaultObjectAclBytes()
Apply a predefined set of default object access controls to this bucket.
|
com.google.protobuf.FieldMask |
getUpdateMask()
Required.
|
com.google.protobuf.FieldMask.Builder |
getUpdateMaskBuilder()
Required.
|
com.google.protobuf.FieldMaskOrBuilder |
getUpdateMaskOrBuilder()
Required.
|
boolean |
hasBucket()
Required.
|
boolean |
hasIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this
value.
|
boolean |
hasIfMetagenerationNotMatch()
If set, will only modify the bucket if its metageneration does not match
this value.
|
boolean |
hasUpdateMask()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UpdateBucketRequest.Builder |
mergeBucket(Bucket value)
Required.
|
UpdateBucketRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UpdateBucketRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
UpdateBucketRequest.Builder |
mergeFrom(UpdateBucketRequest other) |
UpdateBucketRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateBucketRequest.Builder |
mergeUpdateMask(com.google.protobuf.FieldMask value)
Required.
|
UpdateBucketRequest.Builder |
setBucket(Bucket.Builder builderForValue)
Required.
|
UpdateBucketRequest.Builder |
setBucket(Bucket value)
Required.
|
UpdateBucketRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateBucketRequest.Builder |
setIfMetagenerationMatch(long value)
If set, will only modify the bucket if its metageneration matches this
value.
|
UpdateBucketRequest.Builder |
setIfMetagenerationNotMatch(long value)
If set, will only modify the bucket if its metageneration does not match
this value.
|
UpdateBucketRequest.Builder |
setPredefinedAcl(String value)
Apply a predefined set of access controls to this bucket.
|
UpdateBucketRequest.Builder |
setPredefinedAclBytes(com.google.protobuf.ByteString value)
Apply a predefined set of access controls to this bucket.
|
UpdateBucketRequest.Builder |
setPredefinedDefaultObjectAcl(String value)
Apply a predefined set of default object access controls to this bucket.
|
UpdateBucketRequest.Builder |
setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value)
Apply a predefined set of default object access controls to this bucket.
|
UpdateBucketRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
UpdateBucketRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateBucketRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Required.
|
UpdateBucketRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public UpdateBucketRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public UpdateBucketRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public UpdateBucketRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder mergeFrom(UpdateBucketRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public UpdateBucketRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UpdateBucketRequest.Builder>
IOException
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];
hasBucket
in interface UpdateBucketRequestOrBuilder
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];
getBucket
in interface UpdateBucketRequestOrBuilder
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];
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];
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];
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];
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];
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];
getBucketOrBuilder
in interface UpdateBucketRequestOrBuilder
public boolean hasIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;
hasIfMetagenerationMatch
in interface UpdateBucketRequestOrBuilder
public long getIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;
getIfMetagenerationMatch
in interface UpdateBucketRequestOrBuilder
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;
value
- The ifMetagenerationMatch to set.public UpdateBucketRequest.Builder clearIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;
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;
hasIfMetagenerationNotMatch
in interface UpdateBucketRequestOrBuilder
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;
getIfMetagenerationNotMatch
in interface UpdateBucketRequestOrBuilder
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;
value
- The ifMetagenerationNotMatch to set.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;
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;
getPredefinedAcl
in interface UpdateBucketRequestOrBuilder
public com.google.protobuf.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;
getPredefinedAclBytes
in interface UpdateBucketRequestOrBuilder
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;
value
- The predefinedAcl to set.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;
public UpdateBucketRequest.Builder setPredefinedAclBytes(com.google.protobuf.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;
value
- The bytes for predefinedAcl to set.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;
getPredefinedDefaultObjectAcl
in interface UpdateBucketRequestOrBuilder
public com.google.protobuf.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;
getPredefinedDefaultObjectAclBytes
in interface UpdateBucketRequestOrBuilder
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;
value
- The predefinedDefaultObjectAcl to set.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;
public UpdateBucketRequest.Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.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;
value
- The bytes for predefinedDefaultObjectAcl to set.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];
hasUpdateMask
in interface UpdateBucketRequestOrBuilder
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 `*` 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];
getUpdateMask
in interface UpdateBucketRequestOrBuilder
public UpdateBucketRequest.Builder setUpdateMask(com.google.protobuf.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];
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 `*` 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];
public UpdateBucketRequest.Builder mergeUpdateMask(com.google.protobuf.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];
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];
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 `*` 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];
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 `*` 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];
getUpdateMaskOrBuilder
in interface UpdateBucketRequestOrBuilder
public final UpdateBucketRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
public final UpdateBucketRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.