Class Resources.AttestorPublicKey.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Resources.AttestorPublicKey.Builder>
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Resources.AttestorPublicKeyOrBuilder,Cloneable
- Enclosing class:
- Resources.AttestorPublicKey
public static final class Resources.AttestorPublicKey.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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).Optional.clearId()The ID of this public key.A raw PKIX SubjectPublicKeyInfo format public key.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.ByteStringASCII-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).Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()The ID of this public key.com.google.protobuf.ByteStringThe ID of this public key.A raw PKIX SubjectPublicKeyInfo format public key.A raw PKIX SubjectPublicKeyInfo format public key.A raw PKIX SubjectPublicKeyInfo format public key.booleanASCII-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).booleanA raw PKIX SubjectPublicKeyInfo format public key.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A raw PKIX SubjectPublicKeyInfo format public key.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).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).setComment(String value) Optional.setCommentBytes(com.google.protobuf.ByteString value) Optional.The ID of this public key.setIdBytes(com.google.protobuf.ByteString value) The ID of this public key.A raw PKIX SubjectPublicKeyInfo format public key.setPkixPublicKey(Resources.PkixPublicKey.Builder builderForValue) A raw PKIX SubjectPublicKeyInfo format public key.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Resources.AttestorPublicKey.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Resources.AttestorPublicKey.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Resources.AttestorPublicKey.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.AttestorPublicKey.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Resources.AttestorPublicKey.Builder>
-
mergeFrom
public Resources.AttestorPublicKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.AttestorPublicKey.Builder>- Throws:
IOException
-
getPublicKeyCase
- Specified by:
getPublicKeyCasein interfaceResources.AttestorPublicKeyOrBuilder
-
clearPublicKey
-
getComment
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCommentin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCommentBytesin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- The bytes for comment.
-
setComment
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCommentBytes
Optional. A descriptive comment. This field may be updated.
string comment = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for comment to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getIdin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- The id.
-
getIdBytes
public 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;- Specified by:
getIdBytesin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- The bytes for id.
-
setId
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;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setIdBytes
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;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasAsciiArmoredPgpPublicKeyin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- Whether the asciiArmoredPgpPublicKey field is set.
-
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;- Specified by:
getAsciiArmoredPgpPublicKeyin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- The asciiArmoredPgpPublicKey.
-
getAsciiArmoredPgpPublicKeyBytes
public 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;- Specified by:
getAsciiArmoredPgpPublicKeyBytesin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- The bytes for asciiArmoredPgpPublicKey.
-
setAsciiArmoredPgpPublicKey
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;- Parameters:
value- The asciiArmoredPgpPublicKey to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAsciiArmoredPgpPublicKeyBytes
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;- Parameters:
value- The bytes for asciiArmoredPgpPublicKey to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasPkixPublicKeyin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- Whether the pkixPublicKey field is set.
-
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;- Specified by:
getPkixPublicKeyin interfaceResources.AttestorPublicKeyOrBuilder- Returns:
- The pkixPublicKey.
-
setPkixPublicKey
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; -
setPkixPublicKey
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; -
mergePkixPublicKey
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; -
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; -
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; -
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;- Specified by:
getPkixPublicKeyOrBuilderin interfaceResources.AttestorPublicKeyOrBuilder
-