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