Class SlsaProvenance.SlsaRecipe.Builder (2.2.3)

public static final class SlsaProvenance.SlsaRecipe.Builder extends GeneratedMessageV3.Builder<SlsaProvenance.SlsaRecipe.Builder> implements SlsaProvenance.SlsaRecipeOrBuilder

Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe.

Protobuf type grafeas.v1.SlsaProvenance.SlsaRecipe

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenance.SlsaRecipe build()
Returns
TypeDescription
SlsaProvenance.SlsaRecipe

buildPartial()

public SlsaProvenance.SlsaRecipe buildPartial()
Returns
TypeDescription
SlsaProvenance.SlsaRecipe

clear()

public SlsaProvenance.SlsaRecipe.Builder clear()
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder
Overrides

clearArguments()

public SlsaProvenance.SlsaRecipe.Builder clearArguments()

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

clearDefinedInMaterial()

public SlsaProvenance.SlsaRecipe.Builder clearDefinedInMaterial()

Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64.

int64 defined_in_material = 2;

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

clearEntryPoint()

public SlsaProvenance.SlsaRecipe.Builder clearEntryPoint()

String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.

string entry_point = 3;

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

clearEnvironment()

public SlsaProvenance.SlsaRecipe.Builder clearEnvironment()

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

clearField(Descriptors.FieldDescriptor field)

public SlsaProvenance.SlsaRecipe.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SlsaProvenance.SlsaRecipe.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder
Overrides

clearType()

public SlsaProvenance.SlsaRecipe.Builder clearType()

URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.

string type = 1;

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

clone()

public SlsaProvenance.SlsaRecipe.Builder clone()
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder
Overrides

getArguments()

public Any getArguments()

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Returns
TypeDescription
Any

The arguments.

getArgumentsBuilder()

public Any.Builder getArgumentsBuilder()

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Returns
TypeDescription
Builder

getArgumentsOrBuilder()

public AnyOrBuilder getArgumentsOrBuilder()

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Returns
TypeDescription
AnyOrBuilder

getDefaultInstanceForType()

public SlsaProvenance.SlsaRecipe getDefaultInstanceForType()
Returns
TypeDescription
SlsaProvenance.SlsaRecipe

getDefinedInMaterial()

public long getDefinedInMaterial()

Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64.

int64 defined_in_material = 2;

Returns
TypeDescription
long

The definedInMaterial.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntryPoint()

public String getEntryPoint()

String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.

string entry_point = 3;

Returns
TypeDescription
String

The entryPoint.

getEntryPointBytes()

public ByteString getEntryPointBytes()

String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.

string entry_point = 3;

Returns
TypeDescription
ByteString

The bytes for entryPoint.

getEnvironment()

public Any getEnvironment()

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Returns
TypeDescription
Any

The environment.

getEnvironmentBuilder()

public Any.Builder getEnvironmentBuilder()

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Returns
TypeDescription
Builder

getEnvironmentOrBuilder()

public AnyOrBuilder getEnvironmentOrBuilder()

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Returns
TypeDescription
AnyOrBuilder

getType()

public String getType()

URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

hasArguments()

public boolean hasArguments()

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Returns
TypeDescription
boolean

Whether the arguments field is set.

hasEnvironment()

public boolean hasEnvironment()

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Returns
TypeDescription
boolean

Whether the environment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeArguments(Any value)

public SlsaProvenance.SlsaRecipe.Builder mergeArguments(Any value)

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Parameter
NameDescription
valueAny
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

mergeEnvironment(Any value)

public SlsaProvenance.SlsaRecipe.Builder mergeEnvironment(Any value)

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Parameter
NameDescription
valueAny
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SlsaProvenance.SlsaRecipe other)

public SlsaProvenance.SlsaRecipe.Builder mergeFrom(SlsaProvenance.SlsaRecipe other)
Parameter
NameDescription
otherSlsaProvenance.SlsaRecipe
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArguments(Any value)

public SlsaProvenance.SlsaRecipe.Builder setArguments(Any value)

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Parameter
NameDescription
valueAny
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

setArguments(Any.Builder builderForValue)

public SlsaProvenance.SlsaRecipe.Builder setArguments(Any.Builder builderForValue)

Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any arguments = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

setDefinedInMaterial(long value)

public SlsaProvenance.SlsaRecipe.Builder setDefinedInMaterial(long value)

Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64.

int64 defined_in_material = 2;

Parameter
NameDescription
valuelong

The definedInMaterial to set.

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

setEntryPoint(String value)

public SlsaProvenance.SlsaRecipe.Builder setEntryPoint(String value)

String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.

string entry_point = 3;

Parameter
NameDescription
valueString

The entryPoint to set.

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

setEntryPointBytes(ByteString value)

public SlsaProvenance.SlsaRecipe.Builder setEntryPointBytes(ByteString value)

String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.

string entry_point = 3;

Parameter
NameDescription
valueByteString

The bytes for entryPoint to set.

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

setEnvironment(Any value)

public SlsaProvenance.SlsaRecipe.Builder setEnvironment(Any value)

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Parameter
NameDescription
valueAny
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

setEnvironment(Any.Builder builderForValue)

public SlsaProvenance.SlsaRecipe.Builder setEnvironment(Any.Builder builderForValue)

Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.

.google.protobuf.Any environment = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SlsaProvenance.SlsaRecipe.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder
Overrides

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

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

setType(String value)

public SlsaProvenance.SlsaRecipe.Builder setType(String value)

URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.

string type = 1;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public SlsaProvenance.SlsaRecipe.Builder setTypeBytes(ByteString value)

URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.

string type = 1;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
SlsaProvenance.SlsaRecipe.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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