1 /* 2 * Copyright 2019 The Grafeas Authors. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Generated by the protocol buffer compiler. DO NOT EDIT! 18 // source: grafeas/v1/intoto_provenance.proto 19 20 package io.grafeas.v1; 21 22 public interface InTotoProvenanceOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.InTotoProvenance) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * required 32 * </pre> 33 * 34 * <code>.grafeas.v1.BuilderConfig builder_config = 1;</code> 35 * 36 * @return Whether the builderConfig field is set. 37 */ hasBuilderConfig()38 boolean hasBuilderConfig(); 39 /** 40 * 41 * 42 * <pre> 43 * required 44 * </pre> 45 * 46 * <code>.grafeas.v1.BuilderConfig builder_config = 1;</code> 47 * 48 * @return The builderConfig. 49 */ getBuilderConfig()50 io.grafeas.v1.BuilderConfig getBuilderConfig(); 51 /** 52 * 53 * 54 * <pre> 55 * required 56 * </pre> 57 * 58 * <code>.grafeas.v1.BuilderConfig builder_config = 1;</code> 59 */ getBuilderConfigOrBuilder()60 io.grafeas.v1.BuilderConfigOrBuilder getBuilderConfigOrBuilder(); 61 62 /** 63 * 64 * 65 * <pre> 66 * Identifies the configuration used for the build. 67 * When combined with materials, this SHOULD fully describe the build, 68 * such that re-running this recipe results in bit-for-bit identical output 69 * (if the build is reproducible). 70 * </pre> 71 * 72 * <code>.grafeas.v1.Recipe recipe = 2;</code> 73 * 74 * @return Whether the recipe field is set. 75 */ hasRecipe()76 boolean hasRecipe(); 77 /** 78 * 79 * 80 * <pre> 81 * Identifies the configuration used for the build. 82 * When combined with materials, this SHOULD fully describe the build, 83 * such that re-running this recipe results in bit-for-bit identical output 84 * (if the build is reproducible). 85 * </pre> 86 * 87 * <code>.grafeas.v1.Recipe recipe = 2;</code> 88 * 89 * @return The recipe. 90 */ getRecipe()91 io.grafeas.v1.Recipe getRecipe(); 92 /** 93 * 94 * 95 * <pre> 96 * Identifies the configuration used for the build. 97 * When combined with materials, this SHOULD fully describe the build, 98 * such that re-running this recipe results in bit-for-bit identical output 99 * (if the build is reproducible). 100 * </pre> 101 * 102 * <code>.grafeas.v1.Recipe recipe = 2;</code> 103 */ getRecipeOrBuilder()104 io.grafeas.v1.RecipeOrBuilder getRecipeOrBuilder(); 105 106 /** 107 * <code>.grafeas.v1.Metadata metadata = 3;</code> 108 * 109 * @return Whether the metadata field is set. 110 */ hasMetadata()111 boolean hasMetadata(); 112 /** 113 * <code>.grafeas.v1.Metadata metadata = 3;</code> 114 * 115 * @return The metadata. 116 */ getMetadata()117 io.grafeas.v1.Metadata getMetadata(); 118 /** <code>.grafeas.v1.Metadata metadata = 3;</code> */ getMetadataOrBuilder()119 io.grafeas.v1.MetadataOrBuilder getMetadataOrBuilder(); 120 121 /** 122 * 123 * 124 * <pre> 125 * The collection of artifacts that influenced the build including sources, 126 * dependencies, build tools, base images, and so on. This is considered to be 127 * incomplete unless metadata.completeness.materials is true. Unset or null is 128 * equivalent to empty. 129 * </pre> 130 * 131 * <code>repeated string materials = 4;</code> 132 * 133 * @return A list containing the materials. 134 */ getMaterialsList()135 java.util.List<java.lang.String> getMaterialsList(); 136 /** 137 * 138 * 139 * <pre> 140 * The collection of artifacts that influenced the build including sources, 141 * dependencies, build tools, base images, and so on. This is considered to be 142 * incomplete unless metadata.completeness.materials is true. Unset or null is 143 * equivalent to empty. 144 * </pre> 145 * 146 * <code>repeated string materials = 4;</code> 147 * 148 * @return The count of materials. 149 */ getMaterialsCount()150 int getMaterialsCount(); 151 /** 152 * 153 * 154 * <pre> 155 * The collection of artifacts that influenced the build including sources, 156 * dependencies, build tools, base images, and so on. This is considered to be 157 * incomplete unless metadata.completeness.materials is true. Unset or null is 158 * equivalent to empty. 159 * </pre> 160 * 161 * <code>repeated string materials = 4;</code> 162 * 163 * @param index The index of the element to return. 164 * @return The materials at the given index. 165 */ getMaterials(int index)166 java.lang.String getMaterials(int index); 167 /** 168 * 169 * 170 * <pre> 171 * The collection of artifacts that influenced the build including sources, 172 * dependencies, build tools, base images, and so on. This is considered to be 173 * incomplete unless metadata.completeness.materials is true. Unset or null is 174 * equivalent to empty. 175 * </pre> 176 * 177 * <code>repeated string materials = 4;</code> 178 * 179 * @param index The index of the value to return. 180 * @return The bytes of the materials at the given index. 181 */ getMaterialsBytes(int index)182 com.google.protobuf.ByteString getMaterialsBytes(int index); 183 } 184