Class CertificateConfig.KeyId.Builder (2.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CertificateConfig.KeyId other)

public CertificateConfig.KeyId.Builder mergeFrom(CertificateConfig.KeyId other)
Parameter
NameDescription
otherCertificateConfig.KeyId
Returns
TypeDescription
CertificateConfig.KeyId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The keyId to set.

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

The bytes for keyId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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