public static final class CreateBucketRequest.Builder extends GeneratedMessageV3.Builder<CreateBucketRequest.Builder> implements CreateBucketRequestOrBuilder
Request message for CreateBucket.
Protobuf type google.storage.v2.CreateBucketRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateBucketRequest.BuilderImplements
CreateBucketRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBucketRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateBucketRequest.Builder |
build()
public CreateBucketRequest build()
Type | Description |
CreateBucketRequest |
buildPartial()
public CreateBucketRequest buildPartial()
Type | Description |
CreateBucketRequest |
clear()
public CreateBucketRequest.Builder clear()
Type | Description |
CreateBucketRequest.Builder |
clearBucket()
public CreateBucketRequest.Builder clearBucket()
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CreateBucketRequest.Builder |
clearBucketId()
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];
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateBucketRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CreateBucketRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBucketRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CreateBucketRequest.Builder |
clearParent()
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) = { ... }
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
clearPredefinedAcl()
public CreateBucketRequest.Builder clearPredefinedAcl()
Apply a predefined set of access controls to this bucket.
.google.storage.v2.PredefinedBucketAcl predefined_acl = 4;
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
clearPredefinedDefaultObjectAcl()
public CreateBucketRequest.Builder clearPredefinedDefaultObjectAcl()
Apply a predefined set of default object access controls to this bucket.
.google.storage.v2.PredefinedObjectAcl predefined_default_object_acl = 5;
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
clone()
public CreateBucketRequest.Builder clone()
Type | Description |
CreateBucketRequest.Builder |
getBucket()
public Bucket getBucket()
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Bucket | The bucket. |
getBucketBuilder()
public Bucket.Builder getBucketBuilder()
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Bucket.Builder |
getBucketId()
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];
Type | Description |
String | The bucketId. |
getBucketIdBytes()
public 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];
Type | Description |
ByteString | The bytes for bucketId. |
getBucketOrBuilder()
public BucketOrBuilder getBucketOrBuilder()
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
BucketOrBuilder |
getDefaultInstanceForType()
public CreateBucketRequest getDefaultInstanceForType()
Type | Description |
CreateBucketRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getPredefinedAcl()
public PredefinedBucketAcl getPredefinedAcl()
Apply a predefined set of access controls to this bucket.
.google.storage.v2.PredefinedBucketAcl predefined_acl = 4;
Type | Description |
PredefinedBucketAcl | The predefinedAcl. |
getPredefinedAclValue()
public int getPredefinedAclValue()
Apply a predefined set of access controls to this bucket.
.google.storage.v2.PredefinedBucketAcl predefined_acl = 4;
Type | Description |
int | The enum numeric value on the wire for predefinedAcl. |
getPredefinedDefaultObjectAcl()
public PredefinedObjectAcl getPredefinedDefaultObjectAcl()
Apply a predefined set of default object access controls to this bucket.
.google.storage.v2.PredefinedObjectAcl predefined_default_object_acl = 5;
Type | Description |
PredefinedObjectAcl | The predefinedDefaultObjectAcl. |
getPredefinedDefaultObjectAclValue()
public int getPredefinedDefaultObjectAclValue()
Apply a predefined set of default object access controls to this bucket.
.google.storage.v2.PredefinedObjectAcl predefined_default_object_acl = 5;
Type | Description |
int | The enum numeric value on the wire for predefinedDefaultObjectAcl. |
hasBucket()
public boolean hasBucket()
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the bucket field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBucket(Bucket value)
public CreateBucketRequest.Builder mergeBucket(Bucket value)
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Bucket |
Type | Description |
CreateBucketRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateBucketRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateBucketRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CreateBucketRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CreateBucketRequest.Builder |
mergeFrom(CreateBucketRequest other)
public CreateBucketRequest.Builder mergeFrom(CreateBucketRequest other)
Name | Description |
other | CreateBucketRequest |
Type | Description |
CreateBucketRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBucketRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateBucketRequest.Builder |
setBucket(Bucket value)
public CreateBucketRequest.Builder setBucket(Bucket value)
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Bucket |
Type | Description |
CreateBucketRequest.Builder |
setBucket(Bucket.Builder builderForValue)
public CreateBucketRequest.Builder setBucket(Bucket.Builder builderForValue)
Required. Properties of the new bucket being inserted. The project and name of the bucket are specified in this request, not in the bucket resource.
.google.storage.v2.Bucket bucket = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Bucket.Builder |
Type | Description |
CreateBucketRequest.Builder |
setBucketId(String value)
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];
Name | Description |
value | String The bucketId to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setBucketIdBytes(ByteString value)
public CreateBucketRequest.Builder setBucketIdBytes(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];
Name | Description |
value | ByteString The bytes for bucketId to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBucketRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateBucketRequest.Builder |
setParent(String value)
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) = { ... }
Name | Description |
value | String The parent to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public CreateBucketRequest.Builder setParentBytes(ByteString value)
Required. The project to which this bucket will belong.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setPredefinedAcl(PredefinedBucketAcl value)
public CreateBucketRequest.Builder setPredefinedAcl(PredefinedBucketAcl value)
Apply a predefined set of access controls to this bucket.
.google.storage.v2.PredefinedBucketAcl predefined_acl = 4;
Name | Description |
value | PredefinedBucketAcl The predefinedAcl to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setPredefinedAclValue(int value)
public CreateBucketRequest.Builder setPredefinedAclValue(int value)
Apply a predefined set of access controls to this bucket.
.google.storage.v2.PredefinedBucketAcl predefined_acl = 4;
Name | Description |
value | int The enum numeric value on the wire for predefinedAcl to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setPredefinedDefaultObjectAcl(PredefinedObjectAcl value)
public CreateBucketRequest.Builder setPredefinedDefaultObjectAcl(PredefinedObjectAcl value)
Apply a predefined set of default object access controls to this bucket.
.google.storage.v2.PredefinedObjectAcl predefined_default_object_acl = 5;
Name | Description |
value | PredefinedObjectAcl The predefinedDefaultObjectAcl to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setPredefinedDefaultObjectAclValue(int value)
public CreateBucketRequest.Builder setPredefinedDefaultObjectAclValue(int value)
Apply a predefined set of default object access controls to this bucket.
.google.storage.v2.PredefinedObjectAcl predefined_default_object_acl = 5;
Name | Description |
value | int The enum numeric value on the wire for predefinedDefaultObjectAcl to set. |
Type | Description |
CreateBucketRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBucketRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CreateBucketRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBucketRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateBucketRequest.Builder |