Class NodePool.LocalDiskEncryption.Builder (0.6.0)

publicstaticfinalclass NodePool.LocalDiskEncryption.BuilderextendsGeneratedMessageV3.Builder<NodePool.LocalDiskEncryption.Builder>implementsNodePool.LocalDiskEncryptionOrBuilder

Configuration for CMEK support for edge machine local disk encryption.

Protobuf type google.cloud.edgecontainer.v1.NodePool.LocalDiskEncryption

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicNodePool.LocalDiskEncryption.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicNodePool.LocalDiskEncryptionbuild()
Returns
Type Description

buildPartial()

publicNodePool.LocalDiskEncryptionbuildPartial()
Returns
Type Description

clear()

publicNodePool.LocalDiskEncryption.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicNodePool.LocalDiskEncryption.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearKmsKey()

publicNodePool.LocalDiskEncryption.BuilderclearKmsKey()

Immutable. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting node local disks. If not specified, a Google-managed key will be used instead.

string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

clearKmsKeyActiveVersion()

publicNodePool.LocalDiskEncryption.BuilderclearKmsKeyActiveVersion()

Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting node local disks. Only applicable if kms_key is set.

string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

clearKmsKeyState()

publicNodePool.LocalDiskEncryption.BuilderclearKmsKeyState()

Output only. Availability of the Cloud KMS CryptoKey. If not KEY_AVAILABLE, then nodes may go offline as they cannot access their local data. This can be caused by a lack of permissions to use the key, or if the key is disabled or deleted.

.google.cloud.edgecontainer.v1.KmsKeyState kms_key_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

clearKmsStatus()

publicNodePool.LocalDiskEncryption.BuilderclearKmsStatus()

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description

clearOneof(Descriptors.OneofDescriptor oneof)

publicNodePool.LocalDiskEncryption.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clone()

publicNodePool.LocalDiskEncryption.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicNodePool.LocalDiskEncryptiongetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getKmsKey()

publicStringgetKmsKey()

Immutable. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting node local disks. If not specified, a Google-managed key will be used instead.

string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKey.

getKmsKeyActiveVersion()

publicStringgetKmsKeyActiveVersion()

Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting node local disks. Only applicable if kms_key is set.

string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKeyActiveVersion.

getKmsKeyActiveVersionBytes()

publicByteStringgetKmsKeyActiveVersionBytes()

Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting node local disks. Only applicable if kms_key is set.

string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKeyActiveVersion.

getKmsKeyBytes()

publicByteStringgetKmsKeyBytes()

Immutable. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting node local disks. If not specified, a Google-managed key will be used instead.

string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKey.

getKmsKeyState()

publicKmsKeyStategetKmsKeyState()

Output only. Availability of the Cloud KMS CryptoKey. If not KEY_AVAILABLE, then nodes may go offline as they cannot access their local data. This can be caused by a lack of permissions to use the key, or if the key is disabled or deleted.

.google.cloud.edgecontainer.v1.KmsKeyState kms_key_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KmsKeyState

The kmsKeyState.

getKmsKeyStateValue()

publicintgetKmsKeyStateValue()

Output only. Availability of the Cloud KMS CryptoKey. If not KEY_AVAILABLE, then nodes may go offline as they cannot access their local data. This can be caused by a lack of permissions to use the key, or if the key is disabled or deleted.

.google.cloud.edgecontainer.v1.KmsKeyState kms_key_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for kmsKeyState.

getKmsStatus()

publicStatusgetKmsStatus()

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The kmsStatus.

getKmsStatusBuilder()

publicStatus.BuildergetKmsStatusBuilder()

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status.Builder

getKmsStatusOrBuilder()

publicStatusOrBuildergetKmsStatusOrBuilder()

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

hasKmsStatus()

publicbooleanhasKmsStatus()

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the kmsStatus field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(NodePool.LocalDiskEncryption other)

publicNodePool.LocalDiskEncryption.BuildermergeFrom(NodePool.LocalDiskEncryptionother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicNodePool.LocalDiskEncryption.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicNodePool.LocalDiskEncryption.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeKmsStatus(Status value)

publicNodePool.LocalDiskEncryption.BuildermergeKmsStatus(Statusvalue)

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalNodePool.LocalDiskEncryption.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicNodePool.LocalDiskEncryption.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setKmsKey(String value)

publicNodePool.LocalDiskEncryption.BuildersetKmsKey(Stringvalue)

Immutable. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting node local disks. If not specified, a Google-managed key will be used instead.

string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The kmsKey to set.

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

setKmsKeyActiveVersion(String value)

publicNodePool.LocalDiskEncryption.BuildersetKmsKeyActiveVersion(Stringvalue)

Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting node local disks. Only applicable if kms_key is set.

string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The kmsKeyActiveVersion to set.

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

setKmsKeyActiveVersionBytes(ByteString value)

publicNodePool.LocalDiskEncryption.BuildersetKmsKeyActiveVersionBytes(ByteStringvalue)

Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting node local disks. Only applicable if kms_key is set.

string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for kmsKeyActiveVersion to set.

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

publicNodePool.LocalDiskEncryption.BuildersetKmsKeyBytes(ByteStringvalue)

Immutable. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting node local disks. If not specified, a Google-managed key will be used instead.

string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for kmsKey to set.

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

setKmsKeyState(KmsKeyState value)

publicNodePool.LocalDiskEncryption.BuildersetKmsKeyState(KmsKeyStatevalue)

Output only. Availability of the Cloud KMS CryptoKey. If not KEY_AVAILABLE, then nodes may go offline as they cannot access their local data. This can be caused by a lack of permissions to use the key, or if the key is disabled or deleted.

.google.cloud.edgecontainer.v1.KmsKeyState kms_key_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value KmsKeyState

The kmsKeyState to set.

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

setKmsKeyStateValue(int value)

publicNodePool.LocalDiskEncryption.BuildersetKmsKeyStateValue(intvalue)

Output only. Availability of the Cloud KMS CryptoKey. If not KEY_AVAILABLE, then nodes may go offline as they cannot access their local data. This can be caused by a lack of permissions to use the key, or if the key is disabled or deleted.

.google.cloud.edgecontainer.v1.KmsKeyState kms_key_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for kmsKeyState to set.

Returns
Type Description
NodePool.LocalDiskEncryption.Builder

This builder for chaining.

setKmsStatus(Status value)

publicNodePool.LocalDiskEncryption.BuildersetKmsStatus(Statusvalue)

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description

setKmsStatus(Status.Builder builderForValue)

publicNodePool.LocalDiskEncryption.BuildersetKmsStatus(Status.BuilderbuilderForValue)

Output only. Error status returned by Cloud KMS when using this key. This field may be populated only if kms_key_state is not KMS_KEY_STATE_KEY_AVAILABLE. If populated, this field contains the error status reported by Cloud KMS.

.google.rpc.Status kms_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description

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

publicNodePool.LocalDiskEncryption.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalNodePool.LocalDiskEncryption.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.