Class GenericSignedAttestation.Builder

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

    public static final class GenericSignedAttestation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GenericSignedAttestation.Builder>
    implements GenericSignedAttestationOrBuilder
     An attestation wrapper that uses the Grafeas `Signature` message.
     This attestation must define the `serialized_payload` that the `signatures`
     verify and any metadata necessary to interpret that plaintext.  The
     signatures should always be over the `serialized_payload` bytestring.
     
    Protobuf type grafeas.v1beta1.attestation.GenericSignedAttestation
    • 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<GenericSignedAttestation.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<GenericSignedAttestation.Builder>
      • getDefaultInstanceForType

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

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

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

        public GenericSignedAttestation.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<GenericSignedAttestation.Builder>
      • addRepeatedField

        public GenericSignedAttestation.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<GenericSignedAttestation.Builder>
      • isInitialized

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

        public GenericSignedAttestation.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<GenericSignedAttestation.Builder>
        Throws:
        IOException
      • getContentTypeValue

        public int getContentTypeValue()
         Type (for example schema) of the attestation payload that was signed.
         The verifier must ensure that the provided type is one that the verifier
         supports, and that the attestation payload is a valid instantiation of that
         type (for example by validating a JSON schema).
         
        .grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;
        Specified by:
        getContentTypeValue in interface GenericSignedAttestationOrBuilder
        Returns:
        The enum numeric value on the wire for contentType.
      • setContentTypeValue

        public GenericSignedAttestation.Builder setContentTypeValue​(int value)
         Type (for example schema) of the attestation payload that was signed.
         The verifier must ensure that the provided type is one that the verifier
         supports, and that the attestation payload is a valid instantiation of that
         type (for example by validating a JSON schema).
         
        .grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;
        Parameters:
        value - The enum numeric value on the wire for contentType to set.
        Returns:
        This builder for chaining.
      • getContentType

        public GenericSignedAttestation.ContentType getContentType()
         Type (for example schema) of the attestation payload that was signed.
         The verifier must ensure that the provided type is one that the verifier
         supports, and that the attestation payload is a valid instantiation of that
         type (for example by validating a JSON schema).
         
        .grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;
        Specified by:
        getContentType in interface GenericSignedAttestationOrBuilder
        Returns:
        The contentType.
      • setContentType

        public GenericSignedAttestation.Builder setContentType​(GenericSignedAttestation.ContentType value)
         Type (for example schema) of the attestation payload that was signed.
         The verifier must ensure that the provided type is one that the verifier
         supports, and that the attestation payload is a valid instantiation of that
         type (for example by validating a JSON schema).
         
        .grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;
        Parameters:
        value - The contentType to set.
        Returns:
        This builder for chaining.
      • clearContentType

        public GenericSignedAttestation.Builder clearContentType()
         Type (for example schema) of the attestation payload that was signed.
         The verifier must ensure that the provided type is one that the verifier
         supports, and that the attestation payload is a valid instantiation of that
         type (for example by validating a JSON schema).
         
        .grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType content_type = 1;
        Returns:
        This builder for chaining.
      • getSerializedPayload

        public com.google.protobuf.ByteString getSerializedPayload()
         The serialized payload that is verified by one or more `signatures`.
         The encoding and semantic meaning of this payload must match what is set in
         `content_type`.
         
        bytes serialized_payload = 2;
        Specified by:
        getSerializedPayload in interface GenericSignedAttestationOrBuilder
        Returns:
        The serializedPayload.
      • setSerializedPayload

        public GenericSignedAttestation.Builder setSerializedPayload​(com.google.protobuf.ByteString value)
         The serialized payload that is verified by one or more `signatures`.
         The encoding and semantic meaning of this payload must match what is set in
         `content_type`.
         
        bytes serialized_payload = 2;
        Parameters:
        value - The serializedPayload to set.
        Returns:
        This builder for chaining.
      • clearSerializedPayload

        public GenericSignedAttestation.Builder clearSerializedPayload()
         The serialized payload that is verified by one or more `signatures`.
         The encoding and semantic meaning of this payload must match what is set in
         `content_type`.
         
        bytes serialized_payload = 2;
        Returns:
        This builder for chaining.
      • getSignaturesList

        public List<Signature> getSignaturesList()
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
        Specified by:
        getSignaturesList in interface GenericSignedAttestationOrBuilder
      • getSignaturesCount

        public int getSignaturesCount()
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
        Specified by:
        getSignaturesCount in interface GenericSignedAttestationOrBuilder
      • getSignatures

        public Signature getSignatures​(int index)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
        Specified by:
        getSignatures in interface GenericSignedAttestationOrBuilder
      • setSignatures

        public GenericSignedAttestation.Builder setSignatures​(int index,
                                                              Signature value)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • setSignatures

        public GenericSignedAttestation.Builder setSignatures​(int index,
                                                              Signature.Builder builderForValue)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • addSignatures

        public GenericSignedAttestation.Builder addSignatures​(Signature value)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • addSignatures

        public GenericSignedAttestation.Builder addSignatures​(int index,
                                                              Signature value)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • addSignatures

        public GenericSignedAttestation.Builder addSignatures​(Signature.Builder builderForValue)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • addSignatures

        public GenericSignedAttestation.Builder addSignatures​(int index,
                                                              Signature.Builder builderForValue)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • addAllSignatures

        public GenericSignedAttestation.Builder addAllSignatures​(Iterable<? extends Signature> values)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • clearSignatures

        public GenericSignedAttestation.Builder clearSignatures()
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • removeSignatures

        public GenericSignedAttestation.Builder removeSignatures​(int index)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • getSignaturesBuilder

        public Signature.Builder getSignaturesBuilder​(int index)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • getSignaturesOrBuilder

        public SignatureOrBuilder getSignaturesOrBuilder​(int index)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
        Specified by:
        getSignaturesOrBuilder in interface GenericSignedAttestationOrBuilder
      • getSignaturesOrBuilderList

        public List<? extends SignatureOrBuilder> getSignaturesOrBuilderList()
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
        Specified by:
        getSignaturesOrBuilderList in interface GenericSignedAttestationOrBuilder
      • addSignaturesBuilder

        public Signature.Builder addSignaturesBuilder()
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • addSignaturesBuilder

        public Signature.Builder addSignaturesBuilder​(int index)
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • getSignaturesBuilderList

        public List<Signature.Builder> getSignaturesBuilderList()
         One or more signatures over `serialized_payload`.  Verifier implementations
         should consider this attestation message verified if at least one
         `signature` verifies `serialized_payload`.  See `Signature` in common.proto
         for more details on signature structure and verification.
         
        repeated .grafeas.v1beta1.Signature signatures = 3;
      • setUnknownFields

        public final GenericSignedAttestation.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<GenericSignedAttestation.Builder>
      • mergeUnknownFields

        public final GenericSignedAttestation.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<GenericSignedAttestation.Builder>