Send feedback
Class WorkstationConfig.CustomerEncryptionKey (0.22.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.22.0 keyboard_arrow_down
public static final class WorkstationConfig . CustomerEncryptionKey extends 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 .
Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
KMS_KEY_FIELD_NUMBER
public static final int KMS_KEY_FIELD_NUMBER
Field Value Type Description int
KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER
public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static WorkstationConfig . CustomerEncryptionKey getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static WorkstationConfig . CustomerEncryptionKey . Builder newBuilder ()
newBuilder(WorkstationConfig.CustomerEncryptionKey prototype)
public static WorkstationConfig . CustomerEncryptionKey . Builder newBuilder ( WorkstationConfig . CustomerEncryptionKey prototype )
public static WorkstationConfig . CustomerEncryptionKey parseDelimitedFrom ( InputStream input )
public static WorkstationConfig . CustomerEncryptionKey parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( CodedInputStream input )
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( InputStream input )
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WorkstationConfig . CustomerEncryptionKey parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<WorkstationConfig . CustomerEncryptionKey > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public WorkstationConfig . CustomerEncryptionKey getDefaultInstanceForType ()
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];
Returns Type Description String
The kmsKey.
getKmsKeyBytes()
public 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];
Returns Type Description ByteString
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 and
gcloud kms keys add-iam-policy-binding
--member
.
string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE];
Returns Type Description String
The kmsKeyServiceAccount.
getKmsKeyServiceAccountBytes()
public 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 and
gcloud kms keys add-iam-policy-binding
--member
.
string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE];
Returns Type Description ByteString
The bytes for kmsKeyServiceAccount.
getParserForType()
public Parser<WorkstationConfig . CustomerEncryptionKey > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public WorkstationConfig . CustomerEncryptionKey . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WorkstationConfig . CustomerEncryptionKey . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public WorkstationConfig . CustomerEncryptionKey . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]