Interface SourceOrBuilder (2.41.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.v1.FileHashes> file_hashes = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
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.v1.SourceContext additional_contexts = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.SourceContext additional_contexts = 4;

Returns
TypeDescription
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.v1.SourceContext additional_contexts = 4;

Returns
TypeDescription
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.v1.SourceContext additional_contexts = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.SourceContext additional_contexts = 4;

Returns
TypeDescription
List<? extends io.grafeas.v1.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
TypeDescription
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
TypeDescription
ByteString

The bytes for artifactStorageSourceUri.

getContext()

public abstract SourceContext getContext()

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

.grafeas.v1.SourceContext context = 3;

Returns
TypeDescription
SourceContext

The context.

getContextOrBuilder()

public abstract SourceContextOrBuilder getContextOrBuilder()

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

.grafeas.v1.SourceContext context = 3;

Returns
TypeDescription
SourceContextOrBuilder

getFileHashes() (deprecated)

public abstract Map<String,FileHashes> getFileHashes()

Use #getFileHashesMap() instead.

Returns
TypeDescription
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.v1.FileHashes> file_hashes = 2;

Returns
TypeDescription
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.v1.FileHashes> file_hashes = 2;

Returns
TypeDescription
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.v1.FileHashes> file_hashes = 2;

Parameters
NameDescription
keyString
defaultValueFileHashes
Returns
TypeDescription
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.v1.FileHashes> file_hashes = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
FileHashes

hasContext()

public abstract boolean hasContext()

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

.grafeas.v1.SourceContext context = 3;

Returns
TypeDescription
boolean

Whether the context field is set.