Interface CreateBucketRequestOrBuilder (2.5.1)

public interface CreateBucketRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBucket()

public abstract 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];

Returns
Type Description
Bucket

The bucket.

getBucketId()

public abstract 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];

Returns
Type Description
String

The bucketId.

getBucketIdBytes()

public abstract 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];

Returns
Type Description
ByteString

The bytes for bucketId.

getBucketOrBuilder()

public abstract 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];

Returns
Type Description
BucketOrBuilder

getParent()

public abstract String getParent()

Required. The project to which this bucket will belong.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The project to which this bucket will belong.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getPredefinedAcl()

public abstract PredefinedBucketAcl getPredefinedAcl()

Apply a predefined set of access controls to this bucket.

.google.storage.v2.PredefinedBucketAcl predefined_acl = 4;

Returns
Type Description
PredefinedBucketAcl

The predefinedAcl.

getPredefinedAclValue()

public abstract int getPredefinedAclValue()

Apply a predefined set of access controls to this bucket.

.google.storage.v2.PredefinedBucketAcl predefined_acl = 4;

Returns
Type Description
int

The enum numeric value on the wire for predefinedAcl.

getPredefinedDefaultObjectAcl()

public abstract PredefinedObjectAcl getPredefinedDefaultObjectAcl()

Apply a predefined set of default object access controls to this bucket.

.google.storage.v2.PredefinedObjectAcl predefined_default_object_acl = 5;

Returns
Type Description
PredefinedObjectAcl

The predefinedDefaultObjectAcl.

getPredefinedDefaultObjectAclValue()

public abstract int getPredefinedDefaultObjectAclValue()

Apply a predefined set of default object access controls to this bucket.

.google.storage.v2.PredefinedObjectAcl predefined_default_object_acl = 5;

Returns
Type Description
int

The enum numeric value on the wire for predefinedDefaultObjectAcl.

hasBucket()

public abstract 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];

Returns
Type Description
boolean

Whether the bucket field is set.