public static final class AttestorPublicKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder> implements AttestorPublicKeyOrBuilder
An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify attestations signed by this attestor.Protobuf type
google.cloud.binaryauthorization.v1beta1.AttestorPublicKey| Modifier and Type | Method and Description |
|---|---|
AttestorPublicKey.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttestorPublicKey |
build() |
AttestorPublicKey |
buildPartial() |
AttestorPublicKey.Builder |
clear() |
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).
|
AttestorPublicKey.Builder |
clearComment()
Optional.
|
AttestorPublicKey.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttestorPublicKey.Builder |
clearId()
The ID of this public key.
|
AttestorPublicKey.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttestorPublicKey.Builder |
clearPkixPublicKey()
A raw PKIX SubjectPublicKeyInfo format public key.
|
AttestorPublicKey.Builder |
clearPublicKey() |
AttestorPublicKey.Builder |
clone() |
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).
|
com.google.protobuf.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).
|
String |
getComment()
Optional.
|
com.google.protobuf.ByteString |
getCommentBytes()
Optional.
|
AttestorPublicKey |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getId()
The ID of this public key.
|
com.google.protobuf.ByteString |
getIdBytes()
The ID of this public key.
|
PkixPublicKey |
getPkixPublicKey()
A raw PKIX SubjectPublicKeyInfo format public key.
|
PkixPublicKey.Builder |
getPkixPublicKeyBuilder()
A raw PKIX SubjectPublicKeyInfo format public key.
|
PkixPublicKeyOrBuilder |
getPkixPublicKeyOrBuilder()
A raw PKIX SubjectPublicKeyInfo format public key.
|
AttestorPublicKey.PublicKeyCase |
getPublicKeyCase() |
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).
|
boolean |
hasPkixPublicKey()
A raw PKIX SubjectPublicKeyInfo format public key.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AttestorPublicKey.Builder |
mergeFrom(AttestorPublicKey other) |
AttestorPublicKey.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttestorPublicKey.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttestorPublicKey.Builder |
mergePkixPublicKey(PkixPublicKey value)
A raw PKIX SubjectPublicKeyInfo format public key.
|
AttestorPublicKey.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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).
|
AttestorPublicKey.Builder |
setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.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).
|
AttestorPublicKey.Builder |
setComment(String value)
Optional.
|
AttestorPublicKey.Builder |
setCommentBytes(com.google.protobuf.ByteString value)
Optional.
|
AttestorPublicKey.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttestorPublicKey.Builder |
setId(String value)
The ID of this public key.
|
AttestorPublicKey.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The ID of this public key.
|
AttestorPublicKey.Builder |
setPkixPublicKey(PkixPublicKey.Builder builderForValue)
A raw PKIX SubjectPublicKeyInfo format public key.
|
AttestorPublicKey.Builder |
setPkixPublicKey(PkixPublicKey value)
A raw PKIX SubjectPublicKeyInfo format public key.
|
AttestorPublicKey.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttestorPublicKey.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttestorPublicKey build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttestorPublicKey buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttestorPublicKey.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder mergeFrom(AttestorPublicKey other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public AttestorPublicKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttestorPublicKey.Builder>IOExceptionpublic AttestorPublicKey.PublicKeyCase getPublicKeyCase()
getPublicKeyCase in interface AttestorPublicKeyOrBuilderpublic AttestorPublicKey.Builder clearPublicKey()
public String getComment()
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];getComment in interface AttestorPublicKeyOrBuilderpublic com.google.protobuf.ByteString getCommentBytes()
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];getCommentBytes in interface AttestorPublicKeyOrBuilderpublic AttestorPublicKey.Builder setComment(String value)
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];value - The comment to set.public AttestorPublicKey.Builder clearComment()
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];public AttestorPublicKey.Builder setCommentBytes(com.google.protobuf.ByteString value)
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for comment to set.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;getId in interface AttestorPublicKeyOrBuilderpublic com.google.protobuf.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;getIdBytes in interface AttestorPublicKeyOrBuilderpublic 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;value - The id to set.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;public AttestorPublicKey.Builder setIdBytes(com.google.protobuf.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;value - The bytes for id to set.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;hasAsciiArmoredPgpPublicKey in interface AttestorPublicKeyOrBuilderpublic 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;getAsciiArmoredPgpPublicKey in interface AttestorPublicKeyOrBuilderpublic com.google.protobuf.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;getAsciiArmoredPgpPublicKeyBytes in interface AttestorPublicKeyOrBuilderpublic 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;value - The asciiArmoredPgpPublicKey to set.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;public AttestorPublicKey.Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.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;value - The bytes for asciiArmoredPgpPublicKey to set.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;hasPkixPublicKey in interface AttestorPublicKeyOrBuilderpublic 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;getPkixPublicKey in interface AttestorPublicKeyOrBuilderpublic 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;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;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;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;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;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;getPkixPublicKeyOrBuilder in interface AttestorPublicKeyOrBuilderpublic final AttestorPublicKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>public final AttestorPublicKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>Copyright © 2023 Google LLC. All rights reserved.