public static final class EncryptionSpec.Builder extends GeneratedMessageV3.Builder<EncryptionSpec.Builder> implements EncryptionSpecOrBuilder
Represents a customer-managed encryption key spec that can be applied to
a top-level resource.
Protobuf type google.cloud.aiplatform.v1.EncryptionSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public EncryptionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public EncryptionSpec build()
public EncryptionSpec buildPartial()
public EncryptionSpec.Builder clear()
Overrides
public EncryptionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public EncryptionSpec.Builder clearKmsKeyName()
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
The key needs to be in the same region as where the compute resource is
created.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
public EncryptionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public EncryptionSpec.Builder clone()
Overrides
public EncryptionSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getKmsKeyName()
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
The key needs to be in the same region as where the compute resource is
created.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The kmsKeyName.
|
public ByteString getKmsKeyNameBytes()
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
The key needs to be in the same region as where the compute resource is
created.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for kmsKeyName.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public EncryptionSpec.Builder mergeFrom(EncryptionSpec other)
public EncryptionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public EncryptionSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final EncryptionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public EncryptionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public EncryptionSpec.Builder setKmsKeyName(String value)
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
The key needs to be in the same region as where the compute resource is
created.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The kmsKeyName to set.
|
public EncryptionSpec.Builder setKmsKeyNameBytes(ByteString value)
Required. The Cloud KMS resource identifier of the customer managed
encryption key used to protect a resource. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key
.
The key needs to be in the same region as where the compute resource is
created.
string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for kmsKeyName to set.
|
public EncryptionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final EncryptionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides