Class Input.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InputOrBuilder, java.lang.Cloneable
    Enclosing class:
    Input

    public static final class Input.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Input.Builder>
    implements InputOrBuilder
     Input captures all that is needed to call the bundle verification method,
     to verify a single artifact referenced by the bundle.
     
    Protobuf type dev.sigstore.verification.v1.Input
    • Method Detail

      • getDescriptor

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

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

        public Input.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.GeneratedMessage.Builder<Input.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.GeneratedMessage.Builder<Input.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

        public Input.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws java.io.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<Input.Builder>
        Throws:
        java.io.IOException
      • hasArtifactTrustRoot

        public boolean hasArtifactTrustRoot()
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
        Specified by:
        hasArtifactTrustRoot in interface InputOrBuilder
        Returns:
        Whether the artifactTrustRoot field is set.
      • getArtifactTrustRoot

        public TrustedRoot getArtifactTrustRoot()
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
        Specified by:
        getArtifactTrustRoot in interface InputOrBuilder
        Returns:
        The artifactTrustRoot.
      • setArtifactTrustRoot

        public Input.Builder setArtifactTrustRoot​(TrustedRoot value)
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
      • setArtifactTrustRoot

        public Input.Builder setArtifactTrustRoot​(TrustedRoot.Builder builderForValue)
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
      • mergeArtifactTrustRoot

        public Input.Builder mergeArtifactTrustRoot​(TrustedRoot value)
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
      • clearArtifactTrustRoot

        public Input.Builder clearArtifactTrustRoot()
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
      • getArtifactTrustRootBuilder

        public TrustedRoot.Builder getArtifactTrustRootBuilder()
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
      • getArtifactTrustRootOrBuilder

        public TrustedRootOrBuilder getArtifactTrustRootOrBuilder()
         The verification materials provided during a bundle verification.
         The running process is usually preloaded with a "global"
         dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to
         verifying an artifact (i.e a bundle), and/or based on current
         policy, some selection is expected to happen, to filter out the
         exact certificate authority to use, which transparency logs are
         relevant etc. The result should b ecaptured in the
         `artifact_trust_root`.
         
        .dev.sigstore.trustroot.v1.TrustedRoot artifact_trust_root = 1;
        Specified by:
        getArtifactTrustRootOrBuilder in interface InputOrBuilder
      • hasArtifactVerificationOptions

        public boolean hasArtifactVerificationOptions()
        .dev.sigstore.verification.v1.ArtifactVerificationOptions artifact_verification_options = 2;
        Specified by:
        hasArtifactVerificationOptions in interface InputOrBuilder
        Returns:
        Whether the artifactVerificationOptions field is set.
      • setArtifactVerificationOptions

        public Input.Builder setArtifactVerificationOptions​(ArtifactVerificationOptions value)
        .dev.sigstore.verification.v1.ArtifactVerificationOptions artifact_verification_options = 2;
      • mergeArtifactVerificationOptions

        public Input.Builder mergeArtifactVerificationOptions​(ArtifactVerificationOptions value)
        .dev.sigstore.verification.v1.ArtifactVerificationOptions artifact_verification_options = 2;
      • clearArtifactVerificationOptions

        public Input.Builder clearArtifactVerificationOptions()
        .dev.sigstore.verification.v1.ArtifactVerificationOptions artifact_verification_options = 2;
      • getArtifactVerificationOptionsBuilder

        public ArtifactVerificationOptions.Builder getArtifactVerificationOptionsBuilder()
        .dev.sigstore.verification.v1.ArtifactVerificationOptions artifact_verification_options = 2;
      • hasBundle

        public boolean hasBundle()
        .dev.sigstore.bundle.v1.Bundle bundle = 3;
        Specified by:
        hasBundle in interface InputOrBuilder
        Returns:
        Whether the bundle field is set.
      • getBundle

        public Bundle getBundle()
        .dev.sigstore.bundle.v1.Bundle bundle = 3;
        Specified by:
        getBundle in interface InputOrBuilder
        Returns:
        The bundle.
      • setBundle

        public Input.Builder setBundle​(Bundle value)
        .dev.sigstore.bundle.v1.Bundle bundle = 3;
      • mergeBundle

        public Input.Builder mergeBundle​(Bundle value)
        .dev.sigstore.bundle.v1.Bundle bundle = 3;
      • clearBundle

        public Input.Builder clearBundle()
        .dev.sigstore.bundle.v1.Bundle bundle = 3;
      • getBundleBuilder

        public Bundle.Builder getBundleBuilder()
        .dev.sigstore.bundle.v1.Bundle bundle = 3;
      • hasArtifact

        public boolean hasArtifact()
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
        Specified by:
        hasArtifact in interface InputOrBuilder
        Returns:
        Whether the artifact field is set.
      • getArtifact

        public Artifact getArtifact()
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
        Specified by:
        getArtifact in interface InputOrBuilder
        Returns:
        The artifact.
      • setArtifact

        public Input.Builder setArtifact​(Artifact value)
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
      • setArtifact

        public Input.Builder setArtifact​(Artifact.Builder builderForValue)
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
      • mergeArtifact

        public Input.Builder mergeArtifact​(Artifact value)
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
      • clearArtifact

        public Input.Builder clearArtifact()
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
      • getArtifactBuilder

        public Artifact.Builder getArtifactBuilder()
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
      • getArtifactOrBuilder

        public ArtifactOrBuilder getArtifactOrBuilder()
         If the bundle contains a message signature, the artifact must be
         provided.
         
        optional .dev.sigstore.verification.v1.Artifact artifact = 4;
        Specified by:
        getArtifactOrBuilder in interface InputOrBuilder