# Interface UpdateBucketRequestOrBuilder (3.34.0)

3.34.0 (latest) 3.32.0 3.29.0 3.28.0 3.26.0 3.24.0 3.23.10 3.22.6 3.21.4 3.20.7 3.19.0 3.18.0 3.17.2 3.16.2 3.15.17 3.14.9 3.13.7 3.12.1 3.11.10 3.10.7 3.9.0 3.8.0 3.7.6 3.6.4 3.5.3

    public interface UpdateBucketRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getBucket()

    public abstract LogBucket getBucket()

Required. The updated bucket.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.logging.v2.LogBucket` | The bucket. |

### getBucketOrBuilder()

    public abstract LogBucketOrBuilder getBucketOrBuilder()

Required. The updated bucket.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.logging.v2.LogBucketOrBuilder` |   |

### getName()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getUpdateMask()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` | The updateMask. |

### getUpdateMaskOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMaskOrBuilder.html` |   |

### hasBucket()

    public abstract boolean hasBucket()

Required. The updated bucket.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bucket field is set. |

### hasUpdateMask()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateMask field is set. |