Class UpdateBucketRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.UpdateBucketRequest
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UpdateBucketRequestOrBuilder, Serializable

public final class UpdateBucketRequest extends com.google.protobuf.GeneratedMessageV3 implements UpdateBucketRequestOrBuilder
 Request for UpdateBucket method.
 
Protobuf type google.storage.v2.UpdateBucketRequest
See Also:
  • Field Details

    • BUCKET_FIELD_NUMBER

      public static final int BUCKET_FIELD_NUMBER
      See Also:
    • IF_METAGENERATION_MATCH_FIELD_NUMBER

      public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER
      See Also:
    • IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER

      public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER
      See Also:
    • PREDEFINED_ACL_FIELD_NUMBER

      public static final int PREDEFINED_ACL_FIELD_NUMBER
      See Also:
    • PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER

      public static final int PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER
      See Also:
    • UPDATE_MASK_FIELD_NUMBER

      public static final int UPDATE_MASK_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static UpdateBucketRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateBucketRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateBucketRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateBucketRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateBucketRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static UpdateBucketRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UpdateBucketRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UpdateBucketRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static UpdateBucketRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UpdateBucketRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static UpdateBucketRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static UpdateBucketRequest.Builder newBuilder()
    • newBuilder

      public static UpdateBucketRequest.Builder newBuilder(UpdateBucketRequest prototype)
    • toBuilder

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

      protected UpdateBucketRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static UpdateBucketRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<UpdateBucketRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<UpdateBucketRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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