Class CertificateDescription.KeyId.Builder (2.48.0)

public static final class CertificateDescription.KeyId.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.KeyId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public CertificateDescription.KeyId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateDescription.KeyId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.KeyId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.KeyId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CertificateDescription.KeyId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.KeyId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CertificateDescription.KeyId.Builder
Overrides