public static final class CertificateAuthority.KeyVersionSpec extends GeneratedMessageV3 implements CertificateAuthority.KeyVersionSpecOrBuilder
A Cloud KMS key configuration that a CertificateAuthority will use.
Protobuf type
google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec
Static Fields
ALGORITHM_FIELD_NUMBER
public static final int ALGORITHM_FIELD_NUMBER
Field Value
CLOUD_KMS_KEY_VERSION_FIELD_NUMBER
public static final int CLOUD_KMS_KEY_VERSION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CertificateAuthority.KeyVersionSpec getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CertificateAuthority.KeyVersionSpec.Builder newBuilder()
Returns
newBuilder(CertificateAuthority.KeyVersionSpec prototype)
public static CertificateAuthority.KeyVersionSpec.Builder newBuilder(CertificateAuthority.KeyVersionSpec prototype)
Parameter
Returns
public static CertificateAuthority.KeyVersionSpec parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CertificateAuthority.KeyVersionSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CertificateAuthority.KeyVersionSpec parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CertificateAuthority.KeyVersionSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CertificateAuthority.KeyVersionSpec parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CertificateAuthority.KeyVersionSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CertificateAuthority.KeyVersionSpec parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CertificateAuthority.KeyVersionSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CertificateAuthority.KeyVersionSpec parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CertificateAuthority.KeyVersionSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CertificateAuthority.KeyVersionSpec parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CertificateAuthority.KeyVersionSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CertificateAuthority.KeyVersionSpec> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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];
Returns
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()
Returns
getKeyVersionCase()
public CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase()
Returns
getParserForType()
public Parser<CertificateAuthority.KeyVersionSpec> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CertificateAuthority.KeyVersionSpec.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CertificateAuthority.KeyVersionSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CertificateAuthority.KeyVersionSpec.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions