Interface SourceOrBuilder (2.52.0)

public interface SourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsFileHashes(String key)

public abstract 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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAdditionalContexts(int index)

public abstract 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;

Parameter
Name Description
index int
Returns
Type Description
SourceContext

getAdditionalContextsCount()

public abstract 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;

Returns
Type Description
int

getAdditionalContextsList()

public abstract 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;

Returns
Type Description
List<SourceContext>

getAdditionalContextsOrBuilder(int index)

public abstract 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;

Parameter
Name Description
index int
Returns
Type Description
SourceContextOrBuilder

getAdditionalContextsOrBuilderList()

public abstract 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;

Returns
Type Description
List<? extends io.grafeas.v1beta1.source.SourceContextOrBuilder>

getArtifactStorageSourceUri()

public abstract String getArtifactStorageSourceUri()

If provided, the input binary artifacts for the build came from this location.

string artifact_storage_source_uri = 1;

Returns
Type Description
String

The artifactStorageSourceUri.

getArtifactStorageSourceUriBytes()

public abstract ByteString getArtifactStorageSourceUriBytes()

If provided, the input binary artifacts for the build came from this location.

string artifact_storage_source_uri = 1;

Returns
Type Description
ByteString

The bytes for artifactStorageSourceUri.

getContext()

public abstract SourceContext getContext()

If provided, the source code used for the build came from this location.

.grafeas.v1beta1.source.SourceContext context = 3;

Returns
Type Description
SourceContext

The context.

getContextOrBuilder()

public abstract SourceContextOrBuilder getContextOrBuilder()

If provided, the source code used for the build came from this location.

.grafeas.v1beta1.source.SourceContext context = 3;

Returns
Type Description
SourceContextOrBuilder

getFileHashes() (deprecated)

public abstract Map<String,FileHashes> getFileHashes()

Use #getFileHashesMap() instead.

Returns
Type Description
Map<String,FileHashes>

getFileHashesCount()

public abstract 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;

Returns
Type Description
int

getFileHashesMap()

public abstract 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;

Returns
Type Description
Map<String,FileHashes>

getFileHashesOrDefault(String key, FileHashes defaultValue)

public abstract 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;

Parameters
Name Description
key String
defaultValue FileHashes
Returns
Type Description
FileHashes

getFileHashesOrThrow(String key)

public abstract 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;

Parameter
Name Description
key String
Returns
Type Description
FileHashes

hasContext()

public abstract boolean hasContext()

If provided, the source code used for the build came from this location.

.grafeas.v1beta1.source.SourceContext context = 3;

Returns
Type Description
boolean

Whether the context field is set.