Package io.grafeas.v1

Class InTotoProvenance.Builder

    • 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<InTotoProvenance.Builder>
      • clear

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

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

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

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

        public InTotoProvenance.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<InTotoProvenance.Builder>
      • setField

        public InTotoProvenance.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<InTotoProvenance.Builder>
      • clearField

        public InTotoProvenance.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<InTotoProvenance.Builder>
      • clearOneof

        public InTotoProvenance.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<InTotoProvenance.Builder>
      • setRepeatedField

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

        public InTotoProvenance.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<InTotoProvenance.Builder>
      • mergeFrom

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

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

        public InTotoProvenance.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<InTotoProvenance.Builder>
        Throws:
        IOException
      • hasBuilderConfig

        public boolean hasBuilderConfig()
         required
         
        .grafeas.v1.BuilderConfig builder_config = 1;
        Specified by:
        hasBuilderConfig in interface InTotoProvenanceOrBuilder
        Returns:
        Whether the builderConfig field is set.
      • clearBuilderConfig

        public InTotoProvenance.Builder clearBuilderConfig()
         required
         
        .grafeas.v1.BuilderConfig builder_config = 1;
      • getBuilderConfigBuilder

        public BuilderConfig.Builder getBuilderConfigBuilder()
         required
         
        .grafeas.v1.BuilderConfig builder_config = 1;
      • hasRecipe

        public boolean hasRecipe()
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
        Specified by:
        hasRecipe in interface InTotoProvenanceOrBuilder
        Returns:
        Whether the recipe field is set.
      • getRecipe

        public Recipe getRecipe()
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
        Specified by:
        getRecipe in interface InTotoProvenanceOrBuilder
        Returns:
        The recipe.
      • setRecipe

        public InTotoProvenance.Builder setRecipe​(Recipe value)
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
      • setRecipe

        public InTotoProvenance.Builder setRecipe​(Recipe.Builder builderForValue)
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
      • mergeRecipe

        public InTotoProvenance.Builder mergeRecipe​(Recipe value)
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
      • clearRecipe

        public InTotoProvenance.Builder clearRecipe()
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
      • getRecipeBuilder

        public Recipe.Builder getRecipeBuilder()
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
      • getRecipeOrBuilder

        public RecipeOrBuilder getRecipeOrBuilder()
         Identifies the configuration used for the build.
         When combined with materials, this SHOULD fully describe the build,
         such that re-running this recipe results in bit-for-bit identical output
         (if the build is reproducible).
         
        .grafeas.v1.Recipe recipe = 2;
        Specified by:
        getRecipeOrBuilder in interface InTotoProvenanceOrBuilder
      • hasMetadata

        public boolean hasMetadata()
        .grafeas.v1.Metadata metadata = 3;
        Specified by:
        hasMetadata in interface InTotoProvenanceOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadataBuilder

        public Metadata.Builder getMetadataBuilder()
        .grafeas.v1.Metadata metadata = 3;
      • getMaterialsList

        public com.google.protobuf.ProtocolStringList getMaterialsList()
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Specified by:
        getMaterialsList in interface InTotoProvenanceOrBuilder
        Returns:
        A list containing the materials.
      • getMaterialsCount

        public int getMaterialsCount()
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Specified by:
        getMaterialsCount in interface InTotoProvenanceOrBuilder
        Returns:
        The count of materials.
      • getMaterials

        public String getMaterials​(int index)
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Specified by:
        getMaterials in interface InTotoProvenanceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The materials at the given index.
      • getMaterialsBytes

        public com.google.protobuf.ByteString getMaterialsBytes​(int index)
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Specified by:
        getMaterialsBytes in interface InTotoProvenanceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the materials at the given index.
      • setMaterials

        public InTotoProvenance.Builder setMaterials​(int index,
                                                     String value)
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Parameters:
        index - The index to set the value at.
        value - The materials to set.
        Returns:
        This builder for chaining.
      • addMaterials

        public InTotoProvenance.Builder addMaterials​(String value)
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Parameters:
        value - The materials to add.
        Returns:
        This builder for chaining.
      • addAllMaterials

        public InTotoProvenance.Builder addAllMaterials​(Iterable<String> values)
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Parameters:
        values - The materials to add.
        Returns:
        This builder for chaining.
      • clearMaterials

        public InTotoProvenance.Builder clearMaterials()
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Returns:
        This builder for chaining.
      • addMaterialsBytes

        public InTotoProvenance.Builder addMaterialsBytes​(com.google.protobuf.ByteString value)
         The collection of artifacts that influenced the build including sources,
         dependencies, build tools, base images, and so on. This is considered to be
         incomplete unless metadata.completeness.materials is true. Unset or null is
         equivalent to empty.
         
        repeated string materials = 4;
        Parameters:
        value - The bytes of the materials to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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