public final class Source
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Container Analysis API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
Source |
clone() |
java.util.List<SourceContext> |
getAdditionalContexts()
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.
|
java.lang.String |
getArtifactStorageSourceUri()
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.
|
java.util.Map<java.lang.String,FileHashes> |
getFileHashes()
Hash(es) of the build source, which can be used to verify that the original source integrity
was maintained in the build.
|
Source |
set(java.lang.String fieldName,
java.lang.Object value) |
Source |
setAdditionalContexts(java.util.List<SourceContext> additionalContexts)
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.
|
Source |
setArtifactStorageSourceUri(java.lang.String artifactStorageSourceUri)
If provided, the input binary artifacts for the build came from this location.
|
Source |
setContext(SourceContext context)
If provided, the source code used for the build came from this location.
|
Source |
setFileHashes(java.util.Map<java.lang.String,FileHashes> fileHashes)
Hash(es) of the build source, which can be used to verify that the original source integrity
was maintained in the build.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<SourceContext> getAdditionalContexts()
null
for nonepublic Source setAdditionalContexts(java.util.List<SourceContext> additionalContexts)
additionalContexts
- additionalContexts or null
for nonepublic java.lang.String getArtifactStorageSourceUri()
null
for nonepublic Source setArtifactStorageSourceUri(java.lang.String artifactStorageSourceUri)
artifactStorageSourceUri
- artifactStorageSourceUri or null
for nonepublic SourceContext getContext()
null
for nonepublic Source setContext(SourceContext context)
context
- context or null
for nonepublic java.util.Map<java.lang.String,FileHashes> getFileHashes()
null
for nonepublic Source setFileHashes(java.util.Map<java.lang.String,FileHashes> fileHashes)
fileHashes
- fileHashes or null
for nonepublic Source set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Source clone()
clone
in class com.google.api.client.json.GenericJson