Class UpdateBucketRequest.Builder (3.9.0)

public static final class UpdateBucketRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateBucketRequest build()
Returns
TypeDescription
UpdateBucketRequest

buildPartial()

public UpdateBucketRequest buildPartial()
Returns
TypeDescription
UpdateBucketRequest

clear()

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

clearBucket()

public UpdateBucketRequest.Builder clearBucket()

Required. The updated bucket.

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

Returns
TypeDescription
UpdateBucketRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

getBucket()

public LogBucket getBucket()

Required. The updated bucket.

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

Returns
TypeDescription
LogBucket

The bucket.

getBucketBuilder()

public LogBucket.Builder getBucketBuilder()

Required. The updated bucket.

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

Returns
TypeDescription
LogBucket.Builder

getBucketOrBuilder()

public LogBucketOrBuilder getBucketOrBuilder()

Required. The updated bucket.

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

Returns
TypeDescription
LogBucketOrBuilder

getDefaultInstanceForType()

public UpdateBucketRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateBucketRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasBucket()

public boolean hasBucket()

Required. The updated bucket.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask 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 UpdateBucketRequest.Builder mergeBucket(LogBucket value)

Required. The updated bucket.

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

Parameter
NameDescription
valueLogBucket
Returns
TypeDescription
UpdateBucketRequest.Builder

mergeFrom(UpdateBucketRequest other)

public UpdateBucketRequest.Builder mergeFrom(UpdateBucketRequest other)
Parameter
NameDescription
otherUpdateBucketRequest
Returns
TypeDescription
UpdateBucketRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateBucketRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueLogBucket
Returns
TypeDescription
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
NameDescription
builderForValueLogBucket.Builder
Returns
TypeDescription
UpdateBucketRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateBucketRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateBucketRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateBucketRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateBucketRequest.Builder