/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/provenance.proto package io.grafeas.v1; public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:grafeas.v1.Source) com.google.protobuf.MessageOrBuilder { /** * * *
   * If provided, the input binary artifacts for the build came from this
   * location.
   * 
* * string artifact_storage_source_uri = 1; * * @return The artifactStorageSourceUri. */ java.lang.String getArtifactStorageSourceUri(); /** * * *
   * If provided, the input binary artifacts for the build came from this
   * location.
   * 
* * string artifact_storage_source_uri = 1; * * @return The bytes for artifactStorageSourceUri. */ com.google.protobuf.ByteString getArtifactStorageSourceUriBytes(); /** * * *
   * Hash(es) of the build source, which can be used to verify that the original
   * source integrity was maintained in the build.
   * The keys to this map are file paths used as build source and the values
   * contain the hash values for those files.
   * If the build source came in a single package such as a gzipped tarfile
   * (.tar.gz), the FileHash will be for the single path to that file.
   * 
* * map<string, .grafeas.v1.FileHashes> file_hashes = 2; */ int getFileHashesCount(); /** * * *
   * Hash(es) of the build source, which can be used to verify that the original
   * source integrity was maintained in the build.
   * The keys to this map are file paths used as build source and the values
   * contain the hash values for those files.
   * If the build source came in a single package such as a gzipped tarfile
   * (.tar.gz), the FileHash will be for the single path to that file.
   * 
* * map<string, .grafeas.v1.FileHashes> file_hashes = 2; */ boolean containsFileHashes(java.lang.String key); /** Use {@link #getFileHashesMap()} instead. */ @java.lang.Deprecated java.util.Map getFileHashes(); /** * * *
   * Hash(es) of the build source, which can be used to verify that the original
   * source integrity was maintained in the build.
   * The keys to this map are file paths used as build source and the values
   * contain the hash values for those files.
   * If the build source came in a single package such as a gzipped tarfile
   * (.tar.gz), the FileHash will be for the single path to that file.
   * 
* * map<string, .grafeas.v1.FileHashes> file_hashes = 2; */ java.util.Map getFileHashesMap(); /** * * *
   * Hash(es) of the build source, which can be used to verify that the original
   * source integrity was maintained in the build.
   * The keys to this map are file paths used as build source and the values
   * contain the hash values for those files.
   * If the build source came in a single package such as a gzipped tarfile
   * (.tar.gz), the FileHash will be for the single path to that file.
   * 
* * map<string, .grafeas.v1.FileHashes> file_hashes = 2; */ /* nullable */ io.grafeas.v1.FileHashes getFileHashesOrDefault( java.lang.String key, /* nullable */ io.grafeas.v1.FileHashes defaultValue); /** * * *
   * Hash(es) of the build source, which can be used to verify that the original
   * source integrity was maintained in the build.
   * The keys to this map are file paths used as build source and the values
   * contain the hash values for those files.
   * If the build source came in a single package such as a gzipped tarfile
   * (.tar.gz), the FileHash will be for the single path to that file.
   * 
* * map<string, .grafeas.v1.FileHashes> file_hashes = 2; */ io.grafeas.v1.FileHashes getFileHashesOrThrow(java.lang.String key); /** * * *
   * If provided, the source code used for the build came from this location.
   * 
* * .grafeas.v1.SourceContext context = 3; * * @return Whether the context field is set. */ boolean hasContext(); /** * * *
   * If provided, the source code used for the build came from this location.
   * 
* * .grafeas.v1.SourceContext context = 3; * * @return The context. */ io.grafeas.v1.SourceContext getContext(); /** * * *
   * If provided, the source code used for the build came from this location.
   * 
* * .grafeas.v1.SourceContext context = 3; */ io.grafeas.v1.SourceContextOrBuilder getContextOrBuilder(); /** * * *
   * If provided, some of the source code used for the build may be found in
   * these locations, in the case where the source repository had multiple
   * remotes or submodules. This list will not include the context specified in
   * the context field.
   * 
* * repeated .grafeas.v1.SourceContext additional_contexts = 4; */ java.util.List getAdditionalContextsList(); /** * * *
   * If provided, some of the source code used for the build may be found in
   * these locations, in the case where the source repository had multiple
   * remotes or submodules. This list will not include the context specified in
   * the context field.
   * 
* * repeated .grafeas.v1.SourceContext additional_contexts = 4; */ io.grafeas.v1.SourceContext getAdditionalContexts(int index); /** * * *
   * If provided, some of the source code used for the build may be found in
   * these locations, in the case where the source repository had multiple
   * remotes or submodules. This list will not include the context specified in
   * the context field.
   * 
* * repeated .grafeas.v1.SourceContext additional_contexts = 4; */ int getAdditionalContextsCount(); /** * * *
   * If provided, some of the source code used for the build may be found in
   * these locations, in the case where the source repository had multiple
   * remotes or submodules. This list will not include the context specified in
   * the context field.
   * 
* * repeated .grafeas.v1.SourceContext additional_contexts = 4; */ java.util.List getAdditionalContextsOrBuilderList(); /** * * *
   * If provided, some of the source code used for the build may be found in
   * these locations, in the case where the source repository had multiple
   * remotes or submodules. This list will not include the context specified in
   * the context field.
   * 
* * repeated .grafeas.v1.SourceContext additional_contexts = 4; */ io.grafeas.v1.SourceContextOrBuilder getAdditionalContextsOrBuilder(int index); }