Class Resources.AttestorPublicKey.Builder (1.44.0)

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

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

Protobuf type google.cloud.binaryauthorization.v1.AttestorPublicKey

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Resources.AttestorPublicKey build()
Returns
Type Description
Resources.AttestorPublicKey

buildPartial()

public Resources.AttestorPublicKey buildPartial()
Returns
Type Description
Resources.AttestorPublicKey

clear()

public Resources.AttestorPublicKey.Builder clear()
Returns
Type Description
Resources.AttestorPublicKey.Builder
Overrides

clearAsciiArmoredPgpPublicKey()

public Resources.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
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

clearComment()

public Resources.AttestorPublicKey.Builder clearComment()

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

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

Returns
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Resources.AttestorPublicKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Resources.AttestorPublicKey.Builder
Overrides

clearId()

public Resources.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
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Resources.AttestorPublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Resources.AttestorPublicKey.Builder
Overrides

clearPkixPublicKey()

public Resources.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.v1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
Resources.AttestorPublicKey.Builder

clearPublicKey()

public Resources.AttestorPublicKey.Builder clearPublicKey()
Returns
Type Description
Resources.AttestorPublicKey.Builder

clone()

public Resources.AttestorPublicKey.Builder clone()
Returns
Type Description
Resources.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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for comment.

getDefaultInstanceForType()

public Resources.AttestorPublicKey getDefaultInstanceForType()
Returns
Type Description
Resources.AttestorPublicKey

getDescriptorForType()

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

The bytes for id.

getPkixPublicKey()

public Resources.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.v1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
Resources.PkixPublicKey

The pkixPublicKey.

getPkixPublicKeyBuilder()

public Resources.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.v1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
Resources.PkixPublicKey.Builder

getPkixPublicKeyOrBuilder()

public Resources.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.v1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
Resources.PkixPublicKeyOrBuilder

getPublicKeyCase()

public Resources.AttestorPublicKey.PublicKeyCase getPublicKeyCase()
Returns
Type Description
Resources.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
Type Description
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.v1.PkixPublicKey pkix_public_key = 5;

Returns
Type Description
boolean

Whether the pkixPublicKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Resources.AttestorPublicKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Resources.AttestorPublicKey.Builder
Overrides

mergeFrom(Resources.AttestorPublicKey other)

public Resources.AttestorPublicKey.Builder mergeFrom(Resources.AttestorPublicKey other)
Parameter
Name Description
other Resources.AttestorPublicKey
Returns
Type Description
Resources.AttestorPublicKey.Builder

mergePkixPublicKey(Resources.PkixPublicKey value)

public Resources.AttestorPublicKey.Builder mergePkixPublicKey(Resources.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.v1.PkixPublicKey pkix_public_key = 5;

Parameter
Name Description
value Resources.PkixPublicKey
Returns
Type Description
Resources.AttestorPublicKey.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Resources.AttestorPublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Resources.AttestorPublicKey.Builder
Overrides

setAsciiArmoredPgpPublicKey(String value)

public Resources.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
Name Description
value String

The asciiArmoredPgpPublicKey to set.

Returns
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

setAsciiArmoredPgpPublicKeyBytes(ByteString value)

public Resources.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
Name Description
value ByteString

The bytes for asciiArmoredPgpPublicKey to set.

Returns
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

setComment(String value)

public Resources.AttestorPublicKey.Builder setComment(String value)

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

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

Parameter
Name Description
value String

The comment to set.

Returns
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public Resources.AttestorPublicKey.Builder setCommentBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for comment to set.

Returns
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public Resources.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
Name Description
value String

The id to set.

Returns
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Resources.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
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Resources.AttestorPublicKey.Builder

This builder for chaining.

setPkixPublicKey(Resources.PkixPublicKey value)

public Resources.AttestorPublicKey.Builder setPkixPublicKey(Resources.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.v1.PkixPublicKey pkix_public_key = 5;

Parameter
Name Description
value Resources.PkixPublicKey
Returns
Type Description
Resources.AttestorPublicKey.Builder

setPkixPublicKey(Resources.PkixPublicKey.Builder builderForValue)

public Resources.AttestorPublicKey.Builder setPkixPublicKey(Resources.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.v1.PkixPublicKey pkix_public_key = 5;

Parameter
Name Description
builderForValue Resources.PkixPublicKey.Builder
Returns
Type Description
Resources.AttestorPublicKey.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Resources.AttestorPublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Resources.AttestorPublicKey.Builder
Overrides