Class CertificateConfig.KeyId (2.43.0)

public static final class CertificateConfig.KeyId extends GeneratedMessageV3 implements CertificateConfig.KeyIdOrBuilder

A KeyId identifies a specific public key, usually by hashing the public key.

Protobuf type google.cloud.security.privateca.v1.CertificateConfig.KeyId

Static Fields

KEY_ID_FIELD_NUMBER

public static final int KEY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CertificateConfig.KeyId getDefaultInstance()
Returns
TypeDescription
CertificateConfig.KeyId

getDescriptor()

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

newBuilder()

public static CertificateConfig.KeyId.Builder newBuilder()
Returns
TypeDescription
CertificateConfig.KeyId.Builder

newBuilder(CertificateConfig.KeyId prototype)

public static CertificateConfig.KeyId.Builder newBuilder(CertificateConfig.KeyId prototype)
Parameter
NameDescription
prototypeCertificateConfig.KeyId
Returns
TypeDescription
CertificateConfig.KeyId.Builder

parseDelimitedFrom(InputStream input)

public static CertificateConfig.KeyId parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateConfig.KeyId
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CertificateConfig.KeyId parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CertificateConfig.KeyId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CertificateConfig.KeyId parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CertificateConfig.KeyId
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CertificateConfig.KeyId parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateConfig.KeyId
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CertificateConfig.KeyId parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CertificateConfig.KeyId
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CertificateConfig.KeyId> parser()
Returns
TypeDescription
Parser<KeyId>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CertificateConfig.KeyId getDefaultInstanceForType()
Returns
TypeDescription
CertificateConfig.KeyId

getKeyId()

public String getKeyId()

Required. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key.

string key_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The keyId.

getKeyIdBytes()

public ByteString getKeyIdBytes()

Required. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key.

string key_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for keyId.

getParserForType()

public Parser<CertificateConfig.KeyId> getParserForType()
Returns
TypeDescription
Parser<KeyId>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 CertificateConfig.KeyId.Builder newBuilderForType()
Returns
TypeDescription
CertificateConfig.KeyId.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CertificateConfig.KeyId.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CertificateConfig.KeyId.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CertificateConfig.KeyId.Builder toBuilder()
Returns
TypeDescription
CertificateConfig.KeyId.Builder

writeTo(CodedOutputStream output)

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