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/provenance.proto 19 20 package io.grafeas.v1; 21 22 public interface SourceOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.Source) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * If provided, the input binary artifacts for the build came from this 32 * location. 33 * </pre> 34 * 35 * <code>string artifact_storage_source_uri = 1;</code> 36 * 37 * @return The artifactStorageSourceUri. 38 */ getArtifactStorageSourceUri()39 java.lang.String getArtifactStorageSourceUri(); 40 /** 41 * 42 * 43 * <pre> 44 * If provided, the input binary artifacts for the build came from this 45 * location. 46 * </pre> 47 * 48 * <code>string artifact_storage_source_uri = 1;</code> 49 * 50 * @return The bytes for artifactStorageSourceUri. 51 */ getArtifactStorageSourceUriBytes()52 com.google.protobuf.ByteString getArtifactStorageSourceUriBytes(); 53 54 /** 55 * 56 * 57 * <pre> 58 * Hash(es) of the build source, which can be used to verify that the original 59 * source integrity was maintained in the build. 60 * The keys to this map are file paths used as build source and the values 61 * contain the hash values for those files. 62 * If the build source came in a single package such as a gzipped tarfile 63 * (.tar.gz), the FileHash will be for the single path to that file. 64 * </pre> 65 * 66 * <code>map<string, .grafeas.v1.FileHashes> file_hashes = 2;</code> 67 */ getFileHashesCount()68 int getFileHashesCount(); 69 /** 70 * 71 * 72 * <pre> 73 * Hash(es) of the build source, which can be used to verify that the original 74 * source integrity was maintained in the build. 75 * The keys to this map are file paths used as build source and the values 76 * contain the hash values for those files. 77 * If the build source came in a single package such as a gzipped tarfile 78 * (.tar.gz), the FileHash will be for the single path to that file. 79 * </pre> 80 * 81 * <code>map<string, .grafeas.v1.FileHashes> file_hashes = 2;</code> 82 */ containsFileHashes(java.lang.String key)83 boolean containsFileHashes(java.lang.String key); 84 /** Use {@link #getFileHashesMap()} instead. */ 85 @java.lang.Deprecated getFileHashes()86 java.util.Map<java.lang.String, io.grafeas.v1.FileHashes> getFileHashes(); 87 /** 88 * 89 * 90 * <pre> 91 * Hash(es) of the build source, which can be used to verify that the original 92 * source integrity was maintained in the build. 93 * The keys to this map are file paths used as build source and the values 94 * contain the hash values for those files. 95 * If the build source came in a single package such as a gzipped tarfile 96 * (.tar.gz), the FileHash will be for the single path to that file. 97 * </pre> 98 * 99 * <code>map<string, .grafeas.v1.FileHashes> file_hashes = 2;</code> 100 */ getFileHashesMap()101 java.util.Map<java.lang.String, io.grafeas.v1.FileHashes> getFileHashesMap(); 102 /** 103 * 104 * 105 * <pre> 106 * Hash(es) of the build source, which can be used to verify that the original 107 * source integrity was maintained in the build. 108 * The keys to this map are file paths used as build source and the values 109 * contain the hash values for those files. 110 * If the build source came in a single package such as a gzipped tarfile 111 * (.tar.gz), the FileHash will be for the single path to that file. 112 * </pre> 113 * 114 * <code>map<string, .grafeas.v1.FileHashes> file_hashes = 2;</code> 115 */ 116 /* nullable */ getFileHashesOrDefault( java.lang.String key, io.grafeas.v1.FileHashes defaultValue)117 io.grafeas.v1.FileHashes getFileHashesOrDefault( 118 java.lang.String key, 119 /* nullable */ 120 io.grafeas.v1.FileHashes defaultValue); 121 /** 122 * 123 * 124 * <pre> 125 * Hash(es) of the build source, which can be used to verify that the original 126 * source integrity was maintained in the build. 127 * The keys to this map are file paths used as build source and the values 128 * contain the hash values for those files. 129 * If the build source came in a single package such as a gzipped tarfile 130 * (.tar.gz), the FileHash will be for the single path to that file. 131 * </pre> 132 * 133 * <code>map<string, .grafeas.v1.FileHashes> file_hashes = 2;</code> 134 */ getFileHashesOrThrow(java.lang.String key)135 io.grafeas.v1.FileHashes getFileHashesOrThrow(java.lang.String key); 136 137 /** 138 * 139 * 140 * <pre> 141 * If provided, the source code used for the build came from this location. 142 * </pre> 143 * 144 * <code>.grafeas.v1.SourceContext context = 3;</code> 145 * 146 * @return Whether the context field is set. 147 */ hasContext()148 boolean hasContext(); 149 /** 150 * 151 * 152 * <pre> 153 * If provided, the source code used for the build came from this location. 154 * </pre> 155 * 156 * <code>.grafeas.v1.SourceContext context = 3;</code> 157 * 158 * @return The context. 159 */ getContext()160 io.grafeas.v1.SourceContext getContext(); 161 /** 162 * 163 * 164 * <pre> 165 * If provided, the source code used for the build came from this location. 166 * </pre> 167 * 168 * <code>.grafeas.v1.SourceContext context = 3;</code> 169 */ getContextOrBuilder()170 io.grafeas.v1.SourceContextOrBuilder getContextOrBuilder(); 171 172 /** 173 * 174 * 175 * <pre> 176 * If provided, some of the source code used for the build may be found in 177 * these locations, in the case where the source repository had multiple 178 * remotes or submodules. This list will not include the context specified in 179 * the context field. 180 * </pre> 181 * 182 * <code>repeated .grafeas.v1.SourceContext additional_contexts = 4;</code> 183 */ getAdditionalContextsList()184 java.util.List<io.grafeas.v1.SourceContext> getAdditionalContextsList(); 185 /** 186 * 187 * 188 * <pre> 189 * If provided, some of the source code used for the build may be found in 190 * these locations, in the case where the source repository had multiple 191 * remotes or submodules. This list will not include the context specified in 192 * the context field. 193 * </pre> 194 * 195 * <code>repeated .grafeas.v1.SourceContext additional_contexts = 4;</code> 196 */ getAdditionalContexts(int index)197 io.grafeas.v1.SourceContext getAdditionalContexts(int index); 198 /** 199 * 200 * 201 * <pre> 202 * If provided, some of the source code used for the build may be found in 203 * these locations, in the case where the source repository had multiple 204 * remotes or submodules. This list will not include the context specified in 205 * the context field. 206 * </pre> 207 * 208 * <code>repeated .grafeas.v1.SourceContext additional_contexts = 4;</code> 209 */ getAdditionalContextsCount()210 int getAdditionalContextsCount(); 211 /** 212 * 213 * 214 * <pre> 215 * If provided, some of the source code used for the build may be found in 216 * these locations, in the case where the source repository had multiple 217 * remotes or submodules. This list will not include the context specified in 218 * the context field. 219 * </pre> 220 * 221 * <code>repeated .grafeas.v1.SourceContext additional_contexts = 4;</code> 222 */ 223 java.util.List<? extends io.grafeas.v1.SourceContextOrBuilder> getAdditionalContextsOrBuilderList()224 getAdditionalContextsOrBuilderList(); 225 /** 226 * 227 * 228 * <pre> 229 * If provided, some of the source code used for the build may be found in 230 * these locations, in the case where the source repository had multiple 231 * remotes or submodules. This list will not include the context specified in 232 * the context field. 233 * </pre> 234 * 235 * <code>repeated .grafeas.v1.SourceContext additional_contexts = 4;</code> 236 */ getAdditionalContextsOrBuilder(int index)237 io.grafeas.v1.SourceContextOrBuilder getAdditionalContextsOrBuilder(int index); 238 } 239