Class Resources.PkixPublicKey.Builder (1.15.0)

public static final class Resources.PkixPublicKey.Builder extends GeneratedMessageV3.Builder<Resources.PkixPublicKey.Builder> implements Resources.PkixPublicKeyOrBuilder

A public key in the PkixPublicKey format (see https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). Public keys of this type are typically textually encoded using the PEM format.

Protobuf type google.cloud.binaryauthorization.v1.PkixPublicKey

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Resources.PkixPublicKey build()
Returns
TypeDescription
Resources.PkixPublicKey

buildPartial()

public Resources.PkixPublicKey buildPartial()
Returns
TypeDescription
Resources.PkixPublicKey

clear()

public Resources.PkixPublicKey.Builder clear()
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Resources.PkixPublicKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Resources.PkixPublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

clearPublicKeyPem()

public Resources.PkixPublicKey.Builder clearPublicKeyPem()

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

string public_key_pem = 1;

Returns
TypeDescription
Resources.PkixPublicKey.Builder

This builder for chaining.

clearSignatureAlgorithm()

public Resources.PkixPublicKey.Builder clearSignatureAlgorithm()

The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;

Returns
TypeDescription
Resources.PkixPublicKey.Builder

This builder for chaining.

clone()

public Resources.PkixPublicKey.Builder clone()
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

getDefaultInstanceForType()

public Resources.PkixPublicKey getDefaultInstanceForType()
Returns
TypeDescription
Resources.PkixPublicKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPublicKeyPem()

public String getPublicKeyPem()

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

string public_key_pem = 1;

Returns
TypeDescription
String

The publicKeyPem.

getPublicKeyPemBytes()

public ByteString getPublicKeyPemBytes()

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

string public_key_pem = 1;

Returns
TypeDescription
ByteString

The bytes for publicKeyPem.

getSignatureAlgorithm()

public Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm()

The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;

Returns
TypeDescription
Resources.PkixPublicKey.SignatureAlgorithm

The signatureAlgorithm.

getSignatureAlgorithmValue()

public int getSignatureAlgorithmValue()

The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for signatureAlgorithm.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Resources.PkixPublicKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

mergeFrom(Resources.PkixPublicKey other)

public Resources.PkixPublicKey.Builder mergeFrom(Resources.PkixPublicKey other)
Parameter
NameDescription
otherResources.PkixPublicKey
Returns
TypeDescription
Resources.PkixPublicKey.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Resources.PkixPublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Resources.PkixPublicKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

setPublicKeyPem(String value)

public Resources.PkixPublicKey.Builder setPublicKeyPem(String value)

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

string public_key_pem = 1;

Parameter
NameDescription
valueString

The publicKeyPem to set.

Returns
TypeDescription
Resources.PkixPublicKey.Builder

This builder for chaining.

setPublicKeyPemBytes(ByteString value)

public Resources.PkixPublicKey.Builder setPublicKeyPemBytes(ByteString value)

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

string public_key_pem = 1;

Parameter
NameDescription
valueByteString

The bytes for publicKeyPem to set.

Returns
TypeDescription
Resources.PkixPublicKey.Builder

This builder for chaining.

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

public Resources.PkixPublicKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides

setSignatureAlgorithm(Resources.PkixPublicKey.SignatureAlgorithm value)

public Resources.PkixPublicKey.Builder setSignatureAlgorithm(Resources.PkixPublicKey.SignatureAlgorithm value)

The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;

Parameter
NameDescription
valueResources.PkixPublicKey.SignatureAlgorithm

The signatureAlgorithm to set.

Returns
TypeDescription
Resources.PkixPublicKey.Builder

This builder for chaining.

setSignatureAlgorithmValue(int value)

public Resources.PkixPublicKey.Builder setSignatureAlgorithmValue(int value)

The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

.google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for signatureAlgorithm to set.

Returns
TypeDescription
Resources.PkixPublicKey.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Resources.PkixPublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Resources.PkixPublicKey.Builder
Overrides