Class CertificateAuthority.KeyVersionSpec (2.5.1)

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.v1.CertificateAuthority.KeyVersionSpec

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CertificateAuthority.KeyVersionSpec

Static Fields

ALGORITHM_FIELD_NUMBER

public static final int ALGORITHM_FIELD_NUMBER
Field Value
TypeDescription
int

CLOUD_KMS_KEY_VERSION_FIELD_NUMBER

public static final int CLOUD_KMS_KEY_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CertificateAuthority.KeyVersionSpec getDefaultInstance()
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CertificateAuthority.KeyVersionSpec.Builder newBuilder()
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec.Builder

newBuilder(CertificateAuthority.KeyVersionSpec prototype)

public static CertificateAuthority.KeyVersionSpec.Builder newBuilder(CertificateAuthority.KeyVersionSpec prototype)
Parameter
NameDescription
prototypeCertificateAuthority.KeyVersionSpec
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec.Builder

parseDelimitedFrom(InputStream input)

public static CertificateAuthority.KeyVersionSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateAuthority.KeyVersionSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CertificateAuthority.KeyVersionSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CertificateAuthority.KeyVersionSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CertificateAuthority.KeyVersionSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CertificateAuthority.KeyVersionSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CertificateAuthority.KeyVersionSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateAuthority.KeyVersionSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CertificateAuthority.KeyVersionSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateAuthority.KeyVersionSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CertificateAuthority.KeyVersionSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CertificateAuthority.KeyVersionSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CertificateAuthority.KeyVersionSpec> parser()
Returns
TypeDescription
Parser<KeyVersionSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
CertificateAuthority.SignHashAlgorithm

The algorithm.

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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cloudKmsKeyVersion.

getDefaultInstanceForType()

public CertificateAuthority.KeyVersionSpec getDefaultInstanceForType()
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec

getKeyVersionCase()

public CertificateAuthority.KeyVersionSpec.KeyVersionCase getKeyVersionCase()
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec.KeyVersionCase

getParserForType()

public Parser<CertificateAuthority.KeyVersionSpec> getParserForType()
Returns
TypeDescription
Parser<KeyVersionSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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
TypeDescription
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
TypeDescription
boolean

Whether the cloudKmsKeyVersion field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CertificateAuthority.KeyVersionSpec.Builder newBuilderForType()
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CertificateAuthority.KeyVersionSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CertificateAuthority.KeyVersionSpec.Builder toBuilder()
Returns
TypeDescription
CertificateAuthority.KeyVersionSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException