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.vertexai.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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EncryptionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public EncryptionSpec build()
buildPartial()
public EncryptionSpec buildPartial()
clear()
public EncryptionSpec.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public EncryptionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKmsKeyName()
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public EncryptionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public EncryptionSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public EncryptionSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getKmsKeyName()
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.
|
getKmsKeyNameBytes()
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(EncryptionSpec other)
public EncryptionSpec.Builder mergeFrom(EncryptionSpec other)
public EncryptionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public EncryptionSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public EncryptionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setKmsKeyName(String value)
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.
|
setKmsKeyNameBytes(ByteString value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EncryptionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides