Interface SourceOrBuilder (2.68.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
Name
Description
key
Returns
Type
Description

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
Name
Description
index
int
Returns
Type
Description

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

Returns
Type
Description

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
Name
Description
index
int
Returns
Type
Description

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
Type
Description
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
Type
Description

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

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
Type
Description

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
Type
Description

getFileHashes() (deprecated)

  public 
  
 abstract 
  
 Map<String 
 , 
 FileHashes 
>  
 getFileHashes 
 () 
 

Use #getFileHashesMap() instead.

Returns
Type
Description

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

Returns
Type
Description

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
Name
Description
key
defaultValue
Returns
Type
Description

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
Name
Description
key
Returns
Type
Description

hasContext()

  public 
  
 abstract 
  
 boolean 
  
 hasContext 
 () 
 

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

.grafeas.v1.SourceContext context = 3;

Returns
Type
Description

Whether the context field is set.

Create a Mobile Website
View Site in Mobile | Classic
Share by: