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.v1beta1.EncryptionSpec
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public EncryptionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public EncryptionSpec build()
Returns
public EncryptionSpec buildPartial()
Returns
public EncryptionSpec.Builder clear()
Returns
Overrides
public EncryptionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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];
Returns
public EncryptionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public EncryptionSpec.Builder clone()
Returns
Overrides
public EncryptionSpec getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public EncryptionSpec.Builder mergeFrom(EncryptionSpec other)
Parameter
Returns
public EncryptionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public EncryptionSpec.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final EncryptionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public EncryptionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
public EncryptionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final EncryptionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides