1 /* 2 * Copyright 2020 Google LLC 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 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/devtools/cloudbuild/v1/cloudbuild.proto 18 19 package com.google.cloudbuild.v1; 20 21 public interface SourceProvenanceOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.SourceProvenance) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * A copy of the build's `source.storage_source`, if exists, with any 31 * generations resolved. 32 * </pre> 33 * 34 * <code>.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;</code> 35 * 36 * @return Whether the resolvedStorageSource field is set. 37 */ hasResolvedStorageSource()38 boolean hasResolvedStorageSource(); 39 /** 40 * 41 * 42 * <pre> 43 * A copy of the build's `source.storage_source`, if exists, with any 44 * generations resolved. 45 * </pre> 46 * 47 * <code>.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;</code> 48 * 49 * @return The resolvedStorageSource. 50 */ getResolvedStorageSource()51 com.google.cloudbuild.v1.StorageSource getResolvedStorageSource(); 52 /** 53 * 54 * 55 * <pre> 56 * A copy of the build's `source.storage_source`, if exists, with any 57 * generations resolved. 58 * </pre> 59 * 60 * <code>.google.devtools.cloudbuild.v1.StorageSource resolved_storage_source = 3;</code> 61 */ getResolvedStorageSourceOrBuilder()62 com.google.cloudbuild.v1.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder(); 63 64 /** 65 * 66 * 67 * <pre> 68 * A copy of the build's `source.repo_source`, if exists, with any 69 * revisions resolved. 70 * </pre> 71 * 72 * <code>.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;</code> 73 * 74 * @return Whether the resolvedRepoSource field is set. 75 */ hasResolvedRepoSource()76 boolean hasResolvedRepoSource(); 77 /** 78 * 79 * 80 * <pre> 81 * A copy of the build's `source.repo_source`, if exists, with any 82 * revisions resolved. 83 * </pre> 84 * 85 * <code>.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;</code> 86 * 87 * @return The resolvedRepoSource. 88 */ getResolvedRepoSource()89 com.google.cloudbuild.v1.RepoSource getResolvedRepoSource(); 90 /** 91 * 92 * 93 * <pre> 94 * A copy of the build's `source.repo_source`, if exists, with any 95 * revisions resolved. 96 * </pre> 97 * 98 * <code>.google.devtools.cloudbuild.v1.RepoSource resolved_repo_source = 6;</code> 99 */ getResolvedRepoSourceOrBuilder()100 com.google.cloudbuild.v1.RepoSourceOrBuilder getResolvedRepoSourceOrBuilder(); 101 102 /** 103 * 104 * 105 * <pre> 106 * A copy of the build's `source.storage_source_manifest`, if exists, with any 107 * revisions resolved. 108 * This feature is in Preview. 109 * </pre> 110 * 111 * <code> 112 * .google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9; 113 * </code> 114 * 115 * @return Whether the resolvedStorageSourceManifest field is set. 116 */ hasResolvedStorageSourceManifest()117 boolean hasResolvedStorageSourceManifest(); 118 /** 119 * 120 * 121 * <pre> 122 * A copy of the build's `source.storage_source_manifest`, if exists, with any 123 * revisions resolved. 124 * This feature is in Preview. 125 * </pre> 126 * 127 * <code> 128 * .google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9; 129 * </code> 130 * 131 * @return The resolvedStorageSourceManifest. 132 */ getResolvedStorageSourceManifest()133 com.google.cloudbuild.v1.StorageSourceManifest getResolvedStorageSourceManifest(); 134 /** 135 * 136 * 137 * <pre> 138 * A copy of the build's `source.storage_source_manifest`, if exists, with any 139 * revisions resolved. 140 * This feature is in Preview. 141 * </pre> 142 * 143 * <code> 144 * .google.devtools.cloudbuild.v1.StorageSourceManifest resolved_storage_source_manifest = 9; 145 * </code> 146 */ 147 com.google.cloudbuild.v1.StorageSourceManifestOrBuilder getResolvedStorageSourceManifestOrBuilder()148 getResolvedStorageSourceManifestOrBuilder(); 149 150 /** 151 * 152 * 153 * <pre> 154 * Output only. Hash(es) of the build source, which can be used to verify that 155 * the original source integrity was maintained in the build. Note that 156 * `FileHashes` will only be populated if `BuildOptions` has requested a 157 * `SourceProvenanceHash`. 158 * The keys to this map are file paths used as build source and the values 159 * contain the hash values for those files. 160 * If the build source came in a single package such as a gzipped tarfile 161 * (`.tar.gz`), the `FileHash` will be for the single path to that file. 162 * </pre> 163 * 164 * <code> 165 * map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 166 * </code> 167 */ getFileHashesCount()168 int getFileHashesCount(); 169 /** 170 * 171 * 172 * <pre> 173 * Output only. Hash(es) of the build source, which can be used to verify that 174 * the original source integrity was maintained in the build. Note that 175 * `FileHashes` will only be populated if `BuildOptions` has requested a 176 * `SourceProvenanceHash`. 177 * The keys to this map are file paths used as build source and the values 178 * contain the hash values for those files. 179 * If the build source came in a single package such as a gzipped tarfile 180 * (`.tar.gz`), the `FileHash` will be for the single path to that file. 181 * </pre> 182 * 183 * <code> 184 * map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 185 * </code> 186 */ containsFileHashes(java.lang.String key)187 boolean containsFileHashes(java.lang.String key); 188 /** Use {@link #getFileHashesMap()} instead. */ 189 @java.lang.Deprecated getFileHashes()190 java.util.Map<java.lang.String, com.google.cloudbuild.v1.FileHashes> getFileHashes(); 191 /** 192 * 193 * 194 * <pre> 195 * Output only. Hash(es) of the build source, which can be used to verify that 196 * the original source integrity was maintained in the build. Note that 197 * `FileHashes` will only be populated if `BuildOptions` has requested a 198 * `SourceProvenanceHash`. 199 * The keys to this map are file paths used as build source and the values 200 * contain the hash values for those files. 201 * If the build source came in a single package such as a gzipped tarfile 202 * (`.tar.gz`), the `FileHash` will be for the single path to that file. 203 * </pre> 204 * 205 * <code> 206 * map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 207 * </code> 208 */ getFileHashesMap()209 java.util.Map<java.lang.String, com.google.cloudbuild.v1.FileHashes> getFileHashesMap(); 210 /** 211 * 212 * 213 * <pre> 214 * Output only. Hash(es) of the build source, which can be used to verify that 215 * the original source integrity was maintained in the build. Note that 216 * `FileHashes` will only be populated if `BuildOptions` has requested a 217 * `SourceProvenanceHash`. 218 * The keys to this map are file paths used as build source and the values 219 * contain the hash values for those files. 220 * If the build source came in a single package such as a gzipped tarfile 221 * (`.tar.gz`), the `FileHash` will be for the single path to that file. 222 * </pre> 223 * 224 * <code> 225 * map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 226 * </code> 227 */ 228 /* nullable */ getFileHashesOrDefault( java.lang.String key, com.google.cloudbuild.v1.FileHashes defaultValue)229 com.google.cloudbuild.v1.FileHashes getFileHashesOrDefault( 230 java.lang.String key, 231 /* nullable */ 232 com.google.cloudbuild.v1.FileHashes defaultValue); 233 /** 234 * 235 * 236 * <pre> 237 * Output only. Hash(es) of the build source, which can be used to verify that 238 * the original source integrity was maintained in the build. Note that 239 * `FileHashes` will only be populated if `BuildOptions` has requested a 240 * `SourceProvenanceHash`. 241 * The keys to this map are file paths used as build source and the values 242 * contain the hash values for those files. 243 * If the build source came in a single package such as a gzipped tarfile 244 * (`.tar.gz`), the `FileHash` will be for the single path to that file. 245 * </pre> 246 * 247 * <code> 248 * map<string, .google.devtools.cloudbuild.v1.FileHashes> file_hashes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 249 * </code> 250 */ getFileHashesOrThrow(java.lang.String key)251 com.google.cloudbuild.v1.FileHashes getFileHashesOrThrow(java.lang.String key); 252 } 253