# Interface UpdateSettingsRequestOrBuilder (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 UpdateSettingsRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getName()

    public abstract String getName()

Required. The resource name for the settings to update.

"organizations/\[ORGANIZATION_ID\]/settings"

For example:

`"organizations/12345/settings"`

Note: Settings for the Log Router can currently only be configured for
Google Cloud organizations. Once configured, it applies to all projects and
folders in the Google Cloud organization.

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. The resource name for the settings to update.

"organizations/\[ORGANIZATION_ID\]/settings"

For example:

`"organizations/12345/settings"`

Note: Settings for the Log Router can currently only be configured for
Google Cloud organizations. Once configured, it applies to all projects and
folders in the Google Cloud organization.

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getSettings()

    public abstract Settings getSettings()

Required. The settings to update.

See [Enabling CMEK for Log
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
for more information.

`.google.logging.v2.Settings settings = 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.Settings` | The settings. |

### getSettingsOrBuilder()

    public abstract SettingsOrBuilder getSettingsOrBuilder()

Required. The settings to update.

See [Enabling CMEK for Log
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
for more information.

`.google.logging.v2.Settings settings = 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.SettingsOrBuilder` |   |

### getUpdateMask()

    public abstract FieldMask getUpdateMask()

Optional. Field mask identifying which fields from `settings` should
be updated. A field will be overwritten if and only if it is in the update
mask. Output only fields cannot be updated.

See FieldMask for more information.

For example: `"updateMask=kmsKeyName"`

`.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` | The updateMask. |

### getUpdateMaskOrBuilder()

    public abstract FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask identifying which fields from `settings` should
be updated. A field will be overwritten if and only if it is in the update
mask. Output only fields cannot be updated.

See FieldMask for more information.

For example: `"updateMask=kmsKeyName"`

`.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMaskOrBuilder.html` |   |

### hasSettings()

    public abstract boolean hasSettings()

Required. The settings to update.

See [Enabling CMEK for Log
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
for more information.

`.google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasUpdateMask()

    public abstract boolean hasUpdateMask()

Optional. Field mask identifying which fields from `settings` should
be updated. A field will be overwritten if and only if it is in the update
mask. Output only fields cannot be updated.

See FieldMask for more information.

For example: `"updateMask=kmsKeyName"`

`.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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