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.v1beta1.CertificateAuthority.KeyVersionSpec
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 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()
Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
clearCloudKmsKeyVersion()
public CertificateAuthority.KeyVersionSpec.Builder clearCloudKmsKeyVersion()
Required. 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 [(.google.api.field_behavior) = REQUIRED];
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()
Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
getAlgorithmValue()
public int getAlgorithmValue()
Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for algorithm.
|
getCloudKmsKeyVersion()
public String getCloudKmsKeyVersion()
Required. 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 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The cloudKmsKeyVersion.
|
getCloudKmsKeyVersionBytes()
public ByteString getCloudKmsKeyVersionBytes()
Required. 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 [(.google.api.field_behavior) = REQUIRED];
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()
Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the algorithm field is set.
|
hasCloudKmsKeyVersion()
public boolean hasCloudKmsKeyVersion()
Required. 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 [(.google.api.field_behavior) = REQUIRED];
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)
Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
setAlgorithmValue(int value)
public CertificateAuthority.KeyVersionSpec.Builder setAlgorithmValue(int value)
Required. 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.v1beta1.CertificateAuthority.SignHashAlgorithm algorithm = 2 [(.google.api.field_behavior) = REQUIRED];
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)
Required. 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 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The cloudKmsKeyVersion to set.
|
setCloudKmsKeyVersionBytes(ByteString value)
public CertificateAuthority.KeyVersionSpec.Builder setCloudKmsKeyVersionBytes(ByteString value)
Required. 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 [(.google.api.field_behavior) = REQUIRED];
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