Class UpdateCmekSettingsRequest.Builder (3.19.0)

public static final class UpdateCmekSettingsRequest.Builder extends GeneratedMessageV3.Builder<UpdateCmekSettingsRequest.Builder> implements UpdateCmekSettingsRequestOrBuilder

The parameters to UpdateCmekSettings.

See Enabling CMEK for Log Router for more information.

Protobuf type google.logging.v2.UpdateCmekSettingsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateCmekSettingsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

build()

public UpdateCmekSettingsRequest build()
Returns
Type Description
UpdateCmekSettingsRequest

buildPartial()

public UpdateCmekSettingsRequest buildPartial()
Returns
Type Description
UpdateCmekSettingsRequest

clear()

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

clearCmekSettings()

public UpdateCmekSettingsRequest.Builder clearCmekSettings()

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCmekSettingsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateCmekSettingsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

clearName()

public UpdateCmekSettingsRequest.Builder clearName()

Required. The resource name for the CMEK settings to update.

 "projects/[PROJECT_ID]/cmekSettings"
 "organizations/[ORGANIZATION_ID]/cmekSettings"
 "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
 "folders/[FOLDER_ID]/cmekSettings"

For example:

"organizations/12345/cmekSettings"

Note: CMEK 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
UpdateCmekSettingsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCmekSettingsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

clearUpdateMask()

public UpdateCmekSettingsRequest.Builder clearUpdateMask()

Optional. Field mask identifying which fields from cmek_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
UpdateCmekSettingsRequest.Builder

clone()

public UpdateCmekSettingsRequest.Builder clone()
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

getCmekSettings()

public CmekSettings getCmekSettings()

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CmekSettings

The cmekSettings.

getCmekSettingsBuilder()

public CmekSettings.Builder getCmekSettingsBuilder()

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CmekSettings.Builder

getCmekSettingsOrBuilder()

public CmekSettingsOrBuilder getCmekSettingsOrBuilder()

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CmekSettingsOrBuilder

getDefaultInstanceForType()

public UpdateCmekSettingsRequest getDefaultInstanceForType()
Returns
Type Description
UpdateCmekSettingsRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name for the CMEK settings to update.

 "projects/[PROJECT_ID]/cmekSettings"
 "organizations/[ORGANIZATION_ID]/cmekSettings"
 "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
 "folders/[FOLDER_ID]/cmekSettings"

For example:

"organizations/12345/cmekSettings"

Note: CMEK 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
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name for the CMEK settings to update.

 "projects/[PROJECT_ID]/cmekSettings"
 "organizations/[ORGANIZATION_ID]/cmekSettings"
 "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
 "folders/[FOLDER_ID]/cmekSettings"

For example:

"organizations/12345/cmekSettings"

Note: CMEK 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
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask identifying which fields from cmek_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
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Field mask identifying which fields from cmek_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
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask identifying which fields from cmek_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
FieldMaskOrBuilder

hasCmekSettings()

public boolean hasCmekSettings()

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cmekSettings field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask identifying which fields from cmek_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
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCmekSettings(CmekSettings value)

public UpdateCmekSettingsRequest.Builder mergeCmekSettings(CmekSettings value)

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CmekSettings
Returns
Type Description
UpdateCmekSettingsRequest.Builder

mergeFrom(UpdateCmekSettingsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCmekSettingsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateCmekSettingsRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Field mask identifying which fields from cmek_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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCmekSettingsRequest.Builder

setCmekSettings(CmekSettings value)

public UpdateCmekSettingsRequest.Builder setCmekSettings(CmekSettings value)

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CmekSettings
Returns
Type Description
UpdateCmekSettingsRequest.Builder

setCmekSettings(CmekSettings.Builder builderForValue)

public UpdateCmekSettingsRequest.Builder setCmekSettings(CmekSettings.Builder builderForValue)

Required. The CMEK settings to update.

See Enabling CMEK for Log Router for more information.

.google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CmekSettings.Builder
Returns
Type Description
UpdateCmekSettingsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateCmekSettingsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

setName(String value)

public UpdateCmekSettingsRequest.Builder setName(String value)

Required. The resource name for the CMEK settings to update.

 "projects/[PROJECT_ID]/cmekSettings"
 "organizations/[ORGANIZATION_ID]/cmekSettings"
 "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
 "folders/[FOLDER_ID]/cmekSettings"

For example:

"organizations/12345/cmekSettings"

Note: CMEK 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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpdateCmekSettingsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateCmekSettingsRequest.Builder setNameBytes(ByteString value)

Required. The resource name for the CMEK settings to update.

 "projects/[PROJECT_ID]/cmekSettings"
 "organizations/[ORGANIZATION_ID]/cmekSettings"
 "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
 "folders/[FOLDER_ID]/cmekSettings"

For example:

"organizations/12345/cmekSettings"

Note: CMEK 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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpdateCmekSettingsRequest.Builder

This builder for chaining.

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

public UpdateCmekSettingsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCmekSettingsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCmekSettingsRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateCmekSettingsRequest.Builder setUpdateMask(FieldMask value)

Optional. Field mask identifying which fields from cmek_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];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCmekSettingsRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCmekSettingsRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Field mask identifying which fields from cmek_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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCmekSettingsRequest.Builder