Interface CreateBucketRequestOrBuilder (3.16.2)

public interface CreateBucketRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBucket()

public abstract LogBucket getBucket()

Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored.

.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogBucket

The bucket.

getBucketId()

public abstract String getBucketId()

Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The bucketId.

getBucketIdBytes()

public abstract ByteString getBucketIdBytes()

Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for bucketId.

getBucketOrBuilder()

public abstract LogBucketOrBuilder getBucketOrBuilder()

Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored.

.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogBucketOrBuilder

getParent()

public abstract String getParent()

Required. The resource in which to create the log bucket:

 "projects/[PROJECT_ID]/locations/[LOCATION_ID]"

For example:

"projects/my-project/locations/global"

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The resource in which to create the log bucket:

 "projects/[PROJECT_ID]/locations/[LOCATION_ID]"

For example:

"projects/my-project/locations/global"

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasBucket()

public abstract boolean hasBucket()

Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored.

.google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the bucket field is set.