Package com.google.storage.v2
Class UpdateBucketRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
com.google.storage.v2.UpdateBucketRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UpdateBucketRequestOrBuilder,Cloneable
- Enclosing class:
- UpdateBucketRequest
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If set, will only modify the bucket if its metageneration matches this value.If set, will only modify the bucket if its metageneration does not match this value.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional.Optional.Required.clone()Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongIf set, will only modify the bucket if its metageneration matches this value.longIf set, will only modify the bucket if its metageneration does not match this value.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.FieldMaskRequired.com.google.protobuf.FieldMask.BuilderRequired.com.google.protobuf.FieldMaskOrBuilderRequired.booleanRequired.booleanIf set, will only modify the bucket if its metageneration matches this value.booleanIf set, will only modify the bucket if its metageneration does not match this value.booleanRequired.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeBucket(Bucket value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(UpdateBucketRequest other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateMask(com.google.protobuf.FieldMask value) Required.Required.setBucket(Bucket.Builder builderForValue) Required.setIfMetagenerationMatch(long value) If set, will only modify the bucket if its metageneration matches this value.setIfMetagenerationNotMatch(long value) If set, will only modify the bucket if its metageneration does not match this value.setPredefinedAcl(String value) Optional.setPredefinedAclBytes(com.google.protobuf.ByteString value) Optional.Optional.setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) Optional.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateMask(com.google.protobuf.FieldMask value) Required.setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
setField
public UpdateBucketRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
clearField
public UpdateBucketRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
clearOneof
public UpdateBucketRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
setRepeatedField
public UpdateBucketRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
addRepeatedField
public UpdateBucketRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateBucketRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
mergeFrom
public UpdateBucketRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateBucketRequest.Builder>- Throws:
IOException
-
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];- Specified by:
hasBucketin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the bucket field is set.
-
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];- Specified by:
getBucketin interfaceUpdateBucketRequestOrBuilder- Returns:
- The bucket.
-
setBucket
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]; -
setBucket
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]; -
mergeBucket
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]; -
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]; -
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]; -
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];- Specified by:
getBucketOrBuilderin interfaceUpdateBucketRequestOrBuilder
-
hasIfMetagenerationMatch
public boolean hasIfMetagenerationMatch()If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Specified by:
hasIfMetagenerationMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the ifMetagenerationMatch field is set.
-
getIfMetagenerationMatch
public long getIfMetagenerationMatch()If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Specified by:
getIfMetagenerationMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- The ifMetagenerationMatch.
-
setIfMetagenerationMatch
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Parameters:
value- The ifMetagenerationMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationMatch
If set, will only modify the bucket if its metageneration matches this value.
optional int64 if_metageneration_match = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasIfMetagenerationNotMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the ifMetagenerationNotMatch field is set.
-
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;- Specified by:
getIfMetagenerationNotMatchin interfaceUpdateBucketRequestOrBuilder- Returns:
- The ifMetagenerationNotMatch.
-
setIfMetagenerationNotMatch
If set, will only modify the bucket if its metageneration does not match this value.
optional int64 if_metageneration_not_match = 3;- Parameters:
value- The ifMetagenerationNotMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationNotMatch
If set, will only modify the bucket if its metageneration does not match this value.
optional int64 if_metageneration_not_match = 3;- Returns:
- This builder for chaining.
-
getPredefinedAcl
Optional. Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedAclin interfaceUpdateBucketRequestOrBuilder- Returns:
- The predefinedAcl.
-
getPredefinedAclBytes
public com.google.protobuf.ByteString getPredefinedAclBytes()Optional. Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedAclBytesin interfaceUpdateBucketRequestOrBuilder- Returns:
- The bytes for predefinedAcl.
-
setPredefinedAcl
Optional. Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The predefinedAcl to set.- Returns:
- This builder for chaining.
-
clearPredefinedAcl
Optional. Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPredefinedAclBytes
Optional. Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for predefinedAcl to set.- Returns:
- This builder for chaining.
-
getPredefinedDefaultObjectAcl
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedDefaultObjectAclin interfaceUpdateBucketRequestOrBuilder- Returns:
- The predefinedDefaultObjectAcl.
-
getPredefinedDefaultObjectAclBytes
public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPredefinedDefaultObjectAclBytesin interfaceUpdateBucketRequestOrBuilder- Returns:
- The bytes for predefinedDefaultObjectAcl.
-
setPredefinedDefaultObjectAcl
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The predefinedDefaultObjectAcl to set.- Returns:
- This builder for chaining.
-
clearPredefinedDefaultObjectAcl
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPredefinedDefaultObjectAclBytes
public UpdateBucketRequest.Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for predefinedDefaultObjectAcl to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasUpdateMaskin interfaceUpdateBucketRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
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];- Specified by:
getUpdateMaskin interfaceUpdateBucketRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
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]; -
setUpdateMask
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]; -
mergeUpdateMask
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]; -
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]; -
getUpdateMaskBuilder
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]; -
getUpdateMaskOrBuilder
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];- Specified by:
getUpdateMaskOrBuilderin interfaceUpdateBucketRequestOrBuilder
-
setUnknownFields
public final UpdateBucketRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-
mergeUnknownFields
public final UpdateBucketRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
-