public static final class CertificateAuthority.KeyVersionSpec.Builder extends GeneratedMessageV3.Builder<CertificateAuthority.KeyVersionSpec.Builder> implements CertificateAuthority.KeyVersionSpecOrBuilder
A Cloud KMS key configuration that a
CertificateAuthority
will use.
Protobuf type google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 CertificateAuthority.KeyVersionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CertificateAuthority.KeyVersionSpec build()
buildPartial()
public CertificateAuthority.KeyVersionSpec buildPartial()
clear()
public CertificateAuthority.KeyVersionSpec.Builder clear()
Overrides
clearAlgorithm()
public CertificateAuthority.KeyVersionSpec.Builder clearAlgorithm()
The algorithm to use for creating a managed Cloud KMS key for a for a
simplified experience. All managed keys will be have their
ProtectionLevel as HSM
.
.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
clearCloudKmsKeyVersion()
public CertificateAuthority.KeyVersionSpec.Builder clearCloudKmsKeyVersion()
The resource name for an existing Cloud KMS CryptoKeyVersion in the
format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*
.
This option enables full flexibility in the key's capabilities and
properties.
string cloud_kms_key_version = 1;
clearField(Descriptors.FieldDescriptor field)
public CertificateAuthority.KeyVersionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKeyVersion()
public CertificateAuthority.KeyVersionSpec.Builder clearKeyVersion()
clearOneof(Descriptors.OneofDescriptor oneof)
public CertificateAuthority.KeyVersionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CertificateAuthority.KeyVersionSpec.Builder clone()
Overrides
getAlgorithm()
public CertificateAuthority.SignHashAlgorithm getAlgorithm()
The algorithm to use for creating a managed Cloud KMS key for a for a
simplified experience. All managed keys will be have their
ProtectionLevel as HSM
.
.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
getAlgorithmValue()
public int getAlgorithmValue()
The algorithm to use for creating a managed Cloud KMS key for a for a
simplified experience. All managed keys will be have their
ProtectionLevel as HSM
.
.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for algorithm.
|
getCloudKmsKeyVersion()
public String getCloudKmsKeyVersion()
The resource name for an existing Cloud KMS CryptoKeyVersion in the
format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*
.
This option enables full flexibility in the key's capabilities and
properties.
string cloud_kms_key_version = 1;
Returns |
---|
Type | Description |
String | The cloudKmsKeyVersion.
|
getCloudKmsKeyVersionBytes()
public ByteString getCloudKmsKeyVersionBytes()
The resource name for an existing Cloud KMS CryptoKeyVersion in the
format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*
.
This option enables full flexibility in the key's capabilities and
properties.
string cloud_kms_key_version = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for cloudKmsKeyVersion.
|
getDefaultInstanceForType()
public CertificateAuthority.KeyVersionSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getKeyVersionCase()
public CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase()
hasAlgorithm()
public boolean hasAlgorithm()
The algorithm to use for creating a managed Cloud KMS key for a for a
simplified experience. All managed keys will be have their
ProtectionLevel as HSM
.
.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
Returns |
---|
Type | Description |
boolean | Whether the algorithm field is set.
|
hasCloudKmsKeyVersion()
public boolean hasCloudKmsKeyVersion()
The resource name for an existing Cloud KMS CryptoKeyVersion in the
format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*
.
This option enables full flexibility in the key's capabilities and
properties.
string cloud_kms_key_version = 1;
Returns |
---|
Type | Description |
boolean | Whether the cloudKmsKeyVersion field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CertificateAuthority.KeyVersionSpec other)
public CertificateAuthority.KeyVersionSpec.Builder mergeFrom(CertificateAuthority.KeyVersionSpec other)
public CertificateAuthority.KeyVersionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CertificateAuthority.KeyVersionSpec.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CertificateAuthority.KeyVersionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAlgorithm(CertificateAuthority.SignHashAlgorithm value)
public CertificateAuthority.KeyVersionSpec.Builder setAlgorithm(CertificateAuthority.SignHashAlgorithm value)
The algorithm to use for creating a managed Cloud KMS key for a for a
simplified experience. All managed keys will be have their
ProtectionLevel as HSM
.
.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
setAlgorithmValue(int value)
public CertificateAuthority.KeyVersionSpec.Builder setAlgorithmValue(int value)
The algorithm to use for creating a managed Cloud KMS key for a for a
simplified experience. All managed keys will be have their
ProtectionLevel as HSM
.
.google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm algorithm = 2;
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for algorithm to set.
|
setCloudKmsKeyVersion(String value)
public CertificateAuthority.KeyVersionSpec.Builder setCloudKmsKeyVersion(String value)
The resource name for an existing Cloud KMS CryptoKeyVersion in the
format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*
.
This option enables full flexibility in the key's capabilities and
properties.
string cloud_kms_key_version = 1;
Parameter |
---|
Name | Description |
value | String
The cloudKmsKeyVersion to set.
|
setCloudKmsKeyVersionBytes(ByteString value)
public CertificateAuthority.KeyVersionSpec.Builder setCloudKmsKeyVersionBytes(ByteString value)
The resource name for an existing Cloud KMS CryptoKeyVersion in the
format
projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*
.
This option enables full flexibility in the key's capabilities and
properties.
string cloud_kms_key_version = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for cloudKmsKeyVersion to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CertificateAuthority.KeyVersionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CertificateAuthority.KeyVersionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CertificateAuthority.KeyVersionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides