Class InTotoProvenance.Builder (2.74.0)

  public 
  
 static 
  
 final 
  
 class 
 InTotoProvenance 
 . 
 Builder 
  
 extends 
  
 GeneratedMessageV3 
 . 
 Builder<InTotoProvenance 
 . 
 Builder 
>  
 implements 
  
 InTotoProvenanceOrBuilder 
 

Protobuf type grafeas.v1.InTotoProvenance

Static Methods

getDescriptor()

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

Methods

addAllMaterials(Iterable<String> values)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 addAllMaterials 
 ( 
 Iterable<String> 
  
 values 
 ) 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Parameter
Name
Description
values
Iterable < String >

The materials to add.

Returns
Type
Description

This builder for chaining.

addMaterials(String value)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 addMaterials 
 ( 
 String 
  
 value 
 ) 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Parameter
Name
Description
value
String

The materials to add.

Returns
Type
Description

This builder for chaining.

addMaterialsBytes(ByteString value)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 addMaterialsBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Parameter
Name
Description
value
ByteString

The bytes of the materials to add.

Returns
Type
Description

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

  public 
  
 InTotoProvenance 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 InTotoProvenance 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearBuilderConfig()

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 clearBuilderConfig 
 () 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type
Description

clearField(Descriptors.FieldDescriptor field)

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

clearMaterials()

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 clearMaterials 
 () 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Returns
Type
Description

This builder for chaining.

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 clearMetadata 
 () 
 

.grafeas.v1.Metadata metadata = 3;

Returns
Type
Description

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecipe()

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 clearRecipe 
 () 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Returns
Type
Description

clone()

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type
Description
Overrides

getBuilderConfig()

  public 
  
 BuilderConfig 
  
 getBuilderConfig 
 () 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type
Description

The builderConfig.

getBuilderConfigBuilder()

  public 
  
 BuilderConfig 
 . 
 Builder 
  
 getBuilderConfigBuilder 
 () 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type
Description

getBuilderConfigOrBuilder()

  public 
  
 BuilderConfigOrBuilder 
  
 getBuilderConfigOrBuilder 
 () 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 InTotoProvenance 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getMaterials(int index)

  public 
  
 String 
  
 getMaterials 
 ( 
 int 
  
 index 
 ) 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Parameter
Name
Description
index
int

The index of the element to return.

Returns
Type
Description

The materials at the given index.

getMaterialsBytes(int index)

  public 
  
 ByteString 
  
 getMaterialsBytes 
 ( 
 int 
  
 index 
 ) 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Parameter
Name
Description
index
int

The index of the value to return.

Returns
Type
Description

The bytes of the materials at the given index.

getMaterialsCount()

  public 
  
 int 
  
 getMaterialsCount 
 () 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Returns
Type
Description
int

The count of materials.

getMaterialsList()

  public 
  
 ProtocolStringList 
  
 getMaterialsList 
 () 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Returns
Type
Description

A list containing the materials.

  public 
  
 Metadata 
  
 getMetadata 
 () 
 

.grafeas.v1.Metadata metadata = 3;

Returns
Type
Description

The metadata.

getMetadataBuilder()

  public 
  
 Metadata 
 . 
 Builder 
  
 getMetadataBuilder 
 () 
 

.grafeas.v1.Metadata metadata = 3;

Returns
Type
Description

getMetadataOrBuilder()

  public 
  
 MetadataOrBuilder 
  
 getMetadataOrBuilder 
 () 
 

.grafeas.v1.Metadata metadata = 3;

Returns
Type
Description

getRecipe()

  public 
  
 Recipe 
  
 getRecipe 
 () 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Returns
Type
Description

The recipe.

getRecipeBuilder()

  public 
  
 Recipe 
 . 
 Builder 
  
 getRecipeBuilder 
 () 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Returns
Type
Description

getRecipeOrBuilder()

  public 
  
 RecipeOrBuilder 
  
 getRecipeOrBuilder 
 () 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Returns
Type
Description

hasBuilderConfig()

  public 
  
 boolean 
  
 hasBuilderConfig 
 () 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
Type
Description

Whether the builderConfig field is set.

  public 
  
 boolean 
  
 hasMetadata 
 () 
 

.grafeas.v1.Metadata metadata = 3;

Returns
Type
Description

Whether the metadata field is set.

hasRecipe()

  public 
  
 boolean 
  
 hasRecipe 
 () 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Returns
Type
Description

Whether the recipe field is set.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeBuilderConfig(BuilderConfig value)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 mergeBuilderConfig 
 ( 
 BuilderConfig 
  
 value 
 ) 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Parameter
Name
Description
Returns
Type
Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(InTotoProvenance other)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 mergeFrom 
 ( 
 InTotoProvenance 
  
 other 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 mergeMetadata 
 ( 
 Metadata 
  
 value 
 ) 
 

.grafeas.v1.Metadata metadata = 3;

Parameter
Name
Description
value
Returns
Type
Description

mergeRecipe(Recipe value)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 mergeRecipe 
 ( 
 Recipe 
  
 value 
 ) 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Parameter
Name
Description
value
Returns
Type
Description

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBuilderConfig(BuilderConfig value)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 setBuilderConfig 
 ( 
 BuilderConfig 
  
 value 
 ) 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Parameter
Name
Description
Returns
Type
Description

setBuilderConfig(BuilderConfig.Builder builderForValue)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 setBuilderConfig 
 ( 
 BuilderConfig 
 . 
 Builder 
  
 builderForValue 
 ) 
 

required

.grafeas.v1.BuilderConfig builder_config = 1;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaterials(int index, String value)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 setMaterials 
 ( 
 int 
  
 index 
 , 
  
 String 
  
 value 
 ) 
 

The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.

repeated string materials = 4;

Parameters
Name
Description
index
int

The index to set the value at.

value
String

The materials to set.

Returns
Type
Description

This builder for chaining.

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 setMetadata 
 ( 
 Metadata 
  
 value 
 ) 
 

.grafeas.v1.Metadata metadata = 3;

Parameter
Name
Description
value
Returns
Type
Description
  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 setMetadata 
 ( 
 Metadata 
 . 
 Builder 
  
 builderForValue 
 ) 
 

.grafeas.v1.Metadata metadata = 3;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setRecipe(Recipe value)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 setRecipe 
 ( 
 Recipe 
  
 value 
 ) 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Parameter
Name
Description
value
Returns
Type
Description

setRecipe(Recipe.Builder builderForValue)

  public 
  
 InTotoProvenance 
 . 
 Builder 
  
 setRecipe 
 ( 
 Recipe 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible).

.grafeas.v1.Recipe recipe = 2;

Parameter
Name
Description
builderForValue
Returns
Type
Description

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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