public static final class CreateBucketRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder> implements CreateBucketRequestOrBuilder
Request message for CreateBucket.Protobuf type
google.storage.v2.CreateBucketRequest
Modifier and Type | Method and Description |
---|---|
CreateBucketRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateBucketRequest |
build() |
CreateBucketRequest |
buildPartial() |
CreateBucketRequest.Builder |
clear() |
CreateBucketRequest.Builder |
clearBucket()
Properties of the new bucket being inserted.
|
CreateBucketRequest.Builder |
clearBucketId()
Required.
|
CreateBucketRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CreateBucketRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CreateBucketRequest.Builder |
clearParent()
Required.
|
CreateBucketRequest.Builder |
clearPredefinedAcl()
Apply a predefined set of access controls to this bucket.
|
CreateBucketRequest.Builder |
clearPredefinedDefaultObjectAcl()
Apply a predefined set of default object access controls to this bucket.
|
CreateBucketRequest.Builder |
clone() |
Bucket |
getBucket()
Properties of the new bucket being inserted.
|
Bucket.Builder |
getBucketBuilder()
Properties of the new bucket being inserted.
|
String |
getBucketId()
Required.
|
com.google.protobuf.ByteString |
getBucketIdBytes()
Required.
|
BucketOrBuilder |
getBucketOrBuilder()
Properties of the new bucket being inserted.
|
CreateBucketRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
String |
getPredefinedAcl()
Apply a predefined set of access controls to this bucket.
|
com.google.protobuf.ByteString |
getPredefinedAclBytes()
Apply a predefined set of access controls to this bucket.
|
String |
getPredefinedDefaultObjectAcl()
Apply a predefined set of default object access controls to this bucket.
|
com.google.protobuf.ByteString |
getPredefinedDefaultObjectAclBytes()
Apply a predefined set of default object access controls to this bucket.
|
boolean |
hasBucket()
Properties of the new bucket being inserted.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CreateBucketRequest.Builder |
mergeBucket(Bucket value)
Properties of the new bucket being inserted.
|
CreateBucketRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CreateBucketRequest.Builder |
mergeFrom(CreateBucketRequest other) |
CreateBucketRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CreateBucketRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CreateBucketRequest.Builder |
setBucket(Bucket.Builder builderForValue)
Properties of the new bucket being inserted.
|
CreateBucketRequest.Builder |
setBucket(Bucket value)
Properties of the new bucket being inserted.
|
CreateBucketRequest.Builder |
setBucketId(String value)
Required.
|
CreateBucketRequest.Builder |
setBucketIdBytes(com.google.protobuf.ByteString value)
Required.
|
CreateBucketRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CreateBucketRequest.Builder |
setParent(String value)
Required.
|
CreateBucketRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
CreateBucketRequest.Builder |
setPredefinedAcl(String value)
Apply a predefined set of access controls to this bucket.
|
CreateBucketRequest.Builder |
setPredefinedAclBytes(com.google.protobuf.ByteString value)
Apply a predefined set of access controls to this bucket.
|
CreateBucketRequest.Builder |
setPredefinedDefaultObjectAcl(String value)
Apply a predefined set of default object access controls to this bucket.
|
CreateBucketRequest.Builder |
setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value)
Apply a predefined set of default object access controls to this bucket.
|
CreateBucketRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CreateBucketRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CreateBucketRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CreateBucketRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CreateBucketRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder mergeFrom(CreateBucketRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public CreateBucketRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CreateBucketRequest.Builder>
IOException
public String getParent()
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface CreateBucketRequestOrBuilder
public com.google.protobuf.ByteString getParentBytes()
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface CreateBucketRequestOrBuilder
public CreateBucketRequest.Builder setParent(String value)
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The parent to set.public CreateBucketRequest.Builder clearParent()
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateBucketRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for parent to set.public boolean hasBucket()
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
hasBucket
in interface CreateBucketRequestOrBuilder
public Bucket getBucket()
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
getBucket
in interface CreateBucketRequestOrBuilder
public CreateBucketRequest.Builder setBucket(Bucket value)
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
public CreateBucketRequest.Builder setBucket(Bucket.Builder builderForValue)
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
public CreateBucketRequest.Builder mergeBucket(Bucket value)
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
public CreateBucketRequest.Builder clearBucket()
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
public Bucket.Builder getBucketBuilder()
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
public BucketOrBuilder getBucketOrBuilder()
Properties of the new bucket being inserted. The name of the bucket is specified in the `bucket_id` field. Populating `bucket.name` field will be ignored. The project of the bucket must be specified in the `bucket.project` field. This field must be in `projects/{projectIdentifier}` format, {projectIdentifier} can be the project ID or project number. The `parent` field must be either empty or `projects/_`.
.google.storage.v2.Bucket bucket = 2;
getBucketOrBuilder
in interface CreateBucketRequestOrBuilder
public String getBucketId()
Required. The ID to use for this bucket, which will become the final component of the bucket's resource name. For example, the value `foo` might result in a bucket with the name `projects/123456/buckets/foo`.
string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED];
getBucketId
in interface CreateBucketRequestOrBuilder
public com.google.protobuf.ByteString getBucketIdBytes()
Required. The ID to use for this bucket, which will become the final component of the bucket's resource name. For example, the value `foo` might result in a bucket with the name `projects/123456/buckets/foo`.
string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED];
getBucketIdBytes
in interface CreateBucketRequestOrBuilder
public CreateBucketRequest.Builder setBucketId(String value)
Required. The ID to use for this bucket, which will become the final component of the bucket's resource name. For example, the value `foo` might result in a bucket with the name `projects/123456/buckets/foo`.
string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The bucketId to set.public CreateBucketRequest.Builder clearBucketId()
Required. The ID to use for this bucket, which will become the final component of the bucket's resource name. For example, the value `foo` might result in a bucket with the name `projects/123456/buckets/foo`.
string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED];
public CreateBucketRequest.Builder setBucketIdBytes(com.google.protobuf.ByteString value)
Required. The ID to use for this bucket, which will become the final component of the bucket's resource name. For example, the value `foo` might result in a bucket with the name `projects/123456/buckets/foo`.
string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for bucketId to set.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 = 6;
getPredefinedAcl
in interface CreateBucketRequestOrBuilder
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 = 6;
getPredefinedAclBytes
in interface CreateBucketRequestOrBuilder
public CreateBucketRequest.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 = 6;
value
- The predefinedAcl to set.public CreateBucketRequest.Builder clearPredefinedAcl()
Apply a predefined set of access controls to this bucket. Valid values are "authenticatedRead", "private", "projectPrivate", "publicRead", or "publicReadWrite".
string predefined_acl = 6;
public CreateBucketRequest.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 = 6;
value
- The bytes for predefinedAcl to set.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 = 7;
getPredefinedDefaultObjectAcl
in interface CreateBucketRequestOrBuilder
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 = 7;
getPredefinedDefaultObjectAclBytes
in interface CreateBucketRequestOrBuilder
public CreateBucketRequest.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 = 7;
value
- The predefinedDefaultObjectAcl to set.public CreateBucketRequest.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 = 7;
public CreateBucketRequest.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 = 7;
value
- The bytes for predefinedDefaultObjectAcl to set.public final CreateBucketRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
public final CreateBucketRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBucketRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.