Class AttestorPublicKey.Builder (1.3.0)

public static final class AttestorPublicKey.Builder extends GeneratedMessageV3.Builder<AttestorPublicKey.Builder> implements AttestorPublicKeyOrBuilder

An attestor public key that will be used to verify attestations signed by this attestor.

Protobuf type google.cloud.binaryauthorization.v1beta1.AttestorPublicKey

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttestorPublicKey build()
Returns
TypeDescription
AttestorPublicKey

buildPartial()

public AttestorPublicKey buildPartial()
Returns
TypeDescription
AttestorPublicKey

clear()

public AttestorPublicKey.Builder clear()
Returns
TypeDescription
AttestorPublicKey.Builder
Overrides

clearAsciiArmoredPgpPublicKey()

public AttestorPublicKey.Builder clearAsciiArmoredPgpPublicKey()

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

clearComment()

public AttestorPublicKey.Builder clearComment()

Optional. A descriptive comment. This field may be updated.

string comment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public AttestorPublicKey.Builder clearId()

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

string id = 2;

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPkixPublicKey()

public AttestorPublicKey.Builder clearPkixPublicKey()

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
AttestorPublicKey.Builder

clearPublicKey()

public AttestorPublicKey.Builder clearPublicKey()
Returns
TypeDescription
AttestorPublicKey.Builder

clone()

public AttestorPublicKey.Builder clone()
Returns
TypeDescription
AttestorPublicKey.Builder
Overrides

getAsciiArmoredPgpPublicKey()

public String getAsciiArmoredPgpPublicKey()

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Returns
TypeDescription
String

The asciiArmoredPgpPublicKey.

getAsciiArmoredPgpPublicKeyBytes()

public ByteString getAsciiArmoredPgpPublicKeyBytes()

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Returns
TypeDescription
ByteString

The bytes for asciiArmoredPgpPublicKey.

getComment()

public String getComment()

Optional. A descriptive comment. This field may be updated.

string comment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Optional. A descriptive comment. This field may be updated.

string comment = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for comment.

getDefaultInstanceForType()

public AttestorPublicKey getDefaultInstanceForType()
Returns
TypeDescription
AttestorPublicKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

string id = 2;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

string id = 2;

Returns
TypeDescription
ByteString

The bytes for id.

getPkixPublicKey()

public PkixPublicKey getPkixPublicKey()

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
PkixPublicKey

The pkixPublicKey.

getPkixPublicKeyBuilder()

public PkixPublicKey.Builder getPkixPublicKeyBuilder()

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
PkixPublicKey.Builder

getPkixPublicKeyOrBuilder()

public PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder()

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
PkixPublicKeyOrBuilder

getPublicKeyCase()

public AttestorPublicKey.PublicKeyCase getPublicKeyCase()
Returns
TypeDescription
AttestorPublicKey.PublicKeyCase

hasAsciiArmoredPgpPublicKey()

public boolean hasAsciiArmoredPgpPublicKey()

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Returns
TypeDescription
boolean

Whether the asciiArmoredPgpPublicKey field is set.

hasPkixPublicKey()

public boolean hasPkixPublicKey()

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Returns
TypeDescription
boolean

Whether the pkixPublicKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttestorPublicKey other)

public AttestorPublicKey.Builder mergeFrom(AttestorPublicKey other)
Parameter
NameDescription
otherAttestorPublicKey
Returns
TypeDescription
AttestorPublicKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePkixPublicKey(PkixPublicKey value)

public AttestorPublicKey.Builder mergePkixPublicKey(PkixPublicKey value)

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Parameter
NameDescription
valuePkixPublicKey
Returns
TypeDescription
AttestorPublicKey.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAsciiArmoredPgpPublicKey(String value)

public AttestorPublicKey.Builder setAsciiArmoredPgpPublicKey(String value)

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Parameter
NameDescription
valueString

The asciiArmoredPgpPublicKey to set.

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

setAsciiArmoredPgpPublicKeyBytes(ByteString value)

public AttestorPublicKey.Builder setAsciiArmoredPgpPublicKeyBytes(ByteString value)

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

string ascii_armored_pgp_public_key = 3;

Parameter
NameDescription
valueByteString

The bytes for asciiArmoredPgpPublicKey to set.

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

setComment(String value)

public AttestorPublicKey.Builder setComment(String value)

Optional. A descriptive comment. This field may be updated.

string comment = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The comment to set.

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public AttestorPublicKey.Builder setCommentBytes(ByteString value)

Optional. A descriptive comment. This field may be updated.

string comment = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for comment to set.

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public AttestorPublicKey.Builder setId(String value)

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

string id = 2;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

setIdBytes(ByteString value)

public AttestorPublicKey.Builder setIdBytes(ByteString value)

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

string id = 2;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
AttestorPublicKey.Builder

This builder for chaining.

setPkixPublicKey(PkixPublicKey value)

public AttestorPublicKey.Builder setPkixPublicKey(PkixPublicKey value)

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Parameter
NameDescription
valuePkixPublicKey
Returns
TypeDescription
AttestorPublicKey.Builder

setPkixPublicKey(PkixPublicKey.Builder builderForValue)

public AttestorPublicKey.Builder setPkixPublicKey(PkixPublicKey.Builder builderForValue)

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

.google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;

Parameter
NameDescription
builderForValuePkixPublicKey.Builder
Returns
TypeDescription
AttestorPublicKey.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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