public final class UpdateBucketRequest extends GeneratedMessageV3 implements UpdateBucketRequestOrBuilder
Request for UpdateBucket method.
Protobuf type google.storage.v2.UpdateBucketRequest
Static Fields
BUCKET_FIELD_NUMBER
public static final int BUCKET_FIELD_NUMBER
Field Value
public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER
Field Value
public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER
Field Value
PREDEFINED_ACL_FIELD_NUMBER
public static final int PREDEFINED_ACL_FIELD_NUMBER
Field Value
PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER
public static final int PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER
Field Value
UPDATE_MASK_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static UpdateBucketRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static UpdateBucketRequest.Builder newBuilder()
Returns
newBuilder(UpdateBucketRequest prototype)
public static UpdateBucketRequest.Builder newBuilder(UpdateBucketRequest prototype)
Parameter
Returns
public static UpdateBucketRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateBucketRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static UpdateBucketRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UpdateBucketRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static UpdateBucketRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UpdateBucketRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateBucketRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static UpdateBucketRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateBucketRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateBucketRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static UpdateBucketRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UpdateBucketRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<UpdateBucketRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBucket()
public Bucket getBucket()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Returns
Type | Description |
Bucket | The bucket.
|
getBucketOrBuilder()
public BucketOrBuilder getBucketOrBuilder()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Returns
getDefaultInstanceForType()
public UpdateBucketRequest getDefaultInstanceForType()
Returns
public long getIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this
value.
optional int64 if_metageneration_match = 2;
Returns
Type | Description |
long | The ifMetagenerationMatch.
|
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;
Returns
Type | Description |
long | The ifMetagenerationNotMatch.
|
getParserForType()
public Parser<UpdateBucketRequest> getParserForType()
Returns
Overrides
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;
Returns
Type | Description |
String | The predefinedAcl.
|
getPredefinedAclBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for predefinedAcl.
|
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;
Returns
Type | Description |
String | The predefinedDefaultObjectAcl.
|
getPredefinedDefaultObjectAclBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for predefinedDefaultObjectAcl.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateMask()
public FieldMask getUpdateMask()
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Returns
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Returns
hasBucket()
public boolean hasBucket()
The bucket to update.
The bucket's name
field will be used to identify the bucket.
.google.storage.v2.Bucket bucket = 1;
Returns
Type | Description |
boolean | Whether the bucket field is set.
|
public boolean hasIfMetagenerationMatch()
If set, will only modify the bucket if its metageneration matches this
value.
optional int64 if_metageneration_match = 2;
Returns
Type | Description |
boolean | Whether the ifMetagenerationMatch field is set.
|
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;
Returns
Type | Description |
boolean | Whether the ifMetagenerationNotMatch field is set.
|
hasUpdateMask()
public boolean hasUpdateMask()
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.
Not specifying a field while setting that field to a non-default value is
an error.
.google.protobuf.FieldMask update_mask = 6;
Returns
Type | Description |
boolean | Whether the updateMask field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public UpdateBucketRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UpdateBucketRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public UpdateBucketRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions