Class Cluster.ControlPlaneEncryption.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlaneEncryption.Builder>
com.google.cloud.edgecontainer.v1.Cluster.ControlPlaneEncryption.Builder
- All Implemented Interfaces:
Cluster.ControlPlaneEncryptionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Cluster.ControlPlaneEncryption
public static final class Cluster.ControlPlaneEncryption.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlaneEncryption.Builder>
implements Cluster.ControlPlaneEncryptionOrBuilder
Configuration for Customer-managed KMS key support for control plane nodes.Protobuf type
google.cloud.edgecontainer.v1.Cluster.ControlPlaneEncryption-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.ByteStringOptional.Output only.intOutput only.Output only.Output only.Output only.Output only.intOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeKmsStatus(Status value) Output only.Optional.setKmsKeyActiveVersion(String value) Output only.setKmsKeyActiveVersionBytes(com.google.protobuf.ByteString value) Output only.setKmsKeyBytes(com.google.protobuf.ByteString value) Optional.setKmsKeyState(KmsKeyState value) Output only.setKmsKeyStateValue(int value) Output only.setKmsStatus(Status value) Output only.setKmsStatus(Status.Builder builderForValue) Output only.setResourceState(ResourceState value) Output only.setResourceStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlaneEncryption.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlaneEncryption.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlaneEncryption.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.ControlPlaneEncryption.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.ControlPlaneEncryption.Builder>
-
mergeFrom
public Cluster.ControlPlaneEncryption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.ControlPlaneEncryption.Builder>- Throws:
IOException
-
getKmsKey
Optional. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting control plane disks. If not specified, a Google-managed key will be used instead.string kms_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyin interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The kmsKey.
-
getKmsKeyBytes
public com.google.protobuf.ByteString getKmsKeyBytes()Optional. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting control plane disks. If not specified, a Google-managed key will be used instead.string kms_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyBytesin interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The bytes for kmsKey.
-
setKmsKey
Optional. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting control plane disks. If not specified, a Google-managed key will be used instead.string kms_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The kmsKey to set.- Returns:
- This builder for chaining.
-
clearKmsKey
Optional. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting control plane disks. If not specified, a Google-managed key will be used instead.string kms_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setKmsKeyBytes
Optional. The Cloud KMS CryptoKey e.g. projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} to use for protecting control plane disks. If not specified, a Google-managed key will be used instead.string kms_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for kmsKey to set.- Returns:
- This builder for chaining.
-
getKmsKeyActiveVersion
Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting control plane disks. Only applicable if kms_key is set.
string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyActiveVersionin interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The kmsKeyActiveVersion.
-
getKmsKeyActiveVersionBytes
public com.google.protobuf.ByteString getKmsKeyActiveVersionBytes()Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting control plane disks. Only applicable if kms_key is set.
string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getKmsKeyActiveVersionBytesin interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The bytes for kmsKeyActiveVersion.
-
setKmsKeyActiveVersion
Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting control plane disks. Only applicable if kms_key is set.
string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The kmsKeyActiveVersion to set.- Returns:
- This builder for chaining.
-
clearKmsKeyActiveVersion
Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting control plane 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:
- This builder for chaining.
-
setKmsKeyActiveVersionBytes
public Cluster.ControlPlaneEncryption.Builder setKmsKeyActiveVersionBytes(com.google.protobuf.ByteString value) Output only. The Cloud KMS CryptoKeyVersion currently in use for protecting control plane disks. Only applicable if kms_key is set.
string kms_key_active_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for kmsKeyActiveVersion to set.- Returns:
- This builder for chaining.
-
getKmsKeyStateValue
public int getKmsKeyStateValue()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];- Specified by:
getKmsKeyStateValuein interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The enum numeric value on the wire for kmsKeyState.
-
setKmsKeyStateValue
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];- Parameters:
value- The enum numeric value on the wire for kmsKeyState to set.- Returns:
- This builder for chaining.
-
getKmsKeyState
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];- Specified by:
getKmsKeyStatein interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The kmsKeyState.
-
setKmsKeyState
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];- Parameters:
value- The kmsKeyState to set.- Returns:
- This builder for chaining.
-
clearKmsKeyState
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:
- This builder for chaining.
-
hasKmsStatus
public boolean hasKmsStatus()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];- Specified by:
hasKmsStatusin interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- Whether the kmsStatus field is set.
-
getKmsStatus
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];- Specified by:
getKmsStatusin interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The kmsStatus.
-
setKmsStatus
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]; -
setKmsStatus
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]; -
mergeKmsStatus
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]; -
clearKmsStatus
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]; -
getKmsStatusBuilder
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]; -
getKmsStatusOrBuilder
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];- Specified by:
getKmsStatusOrBuilderin interfaceCluster.ControlPlaneEncryptionOrBuilder
-
getResourceStateValue
public int getResourceStateValue()Output only. The current resource state associated with the cmek.
.google.cloud.edgecontainer.v1.ResourceState resource_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getResourceStateValuein interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The enum numeric value on the wire for resourceState.
-
setResourceStateValue
Output only. The current resource state associated with the cmek.
.google.cloud.edgecontainer.v1.ResourceState resource_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for resourceState to set.- Returns:
- This builder for chaining.
-
getResourceState
Output only. The current resource state associated with the cmek.
.google.cloud.edgecontainer.v1.ResourceState resource_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getResourceStatein interfaceCluster.ControlPlaneEncryptionOrBuilder- Returns:
- The resourceState.
-
setResourceState
Output only. The current resource state associated with the cmek.
.google.cloud.edgecontainer.v1.ResourceState resource_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The resourceState to set.- Returns:
- This builder for chaining.
-
clearResourceState
Output only. The current resource state associated with the cmek.
.google.cloud.edgecontainer.v1.ResourceState resource_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-