Package io.grafeas.v1beta1.provenance
Interface SourceOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Source
,Source.Builder
public interface SourceOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsFileHashes(String key)
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.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.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.List<SourceContext>
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.SourceContextOrBuilder
getAdditionalContextsOrBuilder(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.List<? extends SourceContextOrBuilder>
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.String
getArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this location.com.google.protobuf.ByteString
getArtifactStorageSourceUriBytes()
If provided, the input binary artifacts for the build came from this location.SourceContext
getContext()
If provided, the source code used for the build came from this location.SourceContextOrBuilder
getContextOrBuilder()
If provided, the source code used for the build came from this location.Map<String,FileHashes>
getFileHashes()
Deprecated.int
getFileHashesCount()
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.Map<String,FileHashes>
getFileHashesMap()
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.FileHashes
getFileHashesOrDefault(String key, FileHashes defaultValue)
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.FileHashes
getFileHashesOrThrow(String key)
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build.boolean
hasContext()
If provided, the source code used for the build came from this location.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getArtifactStorageSourceUri
String getArtifactStorageSourceUri()
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;
- Returns:
- The artifactStorageSourceUri.
-
getArtifactStorageSourceUriBytes
com.google.protobuf.ByteString getArtifactStorageSourceUriBytes()
If provided, the input binary artifacts for the build came from this location.
string artifact_storage_source_uri = 1;
- Returns:
- The bytes for artifactStorageSourceUri.
-
getFileHashesCount
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.v1beta1.provenance.FileHashes> file_hashes = 2;
-
containsFileHashes
boolean containsFileHashes(String key)
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.v1beta1.provenance.FileHashes> file_hashes = 2;
-
getFileHashes
@Deprecated Map<String,FileHashes> getFileHashes()
Deprecated.UsegetFileHashesMap()
instead.
-
getFileHashesMap
Map<String,FileHashes> 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.v1beta1.provenance.FileHashes> file_hashes = 2;
-
getFileHashesOrDefault
FileHashes getFileHashesOrDefault(String key, 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.v1beta1.provenance.FileHashes> file_hashes = 2;
-
getFileHashesOrThrow
FileHashes getFileHashesOrThrow(String key)
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.v1beta1.provenance.FileHashes> file_hashes = 2;
-
hasContext
boolean hasContext()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;
- Returns:
- Whether the context field is set.
-
getContext
SourceContext getContext()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;
- Returns:
- The context.
-
getContextOrBuilder
SourceContextOrBuilder getContextOrBuilder()
If provided, the source code used for the build came from this location.
.grafeas.v1beta1.source.SourceContext context = 3;
-
getAdditionalContextsList
List<SourceContext> 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.v1beta1.source.SourceContext additional_contexts = 4;
-
getAdditionalContexts
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.v1beta1.source.SourceContext additional_contexts = 4;
-
getAdditionalContextsCount
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.v1beta1.source.SourceContext additional_contexts = 4;
-
getAdditionalContextsOrBuilderList
List<? extends SourceContextOrBuilder> 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.v1beta1.source.SourceContext additional_contexts = 4;
-
getAdditionalContextsOrBuilder
SourceContextOrBuilder getAdditionalContextsOrBuilder(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.v1beta1.source.SourceContext additional_contexts = 4;
-
-