Class CertificateDescription.KeyId.Builder (2.85.0)

public static final class CertificateDescription.KeyId.Builder extends GeneratedMessage.Builder<CertificateDescription.KeyId.Builder> implements CertificateDescription.KeyIdOrBuilder

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

Protobuf type google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CertificateDescription.KeyId build()
Returns
Type Description
CertificateDescription.KeyId

buildPartial()

public CertificateDescription.KeyId buildPartial()
Returns
Type Description
CertificateDescription.KeyId

clear()

public CertificateDescription.KeyId.Builder clear()
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides

clearKeyId()

public CertificateDescription.KeyId.Builder clearKeyId()

Optional. 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) = OPTIONAL];

Returns
Type Description
CertificateDescription.KeyId.Builder

This builder for chaining.

getDefaultInstanceForType()

public CertificateDescription.KeyId getDefaultInstanceForType()
Returns
Type Description
CertificateDescription.KeyId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKeyId()

public String getKeyId()

Optional. 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) = OPTIONAL];

Returns
Type Description
String

The keyId.

getKeyIdBytes()

public ByteString getKeyIdBytes()

Optional. 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) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for keyId.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CertificateDescription.KeyId other)

public CertificateDescription.KeyId.Builder mergeFrom(CertificateDescription.KeyId other)
Parameter
Name Description
other CertificateDescription.KeyId
Returns
Type Description
CertificateDescription.KeyId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateDescription.KeyId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CertificateDescription.KeyId.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides

setKeyId(String value)

public CertificateDescription.KeyId.Builder setKeyId(String value)

Optional. 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) = OPTIONAL];

Parameter
Name Description
value String

The keyId to set.

Returns
Type Description
CertificateDescription.KeyId.Builder

This builder for chaining.

setKeyIdBytes(ByteString value)

public CertificateDescription.KeyId.Builder setKeyIdBytes(ByteString value)

Optional. 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) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for keyId to set.

Returns
Type Description
CertificateDescription.KeyId.Builder

This builder for chaining.