Class AttestorPublicKey.Builder

  • All Implemented Interfaces:
    AttestorPublicKeyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AttestorPublicKey

    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • clear

        public AttestorPublicKey.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • getDefaultInstanceForType

        public AttestorPublicKey getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AttestorPublicKey build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AttestorPublicKey buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AttestorPublicKey.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • setField

        public AttestorPublicKey.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • clearField

        public AttestorPublicKey.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • clearOneof

        public AttestorPublicKey.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • setRepeatedField

        public AttestorPublicKey.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • addRepeatedField

        public AttestorPublicKey.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • mergeFrom

        public AttestorPublicKey.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttestorPublicKey.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • mergeFrom

        public AttestorPublicKey.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttestorPublicKey.Builder>
        Throws:
        IOException
      • getComment

        public String getComment()
         Optional. A descriptive comment. This field may be updated.
         
        string comment = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getComment in interface 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:
        getCommentBytes in interface AttestorPublicKeyOrBuilder
        Returns:
        The bytes for comment.
      • setComment

        public AttestorPublicKey.Builder setComment​(String value)
         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

        public AttestorPublicKey.Builder clearComment()
         Optional. A descriptive comment. This field may be updated.
         
        string comment = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setCommentBytes

        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];
        Parameters:
        value - The bytes for comment to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getId in interface 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:
        getIdBytes in interface AttestorPublicKeyOrBuilder
        Returns:
        The bytes for id.
      • setId

        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;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setIdBytes

        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;
        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:
        hasAsciiArmoredPgpPublicKey in interface AttestorPublicKeyOrBuilder
        Returns:
        Whether the asciiArmoredPgpPublicKey field is set.
      • 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;
        Specified by:
        getAsciiArmoredPgpPublicKey in interface 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:
        getAsciiArmoredPgpPublicKeyBytes in interface AttestorPublicKeyOrBuilder
        Returns:
        The bytes for asciiArmoredPgpPublicKey.
      • setAsciiArmoredPgpPublicKey

        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;
        Parameters:
        value - The asciiArmoredPgpPublicKey to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setAsciiArmoredPgpPublicKeyBytes

        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;
        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.v1beta1.PkixPublicKey pkix_public_key = 5;
        Specified by:
        hasPkixPublicKey in interface AttestorPublicKeyOrBuilder
        Returns:
        Whether the pkixPublicKey field is set.
      • 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;
        Specified by:
        getPkixPublicKey in interface AttestorPublicKeyOrBuilder
        Returns:
        The pkixPublicKey.
      • setPkixPublicKey

        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;
      • setPkixPublicKey

        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;
      • mergePkixPublicKey

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getPkixPublicKeyOrBuilder in interface AttestorPublicKeyOrBuilder
      • setUnknownFields

        public final AttestorPublicKey.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>
      • mergeUnknownFields

        public final AttestorPublicKey.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttestorPublicKey.Builder>