Class InTotoProvenance.Builder (2.34.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
TypeDescription
Descriptor

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
NameDescription
valuesIterable<String>

The materials to add.

Returns
TypeDescription
InTotoProvenance.Builder

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
NameDescription
valueString

The materials to add.

Returns
TypeDescription
InTotoProvenance.Builder

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
NameDescription
valueByteString

The bytes of the materials to add.

Returns
TypeDescription
InTotoProvenance.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InTotoProvenance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InTotoProvenance.Builder
Overrides

build()

public InTotoProvenance build()
Returns
TypeDescription
InTotoProvenance

buildPartial()

public InTotoProvenance buildPartial()
Returns
TypeDescription
InTotoProvenance

clear()

public InTotoProvenance.Builder clear()
Returns
TypeDescription
InTotoProvenance.Builder
Overrides

clearBuilderConfig()

public InTotoProvenance.Builder clearBuilderConfig()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
TypeDescription
InTotoProvenance.Builder

clearField(Descriptors.FieldDescriptor field)

public InTotoProvenance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InTotoProvenance.Builder
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
TypeDescription
InTotoProvenance.Builder

This builder for chaining.

clearMetadata()

public InTotoProvenance.Builder clearMetadata()

.grafeas.v1.Metadata metadata = 3;

Returns
TypeDescription
InTotoProvenance.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InTotoProvenance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InTotoProvenance.Builder
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
TypeDescription
InTotoProvenance.Builder

clone()

public InTotoProvenance.Builder clone()
Returns
TypeDescription
InTotoProvenance.Builder
Overrides

getBuilderConfig()

public BuilderConfig getBuilderConfig()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
TypeDescription
BuilderConfig

The builderConfig.

getBuilderConfigBuilder()

public BuilderConfig.Builder getBuilderConfigBuilder()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
TypeDescription
BuilderConfig.Builder

getBuilderConfigOrBuilder()

public BuilderConfigOrBuilder getBuilderConfigOrBuilder()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
TypeDescription
BuilderConfigOrBuilder

getDefaultInstanceForType()

public InTotoProvenance getDefaultInstanceForType()
Returns
TypeDescription
InTotoProvenance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the materials.

getMetadata()

public Metadata getMetadata()

.grafeas.v1.Metadata metadata = 3;

Returns
TypeDescription
Metadata

The metadata.

getMetadataBuilder()

public Metadata.Builder getMetadataBuilder()

.grafeas.v1.Metadata metadata = 3;

Returns
TypeDescription
Metadata.Builder

getMetadataOrBuilder()

public MetadataOrBuilder getMetadataOrBuilder()

.grafeas.v1.Metadata metadata = 3;

Returns
TypeDescription
MetadataOrBuilder

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
TypeDescription
Recipe

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
TypeDescription
Recipe.Builder

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
TypeDescription
RecipeOrBuilder

hasBuilderConfig()

public boolean hasBuilderConfig()

required

.grafeas.v1.BuilderConfig builder_config = 1;

Returns
TypeDescription
boolean

Whether the builderConfig field is set.

hasMetadata()

public boolean hasMetadata()

.grafeas.v1.Metadata metadata = 3;

Returns
TypeDescription
boolean

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
TypeDescription
boolean

Whether the recipe field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBuilderConfig(BuilderConfig value)

public InTotoProvenance.Builder mergeBuilderConfig(BuilderConfig value)

required

.grafeas.v1.BuilderConfig builder_config = 1;

Parameter
NameDescription
valueBuilderConfig
Returns
TypeDescription
InTotoProvenance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InTotoProvenance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InTotoProvenance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InTotoProvenance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InTotoProvenance.Builder
Overrides

mergeFrom(InTotoProvenance other)

public InTotoProvenance.Builder mergeFrom(InTotoProvenance other)
Parameter
NameDescription
otherInTotoProvenance
Returns
TypeDescription
InTotoProvenance.Builder

mergeMetadata(Metadata value)

public InTotoProvenance.Builder mergeMetadata(Metadata value)

.grafeas.v1.Metadata metadata = 3;

Parameter
NameDescription
valueMetadata
Returns
TypeDescription
InTotoProvenance.Builder

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
NameDescription
valueRecipe
Returns
TypeDescription
InTotoProvenance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InTotoProvenance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InTotoProvenance.Builder
Overrides

setBuilderConfig(BuilderConfig value)

public InTotoProvenance.Builder setBuilderConfig(BuilderConfig value)

required

.grafeas.v1.BuilderConfig builder_config = 1;

Parameter
NameDescription
valueBuilderConfig
Returns
TypeDescription
InTotoProvenance.Builder

setBuilderConfig(BuilderConfig.Builder builderForValue)

public InTotoProvenance.Builder setBuilderConfig(BuilderConfig.Builder builderForValue)

required

.grafeas.v1.BuilderConfig builder_config = 1;

Parameter
NameDescription
builderForValueBuilderConfig.Builder
Returns
TypeDescription
InTotoProvenance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InTotoProvenance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InTotoProvenance.Builder
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
NameDescription
indexint

The index to set the value at.

valueString

The materials to set.

Returns
TypeDescription
InTotoProvenance.Builder

This builder for chaining.

setMetadata(Metadata value)

public InTotoProvenance.Builder setMetadata(Metadata value)

.grafeas.v1.Metadata metadata = 3;

Parameter
NameDescription
valueMetadata
Returns
TypeDescription
InTotoProvenance.Builder

setMetadata(Metadata.Builder builderForValue)

public InTotoProvenance.Builder setMetadata(Metadata.Builder builderForValue)

.grafeas.v1.Metadata metadata = 3;

Parameter
NameDescription
builderForValueMetadata.Builder
Returns
TypeDescription
InTotoProvenance.Builder

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
NameDescription
valueRecipe
Returns
TypeDescription
InTotoProvenance.Builder

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
NameDescription
builderForValueRecipe.Builder
Returns
TypeDescription
InTotoProvenance.Builder

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

public InTotoProvenance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InTotoProvenance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InTotoProvenance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InTotoProvenance.Builder
Overrides