Class NodePool.LocalDiskEncryption.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NodePool.LocalDiskEncryption.Builder>
com.google.cloud.edgecontainer.v1.NodePool.LocalDiskEncryption.Builder
All Implemented Interfaces:
NodePool.LocalDiskEncryptionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NodePool.LocalDiskEncryption

public static final class NodePool.LocalDiskEncryption.Builder extends com.google.protobuf.GeneratedMessage.Builder<NodePool.LocalDiskEncryption.Builder> implements NodePool.LocalDiskEncryptionOrBuilder
 Configuration for CMEK support for edge machine local disk encryption.
 
Protobuf type google.cloud.edgecontainer.v1.NodePool.LocalDiskEncryption
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<NodePool.LocalDiskEncryption.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<NodePool.LocalDiskEncryption.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<NodePool.LocalDiskEncryption.Builder>
    • getDefaultInstanceForType

      public NodePool.LocalDiskEncryption getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public NodePool.LocalDiskEncryption buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public NodePool.LocalDiskEncryption.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodePool.LocalDiskEncryption.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NodePool.LocalDiskEncryption.Builder>
    • mergeFrom

      public NodePool.LocalDiskEncryption.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodePool.LocalDiskEncryption.Builder>
      Throws:
      IOException
    • getKmsKey

      public String getKmsKey()
       Optional. 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) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKey in interface NodePool.LocalDiskEncryptionOrBuilder
      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 node local 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:
      getKmsKeyBytes in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The bytes for kmsKey.
    • setKmsKey

      public NodePool.LocalDiskEncryption.Builder setKmsKey(String value)
       Optional. 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) = 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 node local 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

      public NodePool.LocalDiskEncryption.Builder setKmsKeyBytes(com.google.protobuf.ByteString value)
       Optional. 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) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for kmsKey to set.
      Returns:
      This builder for chaining.
    • getKmsKeyActiveVersion

      public String getKmsKeyActiveVersion()
       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) = { ... }
      Specified by:
      getKmsKeyActiveVersion in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The kmsKeyActiveVersion.
    • getKmsKeyActiveVersionBytes

      public com.google.protobuf.ByteString getKmsKeyActiveVersionBytes()
       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) = { ... }
      Specified by:
      getKmsKeyActiveVersionBytes in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The bytes for kmsKeyActiveVersion.
    • setKmsKeyActiveVersion

      public NodePool.LocalDiskEncryption.Builder setKmsKeyActiveVersion(String value)
       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) = { ... }
      Parameters:
      value - The kmsKeyActiveVersion to set.
      Returns:
      This builder for chaining.
    • clearKmsKeyActiveVersion

      public NodePool.LocalDiskEncryption.Builder clearKmsKeyActiveVersion()
       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:
      This builder for chaining.
    • setKmsKeyActiveVersionBytes

      public NodePool.LocalDiskEncryption.Builder setKmsKeyActiveVersionBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      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:
      getKmsKeyStateValue in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The enum numeric value on the wire for kmsKeyState.
    • setKmsKeyStateValue

      public NodePool.LocalDiskEncryption.Builder setKmsKeyStateValue(int value)
       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

      public KmsKeyState 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:
      getKmsKeyState in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The kmsKeyState.
    • setKmsKeyState

      public NodePool.LocalDiskEncryption.Builder setKmsKeyState(KmsKeyState value)
       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

      public NodePool.LocalDiskEncryption.Builder 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:
      hasKmsStatus in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      Whether the kmsStatus field is set.
    • getKmsStatus

      public Status 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:
      getKmsStatus in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The kmsStatus.
    • setKmsStatus

      public NodePool.LocalDiskEncryption.Builder setKmsStatus(Status value)
       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

      public NodePool.LocalDiskEncryption.Builder setKmsStatus(Status.Builder builderForValue)
       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

      public NodePool.LocalDiskEncryption.Builder mergeKmsStatus(Status value)
       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

      public NodePool.LocalDiskEncryption.Builder 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

      public Status.Builder 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

      public StatusOrBuilder 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:
      getKmsStatusOrBuilder in interface NodePool.LocalDiskEncryptionOrBuilder
    • 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:
      getResourceStateValue in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The enum numeric value on the wire for resourceState.
    • setResourceStateValue

      public NodePool.LocalDiskEncryption.Builder setResourceStateValue(int value)
       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

      public ResourceState 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:
      getResourceState in interface NodePool.LocalDiskEncryptionOrBuilder
      Returns:
      The resourceState.
    • setResourceState

      public NodePool.LocalDiskEncryption.Builder setResourceState(ResourceState value)
       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

      public NodePool.LocalDiskEncryption.Builder 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.