Class WorkstationConfig.CustomerEncryptionKey

  • All Implemented Interfaces:
    WorkstationConfig.CustomerEncryptionKeyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    WorkstationConfig

    public static final class WorkstationConfig.CustomerEncryptionKey
    extends com.google.protobuf.GeneratedMessageV3
    implements WorkstationConfig.CustomerEncryptionKeyOrBuilder
     A customer-managed encryption key (CMEK) for the Compute Engine
     resources of the associated workstation configuration. Specify the name of
     your Cloud KMS encryption key and the default service account.
     We recommend that you use a separate service account and follow
     [Cloud KMS best
     practices](https://cloud.google.com/kms/docs/separation-of-duties).
     
    Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey
    See Also:
    Serialized Form
    • Field Detail

      • KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER

        public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getKmsKey

        public String getKmsKey()
         Immutable. The name of the Google Cloud KMS encryption key. For example,
         `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
         The key must be in the same region as the workstation configuration.
         
        string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getKmsKey in interface WorkstationConfig.CustomerEncryptionKeyOrBuilder
        Returns:
        The kmsKey.
      • getKmsKeyBytes

        public com.google.protobuf.ByteString getKmsKeyBytes()
         Immutable. The name of the Google Cloud KMS encryption key. For example,
         `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
         The key must be in the same region as the workstation configuration.
         
        string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getKmsKeyBytes in interface WorkstationConfig.CustomerEncryptionKeyOrBuilder
        Returns:
        The bytes for kmsKey.
      • getKmsKeyServiceAccount

        public String getKmsKeyServiceAccount()
         Immutable. The service account to use with the specified
         KMS key. We recommend that you use a separate service account
         and follow KMS best practices. For more information, see
         [Separation of
         duties](https://cloud.google.com/kms/docs/separation-of-duties) and
         `gcloud kms keys add-iam-policy-binding`
         [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
         
        string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getKmsKeyServiceAccount in interface WorkstationConfig.CustomerEncryptionKeyOrBuilder
        Returns:
        The kmsKeyServiceAccount.
      • getKmsKeyServiceAccountBytes

        public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes()
         Immutable. The service account to use with the specified
         KMS key. We recommend that you use a separate service account
         and follow KMS best practices. For more information, see
         [Separation of
         duties](https://cloud.google.com/kms/docs/separation-of-duties) and
         `gcloud kms keys add-iam-policy-binding`
         [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
         
        string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getKmsKeyServiceAccountBytes in interface WorkstationConfig.CustomerEncryptionKeyOrBuilder
        Returns:
        The bytes for kmsKeyServiceAccount.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static WorkstationConfig.CustomerEncryptionKey parseFrom​(ByteBuffer data,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkstationConfig.CustomerEncryptionKey parseFrom​(com.google.protobuf.ByteString data)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkstationConfig.CustomerEncryptionKey parseFrom​(com.google.protobuf.ByteString data,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkstationConfig.CustomerEncryptionKey parseFrom​(byte[] data)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static WorkstationConfig.CustomerEncryptionKey parseFrom​(byte[] data,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public WorkstationConfig.CustomerEncryptionKey.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected WorkstationConfig.CustomerEncryptionKey.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<WorkstationConfig.CustomerEncryptionKey> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder