Class CertificateDescription.KeyId.Builder (2.8.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.v1.CertificateDescription.KeyId

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.KeyId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides

build()

public CertificateDescription.KeyId build()
Returns
TypeDescription
CertificateDescription.KeyId

buildPartial()

public CertificateDescription.KeyId buildPartial()
Returns
TypeDescription
CertificateDescription.KeyId

clear()

public CertificateDescription.KeyId.Builder clear()
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CertificateDescription.KeyId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CertificateDescription.KeyId.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CertificateDescription.KeyId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides

clone()

public CertificateDescription.KeyId.Builder clone()
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for keyId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateDescription.KeyId other)

public CertificateDescription.KeyId.Builder mergeFrom(CertificateDescription.KeyId other)
Parameter
NameDescription
otherCertificateDescription.KeyId
Returns
TypeDescription
CertificateDescription.KeyId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CertificateDescription.KeyId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CertificateDescription.KeyId.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.KeyId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CertificateDescription.KeyId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The keyId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for keyId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CertificateDescription.KeyId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CertificateDescription.KeyId.Builder
Overrides