Class CertificateConfig.KeyId.Builder (2.47.0)

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

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CertificateConfig.KeyId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CertificateConfig.KeyId.Builder
Overrides

clearKeyId()

public CertificateConfig.KeyId.Builder clearKeyId()

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
Type Description
CertificateConfig.KeyId.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

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
Type Description
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
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(CertificateConfig.KeyId other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyId(String value)

public CertificateConfig.KeyId.Builder setKeyId(String value)

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];

Parameter
Name Description
value String

The keyId to set.

Returns
Type Description
CertificateConfig.KeyId.Builder

This builder for chaining.

setKeyIdBytes(ByteString value)

public CertificateConfig.KeyId.Builder setKeyIdBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for keyId to set.

Returns
Type Description
CertificateConfig.KeyId.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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