Class NodePool.LocalDiskEncryption.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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()
         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) = { ... }
        Specified by:
        getKmsKey in interface NodePool.LocalDiskEncryptionOrBuilder
        Returns:
        The kmsKey.
      • getKmsKeyBytes

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

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

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

        public NodePool.LocalDiskEncryption.Builder setKmsKeyBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        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 com.google.rpc.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​(com.google.rpc.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​(com.google.rpc.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​(com.google.rpc.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 com.google.rpc.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 com.google.rpc.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