public static final class Resources.AttestorPublicKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.AttestorPublicKey.Builder> implements Resources.AttestorPublicKeyOrBuilder
An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify attestations signed by this attestor.Protobuf type
google.cloud.binaryauthorization.v1.AttestorPublicKey| Modifier and Type | Method and Description |
|---|---|
Resources.AttestorPublicKey.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Resources.AttestorPublicKey |
build() |
Resources.AttestorPublicKey |
buildPartial() |
Resources.AttestorPublicKey.Builder |
clear() |
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).
|
Resources.AttestorPublicKey.Builder |
clearComment()
Optional.
|
Resources.AttestorPublicKey.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Resources.AttestorPublicKey.Builder |
clearId()
The ID of this public key.
|
Resources.AttestorPublicKey.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Resources.AttestorPublicKey.Builder |
clearPkixPublicKey()
A raw PKIX SubjectPublicKeyInfo format public key.
|
Resources.AttestorPublicKey.Builder |
clearPublicKey() |
Resources.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.
|
Resources.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.
|
Resources.PkixPublicKey |
getPkixPublicKey()
A raw PKIX SubjectPublicKeyInfo format public key.
|
Resources.PkixPublicKey.Builder |
getPkixPublicKeyBuilder()
A raw PKIX SubjectPublicKeyInfo format public key.
|
Resources.PkixPublicKeyOrBuilder |
getPkixPublicKeyOrBuilder()
A raw PKIX SubjectPublicKeyInfo format public key.
|
Resources.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() |
Resources.AttestorPublicKey.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Resources.AttestorPublicKey.Builder |
mergeFrom(com.google.protobuf.Message other) |
Resources.AttestorPublicKey.Builder |
mergeFrom(Resources.AttestorPublicKey other) |
Resources.AttestorPublicKey.Builder |
mergePkixPublicKey(Resources.PkixPublicKey value)
A raw PKIX SubjectPublicKeyInfo format public key.
|
Resources.AttestorPublicKey.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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).
|
Resources.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).
|
Resources.AttestorPublicKey.Builder |
setComment(String value)
Optional.
|
Resources.AttestorPublicKey.Builder |
setCommentBytes(com.google.protobuf.ByteString value)
Optional.
|
Resources.AttestorPublicKey.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Resources.AttestorPublicKey.Builder |
setId(String value)
The ID of this public key.
|
Resources.AttestorPublicKey.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The ID of this public key.
|
Resources.AttestorPublicKey.Builder |
setPkixPublicKey(Resources.PkixPublicKey.Builder builderForValue)
A raw PKIX SubjectPublicKeyInfo format public key.
|
Resources.AttestorPublicKey.Builder |
setPkixPublicKey(Resources.PkixPublicKey value)
A raw PKIX SubjectPublicKeyInfo format public key.
|
Resources.AttestorPublicKey.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Resources.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<Resources.AttestorPublicKey.Builder>public Resources.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<Resources.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<Resources.AttestorPublicKey.Builder>public Resources.AttestorPublicKey getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Resources.AttestorPublicKey build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Resources.AttestorPublicKey buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Resources.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<Resources.AttestorPublicKey.Builder>public Resources.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<Resources.AttestorPublicKey.Builder>public Resources.AttestorPublicKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.AttestorPublicKey.Builder>public Resources.AttestorPublicKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.AttestorPublicKey.Builder>public Resources.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<Resources.AttestorPublicKey.Builder>public Resources.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<Resources.AttestorPublicKey.Builder>public Resources.AttestorPublicKey.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Resources.AttestorPublicKey.Builder>public Resources.AttestorPublicKey.Builder mergeFrom(Resources.AttestorPublicKey other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.AttestorPublicKey.Builder>public Resources.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<Resources.AttestorPublicKey.Builder>IOExceptionpublic Resources.AttestorPublicKey.PublicKeyCase getPublicKeyCase()
getPublicKeyCase in interface Resources.AttestorPublicKeyOrBuilderpublic Resources.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 Resources.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 Resources.AttestorPublicKeyOrBuilderpublic Resources.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 Resources.AttestorPublicKey.Builder clearComment()
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];public Resources.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 Resources.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 Resources.AttestorPublicKeyOrBuilderpublic 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;value - The id to set.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;public Resources.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 Resources.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 Resources.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 Resources.AttestorPublicKeyOrBuilderpublic 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;value - The asciiArmoredPgpPublicKey to set.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;public Resources.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.v1.PkixPublicKey pkix_public_key = 5;hasPkixPublicKey in interface Resources.AttestorPublicKeyOrBuilderpublic 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;getPkixPublicKey in interface Resources.AttestorPublicKeyOrBuilderpublic 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;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;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;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;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;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;getPkixPublicKeyOrBuilder in interface Resources.AttestorPublicKeyOrBuilderpublic final Resources.AttestorPublicKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.AttestorPublicKey.Builder>public final Resources.AttestorPublicKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.AttestorPublicKey.Builder>Copyright © 2024 Google LLC. All rights reserved.