Class Source.Builder (2.30.0)

  public 
  
 static 
  
 final 
  
 class 
 Source 
 . 
 Builder 
  
 extends 
  
 GeneratedMessageV3 
 . 
 Builder<Source 
 . 
 Builder 
>  
 implements 
  
 SourceOrBuilder 
 

Source describes the location of the source used for the build.

Protobuf type grafeas.v1.Source

Implements

SourceOrBuilder

Static Methods

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

Methods

addAdditionalContexts(int index, SourceContext value)

  public 
  
 Source 
 . 
 Builder 
  
 addAdditionalContexts 
 ( 
 int 
  
 index 
 , 
  
 SourceContext 
  
 value 
 ) 
 

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;

Parameters
Name
Description
index
int
Returns
Type
Description

addAdditionalContexts(int index, SourceContext.Builder builderForValue)

  public 
  
 Source 
 . 
 Builder 
  
 addAdditionalContexts 
 ( 
 int 
  
 index 
 , 
  
 SourceContext 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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;

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

addAdditionalContexts(SourceContext value)

  public 
  
 Source 
 . 
 Builder 
  
 addAdditionalContexts 
 ( 
 SourceContext 
  
 value 
 ) 
 

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

addAdditionalContexts(SourceContext.Builder builderForValue)

  public 
  
 Source 
 . 
 Builder 
  
 addAdditionalContexts 
 ( 
 SourceContext 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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

addAdditionalContextsBuilder()

  public 
  
 SourceContext 
 . 
 Builder 
  
 addAdditionalContextsBuilder 
 () 
 

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

addAdditionalContextsBuilder(int index)

  public 
  
 SourceContext 
 . 
 Builder 
  
 addAdditionalContextsBuilder 
 ( 
 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

addAllAdditionalContexts(Iterable<? extends SourceContext> values)

  public 
  
 Source 
 . 
 Builder 
  
 addAllAdditionalContexts 
 ( 
 Iterable 
< ? 
  
 extends 
  
 SourceContext 
>  
 values 
 ) 
 

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
values
Iterable < ? extends io.grafeas.v1.SourceContext >
Returns
Type
Description

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 Source 
 . 
 Builder 
  
 addRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

build()

  public 
  
 Source 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 Source 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 Source 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearAdditionalContexts()

  public 
  
 Source 
 . 
 Builder 
  
 clearAdditionalContexts 
 () 
 

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

clearArtifactStorageSourceUri()

  public 
  
 Source 
 . 
 Builder 
  
 clearArtifactStorageSourceUri 
 () 
 

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

string artifact_storage_source_uri = 1;

Returns
Type
Description

This builder for chaining.

clearContext()

  public 
  
 Source 
 . 
 Builder 
  
 clearContext 
 () 
 

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

.grafeas.v1.SourceContext context = 3;

Returns
Type
Description

clearField(Descriptors.FieldDescriptor field)

  public 
  
 Source 
 . 
 Builder 
  
 clearField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearFileHashes()

  public 
  
 Source 
 . 
 Builder 
  
 clearFileHashes 
 () 
 
Returns
Type
Description

clearOneof(Descriptors.OneofDescriptor oneof)

  public 
  
 Source 
 . 
 Builder 
  
 clearOneof 
 ( 
 Descriptors 
 . 
 OneofDescriptor 
  
 oneof 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clone()

  public 
  
 Source 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type
Description
Overrides

containsFileHashes(String key)

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

getAdditionalContextsBuilder(int index)

  public 
  
 SourceContext 
 . 
 Builder 
  
 getAdditionalContextsBuilder 
 ( 
 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

getAdditionalContextsBuilderList()

  public 
  
 List<SourceContext 
 . 
 Builder 
>  
 getAdditionalContextsBuilderList 
 () 
 

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

getAdditionalContextsCount()

  public 
  
 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 
  
 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 
  
 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 
  
 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 
  
 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 
  
 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 
  
 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.

getContextBuilder()

  public 
  
 SourceContext 
 . 
 Builder 
  
 getContextBuilder 
 () 
 

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

.grafeas.v1.SourceContext context = 3;

Returns
Type
Description

getContextOrBuilder()

  public 
  
 SourceContextOrBuilder 
  
 getContextOrBuilder 
 () 
 

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

.grafeas.v1.SourceContext context = 3;

Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 Source 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getFileHashes()

  public 
  
 Map<String 
 , 
 FileHashes 
>  
 getFileHashes 
 () 
 

Use #getFileHashesMap() instead.

Returns
Type
Description

getFileHashesCount()

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

getMutableFileHashes()

  public 
  
 Map<String 
 , 
 FileHashes 
>  
 getMutableFileHashes 
 () 
 

Use alternate mutation accessors instead.

Returns
Type
Description

hasContext()

  public 
  
 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.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

internalGetMapField(int number)

  protected 
  
 MapField 
  
 internalGetMapField 
 ( 
 int 
  
 number 
 ) 
 
Parameter
Name
Description
number
int
Returns
Type
Description
Overrides

internalGetMutableMapField(int number)

  protected 
  
 MapField 
  
 internalGetMutableMapField 
 ( 
 int 
  
 number 
 ) 
 
Parameter
Name
Description
number
int
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeContext(SourceContext value)

  public 
  
 Source 
 . 
 Builder 
  
 mergeContext 
 ( 
 SourceContext 
  
 value 
 ) 
 

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

.grafeas.v1.SourceContext context = 3;

Parameter
Name
Description
Returns
Type
Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 Source 
 . 
 Builder 
  
 mergeFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Overrides
Exceptions
Type
Description

mergeFrom(Message other)

  public 
  
 Source 
 . 
 Builder 
  
 mergeFrom 
 ( 
 Message 
  
 other 
 ) 
 
Parameter
Name
Description
other
Returns
Type
Description
Overrides

mergeFrom(Source other)

  public 
  
 Source 
 . 
 Builder 
  
 mergeFrom 
 ( 
 Source 
  
 other 
 ) 
 
Parameter
Name
Description
other
Returns
Type
Description

mergeUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 Source 
 . 
 Builder 
  
 mergeUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides

putAllFileHashes(Map<String,FileHashes> values)

  public 
  
 Source 
 . 
 Builder 
  
 putAllFileHashes 
 ( 
 Map<String 
 , 
 FileHashes 
>  
 values 
 ) 
 

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

putFileHashes(String key, FileHashes value)

  public 
  
 Source 
 . 
 Builder 
  
 putFileHashes 
 ( 
 String 
  
 key 
 , 
  
 FileHashes 
  
 value 
 ) 
 

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

removeAdditionalContexts(int index)

  public 
  
 Source 
 . 
 Builder 
  
 removeAdditionalContexts 
 ( 
 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

removeFileHashes(String key)

  public 
  
 Source 
 . 
 Builder 
  
 removeFileHashes 
 ( 
 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

setAdditionalContexts(int index, SourceContext value)

  public 
  
 Source 
 . 
 Builder 
  
 setAdditionalContexts 
 ( 
 int 
  
 index 
 , 
  
 SourceContext 
  
 value 
 ) 
 

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;

Parameters
Name
Description
index
int
Returns
Type
Description

setAdditionalContexts(int index, SourceContext.Builder builderForValue)

  public 
  
 Source 
 . 
 Builder 
  
 setAdditionalContexts 
 ( 
 int 
  
 index 
 , 
  
 SourceContext 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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;

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

setArtifactStorageSourceUri(String value)

  public 
  
 Source 
 . 
 Builder 
  
 setArtifactStorageSourceUri 
 ( 
 String 
  
 value 
 ) 
 

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

string artifact_storage_source_uri = 1;

Parameter
Name
Description
value
String

The artifactStorageSourceUri to set.

Returns
Type
Description

This builder for chaining.

setArtifactStorageSourceUriBytes(ByteString value)

  public 
  
 Source 
 . 
 Builder 
  
 setArtifactStorageSourceUriBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

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

string artifact_storage_source_uri = 1;

Parameter
Name
Description
value
ByteString

The bytes for artifactStorageSourceUri to set.

Returns
Type
Description

This builder for chaining.

setContext(SourceContext value)

  public 
  
 Source 
 . 
 Builder 
  
 setContext 
 ( 
 SourceContext 
  
 value 
 ) 
 

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

.grafeas.v1.SourceContext context = 3;

Parameter
Name
Description
Returns
Type
Description

setContext(SourceContext.Builder builderForValue)

  public 
  
 Source 
 . 
 Builder 
  
 setContext 
 ( 
 SourceContext 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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

.grafeas.v1.SourceContext context = 3;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 Source 
 . 
 Builder 
  
 setField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

  public 
  
 Source 
 . 
 Builder 
  
 setRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 int 
  
 index 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
index
int
value
Returns
Type
Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 Source 
 . 
 Builder 
  
 setUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides
Create a Mobile Website
View Site in Mobile | Classic
Share by: