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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • getDefaultInstanceForType

      public UpdateBucketRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UpdateBucketRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UpdateBucketRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • setField

      public UpdateBucketRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • clearField

      public UpdateBucketRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • clearOneof

      public UpdateBucketRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • setRepeatedField

      public UpdateBucketRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • addRepeatedField

      public UpdateBucketRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • mergeFrom

      public UpdateBucketRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateBucketRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasBucket in interface UpdateBucketRequestOrBuilder
      Returns:
      Whether the bucket field is set.
    • 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];
      Specified by:
      getBucket in interface UpdateBucketRequestOrBuilder
      Returns:
      The bucket.
    • setBucket

      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];
    • setBucket

      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];
    • mergeBucket

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getBucketOrBuilder in interface UpdateBucketRequestOrBuilder
    • 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:
      hasIfMetagenerationMatch in interface UpdateBucketRequestOrBuilder
      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:
      getIfMetagenerationMatch in interface UpdateBucketRequestOrBuilder
      Returns:
      The ifMetagenerationMatch.
    • setIfMetagenerationMatch

      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;
      Parameters:
      value - The ifMetagenerationMatch to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasIfMetagenerationNotMatch in interface UpdateBucketRequestOrBuilder
      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:
      getIfMetagenerationNotMatch in interface UpdateBucketRequestOrBuilder
      Returns:
      The ifMetagenerationNotMatch.
    • setIfMetagenerationNotMatch

      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;
      Parameters:
      value - The ifMetagenerationNotMatch to set.
      Returns:
      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:
      This builder for chaining.
    • 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;
      Specified by:
      getPredefinedAcl in interface UpdateBucketRequestOrBuilder
      Returns:
      The predefinedAcl.
    • getPredefinedAclBytes

      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;
      Specified by:
      getPredefinedAclBytes in interface UpdateBucketRequestOrBuilder
      Returns:
      The bytes for predefinedAcl.
    • setPredefinedAcl

      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;
      Parameters:
      value - The predefinedAcl to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setPredefinedAclBytes

      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;
      Parameters:
      value - The bytes for predefinedAcl to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getPredefinedDefaultObjectAcl in interface UpdateBucketRequestOrBuilder
      Returns:
      The predefinedDefaultObjectAcl.
    • getPredefinedDefaultObjectAclBytes

      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;
      Specified by:
      getPredefinedDefaultObjectAclBytes in interface UpdateBucketRequestOrBuilder
      Returns:
      The bytes for predefinedDefaultObjectAcl.
    • setPredefinedDefaultObjectAcl

      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;
      Parameters:
      value - The predefinedDefaultObjectAcl to set.
      Returns:
      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:
      This builder for chaining.
    • setPredefinedDefaultObjectAclBytes

      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;
      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:
      hasUpdateMask in interface UpdateBucketRequestOrBuilder
      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:
      getUpdateMask in interface UpdateBucketRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

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

      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];
    • 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];
    • 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:
      getUpdateMaskOrBuilder in interface UpdateBucketRequestOrBuilder
    • setUnknownFields

      public final UpdateBucketRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>
    • mergeUnknownFields

      public final UpdateBucketRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateBucketRequest.Builder>