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<GoogleDevtoolsContaineranalysisV1alpha1SourceContext> |
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.
|
StorageSource |
getArtifactStorageSource()
If provided, the input binary artifacts for the build came from this location.
|
GoogleDevtoolsContaineranalysisV1alpha1SourceContext |
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.
|
RepoSource |
getRepoSource()
If provided, get source from this location in a Cloud Repo.
|
StorageSource |
getStorageSource()
If provided, get the source from this location in in Google Cloud Storage.
|
Source |
set(java.lang.String fieldName,
java.lang.Object value) |
Source |
setAdditionalContexts(java.util.List<GoogleDevtoolsContaineranalysisV1alpha1SourceContext> 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 |
setArtifactStorageSource(StorageSource artifactStorageSource)
If provided, the input binary artifacts for the build came from this location.
|
Source |
setContext(GoogleDevtoolsContaineranalysisV1alpha1SourceContext 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.
|
Source |
setRepoSource(RepoSource repoSource)
If provided, get source from this location in a Cloud Repo.
|
Source |
setStorageSource(StorageSource storageSource)
If provided, get the source from this location in in Google Cloud Storage.
|
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<GoogleDevtoolsContaineranalysisV1alpha1SourceContext> getAdditionalContexts()
null
for nonepublic Source setAdditionalContexts(java.util.List<GoogleDevtoolsContaineranalysisV1alpha1SourceContext> additionalContexts)
additionalContexts
- additionalContexts or null
for nonepublic StorageSource getArtifactStorageSource()
null
for nonepublic Source setArtifactStorageSource(StorageSource artifactStorageSource)
artifactStorageSource
- artifactStorageSource or null
for nonepublic GoogleDevtoolsContaineranalysisV1alpha1SourceContext getContext()
null
for nonepublic Source setContext(GoogleDevtoolsContaineranalysisV1alpha1SourceContext 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 RepoSource getRepoSource()
null
for nonepublic Source setRepoSource(RepoSource repoSource)
repoSource
- repoSource or null
for nonepublic StorageSource getStorageSource()
null
for nonepublic Source setStorageSource(StorageSource storageSource)
storageSource
- storageSource 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