Class CreateBucketRequest.Builder (3.15.17)

public static final class CreateBucketRequest.Builder extends GeneratedMessageV3.Builder<CreateBucketRequest.Builder> implements CreateBucketRequestOrBuilder

The parameters to CreateBucket.

Protobuf type google.logging.v2.CreateBucketRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateBucketRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

build()

public CreateBucketRequest build()
Returns
TypeDescription
CreateBucketRequest

buildPartial()

public CreateBucketRequest buildPartial()
Returns
TypeDescription
CreateBucketRequest

clear()

public CreateBucketRequest.Builder clear()
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

clearBucket()

public CreateBucketRequest.Builder clearBucket()

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
CreateBucketRequest.Builder

clearBucketId()

public CreateBucketRequest.Builder clearBucketId()

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
CreateBucketRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateBucketRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBucketRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

clearParent()

public CreateBucketRequest.Builder clearParent()

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
CreateBucketRequest.Builder

This builder for chaining.

clone()

public CreateBucketRequest.Builder clone()
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

getBucket()

public 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.

getBucketBuilder()

public LogBucket.Builder getBucketBuilder()

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.Builder

getBucketId()

public 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 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 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

getDefaultInstanceForType()

public CreateBucketRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBucketRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBucket(LogBucket value)

public CreateBucketRequest.Builder mergeBucket(LogBucket value)

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

Parameter
NameDescription
valueLogBucket
Returns
TypeDescription
CreateBucketRequest.Builder

mergeFrom(CreateBucketRequest other)

public CreateBucketRequest.Builder mergeFrom(CreateBucketRequest other)
Parameter
NameDescription
otherCreateBucketRequest
Returns
TypeDescription
CreateBucketRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateBucketRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateBucketRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBucketRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

setBucket(LogBucket value)

public CreateBucketRequest.Builder setBucket(LogBucket value)

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

Parameter
NameDescription
valueLogBucket
Returns
TypeDescription
CreateBucketRequest.Builder

setBucket(LogBucket.Builder builderForValue)

public CreateBucketRequest.Builder setBucket(LogBucket.Builder builderForValue)

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

Parameter
NameDescription
builderForValueLogBucket.Builder
Returns
TypeDescription
CreateBucketRequest.Builder

setBucketId(String value)

public CreateBucketRequest.Builder setBucketId(String value)

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

Parameter
NameDescription
valueString

The bucketId to set.

Returns
TypeDescription
CreateBucketRequest.Builder

This builder for chaining.

setBucketIdBytes(ByteString value)

public CreateBucketRequest.Builder setBucketIdBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for bucketId to set.

Returns
TypeDescription
CreateBucketRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateBucketRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

setParent(String value)

public CreateBucketRequest.Builder setParent(String value)

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) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateBucketRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateBucketRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateBucketRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBucketRequest.Builder
Overrides