Class UpdateBucketRequest.Builder (3.24.0)

public static final class UpdateBucketRequest.Builder extends GeneratedMessage.Builder<UpdateBucketRequest.Builder> implements UpdateBucketRequestOrBuilder

The parameters to UpdateBucket.

Protobuf type google.logging.v2.UpdateBucketRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UpdateBucketRequest build()
Returns
Type Description
UpdateBucketRequest

buildPartial()

public UpdateBucketRequest buildPartial()
Returns
Type Description
UpdateBucketRequest

clear()

public UpdateBucketRequest.Builder clear()
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

clearBucket()

public UpdateBucketRequest.Builder clearBucket()

Required. The updated bucket.

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

Returns
Type Description
UpdateBucketRequest.Builder

clearName()

public UpdateBucketRequest.Builder clearName()

Required. The full resource name of the bucket to update.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Returns
Type Description
UpdateBucketRequest.Builder

This builder for chaining.

clearUpdateMask()

public UpdateBucketRequest.Builder clearUpdateMask()

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateBucketRequest.Builder

getBucket()

public LogBucket getBucket()

Required. The updated bucket.

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

Returns
Type Description
LogBucket

The bucket.

getBucketBuilder()

public LogBucket.Builder getBucketBuilder()

Required. The updated bucket.

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

Returns
Type Description
LogBucket.Builder

getBucketOrBuilder()

public LogBucketOrBuilder getBucketOrBuilder()

Required. The updated bucket.

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

Returns
Type Description
LogBucketOrBuilder

getDefaultInstanceForType()

public UpdateBucketRequest getDefaultInstanceForType()
Returns
Type Description
UpdateBucketRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The full resource name of the bucket to update.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The full resource name of the bucket to update.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Returns
Type Description
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasBucket()

public boolean hasBucket()

Required. The updated bucket.

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

Returns
Type Description
boolean

Whether the bucket field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBucket(LogBucket value)

public UpdateBucketRequest.Builder mergeBucket(LogBucket value)

Required. The updated bucket.

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

Parameter
Name Description
value LogBucket
Returns
Type Description
UpdateBucketRequest.Builder

mergeFrom(UpdateBucketRequest other)

public UpdateBucketRequest.Builder mergeFrom(UpdateBucketRequest other)
Parameter
Name Description
other UpdateBucketRequest
Returns
Type Description
UpdateBucketRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateBucketRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateBucketRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateBucketRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateBucketRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateBucketRequest.Builder mergeUpdateMask(FieldMask value)

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBucketRequest.Builder

setBucket(LogBucket value)

public UpdateBucketRequest.Builder setBucket(LogBucket value)

Required. The updated bucket.

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

Parameter
Name Description
value LogBucket
Returns
Type Description
UpdateBucketRequest.Builder

setBucket(LogBucket.Builder builderForValue)

public UpdateBucketRequest.Builder setBucket(LogBucket.Builder builderForValue)

Required. The updated bucket.

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

Parameter
Name Description
builderForValue LogBucket.Builder
Returns
Type Description
UpdateBucketRequest.Builder

setName(String value)

public UpdateBucketRequest.Builder setName(String value)

Required. The full resource name of the bucket to update.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateBucketRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateBucketRequest.Builder setNameBytes(ByteString value)

Required. The full resource name of the bucket to update.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

For example:

"projects/my-project/locations/global/buckets/my-bucket"

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateBucketRequest.Builder

This builder for chaining.

setUpdateMask(FieldMask value)

public UpdateBucketRequest.Builder setUpdateMask(FieldMask value)

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBucketRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateBucketRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.

For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

For example: updateMask=retention_days

.google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateBucketRequest.Builder