Class UpdateCmekSettingsRequest.Builder (3.16.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCmekSettingsRequest build()
Returns
TypeDescription
UpdateCmekSettingsRequest

buildPartial()

public UpdateCmekSettingsRequest buildPartial()
Returns
TypeDescription
UpdateCmekSettingsRequest

clear()

public UpdateCmekSettingsRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateCmekSettingsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateCmekSettingsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateCmekSettingsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCmekSettingsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateCmekSettingsRequest.Builder

clone()

public UpdateCmekSettingsRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CmekSettingsOrBuilder

getDefaultInstanceForType()

public UpdateCmekSettingsRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCmekSettingsRequest

getDescriptorForType()

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

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
NameDescription
valueCmekSettings
Returns
TypeDescription
UpdateCmekSettingsRequest.Builder

mergeFrom(UpdateCmekSettingsRequest other)

public UpdateCmekSettingsRequest.Builder mergeFrom(UpdateCmekSettingsRequest other)
Parameter
NameDescription
otherUpdateCmekSettingsRequest
Returns
TypeDescription
UpdateCmekSettingsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCmekSettingsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueCmekSettings
Returns
TypeDescription
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
NameDescription
builderForValueCmekSettings.Builder
Returns
TypeDescription
UpdateCmekSettingsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateCmekSettingsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateCmekSettingsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCmekSettingsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateCmekSettingsRequest.Builder