Class WorkstationConfig.CustomerEncryptionKey

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.workstations.v1beta.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.GeneratedMessage 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:
  • Field Details

    • KMS_KEY_FIELD_NUMBER

      public static final int KMS_KEY_FIELD_NUMBER
      See Also:
    • KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
  • 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
    • 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • 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
    • parseFrom

      public static WorkstationConfig.CustomerEncryptionKey parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkstationConfig.CustomerEncryptionKey parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkstationConfig.CustomerEncryptionKey parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WorkstationConfig.CustomerEncryptionKey parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WorkstationConfig.CustomerEncryptionKey.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static WorkstationConfig.CustomerEncryptionKey getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<WorkstationConfig.CustomerEncryptionKey> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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