Class UpdateBucketRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<UpdateBucketRequest.Builder> implements UpdateBucketRequestOrBuilder
 Request for [UpdateBucket][google.storage.v2.Storage.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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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.GeneratedMessage.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 is 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 is 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 is 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 is 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 is 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 is 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 is 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 is 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, the request modifies 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, the request modifies 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, the request modifies 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, the request modifies 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, the request modifies the bucket if its metageneration doesn't
       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, the request modifies the bucket if its metageneration doesn't
       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, the request modifies the bucket if its metageneration doesn't
       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, the request modifies the bucket if its metageneration doesn't
       match this value.
       
      optional int64 if_metageneration_not_match = 3;
      Returns:
      This builder for chaining.
    • getPredefinedAcl

      public String 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:
      getPredefinedAcl in interface UpdateBucketRequestOrBuilder
      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:
      getPredefinedAclBytes in interface UpdateBucketRequestOrBuilder
      Returns:
      The bytes for predefinedAcl.
    • setPredefinedAcl

      public UpdateBucketRequest.Builder setPredefinedAcl(String value)
       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

      public UpdateBucketRequest.Builder 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

      public UpdateBucketRequest.Builder setPredefinedAclBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getPredefinedDefaultObjectAcl in interface UpdateBucketRequestOrBuilder
      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:
      getPredefinedDefaultObjectAclBytes in interface UpdateBucketRequestOrBuilder
      Returns:
      The bytes for predefinedDefaultObjectAcl.
    • setPredefinedDefaultObjectAcl

      public UpdateBucketRequest.Builder setPredefinedDefaultObjectAcl(String 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 predefinedDefaultObjectAcl to set.
      Returns:
      This builder for chaining.
    • clearPredefinedDefaultObjectAcl

      public UpdateBucketRequest.Builder 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 `*`
       might 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 `*`
       might 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 `*`
       might 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 `*`
       might 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 `*`
       might 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 `*`
       might 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 `*`
       might 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 `*`
       might 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