Class SlsaProvenanceZeroTwo.Builder (2.44.0)

public static final class SlsaProvenanceZeroTwo.Builder extends GeneratedMessageV3.Builder<SlsaProvenanceZeroTwo.Builder> implements SlsaProvenanceZeroTwoOrBuilder

See full explanation of fields at slsa.dev/provenance/v0.2.

Protobuf type grafeas.v1.SlsaProvenanceZeroTwo

Static Methods

getDescriptor()

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

Methods

addAllMaterials(Iterable<? extends SlsaProvenanceZeroTwo.SlsaMaterial> values)

public SlsaProvenanceZeroTwo.Builder addAllMaterials(Iterable<? extends SlsaProvenanceZeroTwo.SlsaMaterial> values)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
values Iterable<? extends io.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial>
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)

public SlsaProvenanceZeroTwo.Builder addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameters
Name Description
index int
value SlsaProvenanceZeroTwo.SlsaMaterial
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder addMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameters
Name Description
index int
builderForValue SlsaProvenanceZeroTwo.SlsaMaterial.Builder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial value)

public SlsaProvenanceZeroTwo.Builder addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial value)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
value SlsaProvenanceZeroTwo.SlsaMaterial
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
builderForValue SlsaProvenanceZeroTwo.SlsaMaterial.Builder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

addMaterialsBuilder()

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder addMaterialsBuilder()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

addMaterialsBuilder(int index)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder addMaterialsBuilder(int index)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
index int
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenanceZeroTwo build()
Returns
Type Description
SlsaProvenanceZeroTwo

buildPartial()

public SlsaProvenanceZeroTwo buildPartial()
Returns
Type Description
SlsaProvenanceZeroTwo

clear()

public SlsaProvenanceZeroTwo.Builder clear()
Returns
Type Description
SlsaProvenanceZeroTwo.Builder
Overrides

clearBuildConfig()

public SlsaProvenanceZeroTwo.Builder clearBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

clearBuildType()

public SlsaProvenanceZeroTwo.Builder clearBuildType()

string build_type = 2;

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

This builder for chaining.

clearBuilder()

public SlsaProvenanceZeroTwo.Builder clearBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInvocation()

public SlsaProvenanceZeroTwo.Builder clearInvocation()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

clearMaterials()

public SlsaProvenanceZeroTwo.Builder clearMaterials()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

clearMetadata()

public SlsaProvenanceZeroTwo.Builder clearMetadata()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SlsaProvenanceZeroTwo.Builder clone()
Returns
Type Description
SlsaProvenanceZeroTwo.Builder
Overrides

getBuildConfig()

public Struct getBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
Type Description
Struct

The buildConfig.

getBuildConfigBuilder()

public Struct.Builder getBuildConfigBuilder()

.google.protobuf.Struct build_config = 4;

Returns
Type Description
Builder

getBuildConfigOrBuilder()

public StructOrBuilder getBuildConfigOrBuilder()

.google.protobuf.Struct build_config = 4;

Returns
Type Description
StructOrBuilder

getBuildType()

public String getBuildType()

string build_type = 2;

Returns
Type Description
String

The buildType.

getBuildTypeBytes()

public ByteString getBuildTypeBytes()

string build_type = 2;

Returns
Type Description
ByteString

The bytes for buildType.

getBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilder getBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaBuilder

The builder.

getBuilderBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilder.Builder getBuilderBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaBuilder.Builder

getBuilderOrBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilderOrBuilder getBuilderOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaBuilderOrBuilder

getDefaultInstanceForType()

public SlsaProvenanceZeroTwo getDefaultInstanceForType()
Returns
Type Description
SlsaProvenanceZeroTwo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInvocation()

public SlsaProvenanceZeroTwo.SlsaInvocation getInvocation()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaInvocation

The invocation.

getInvocationBuilder()

public SlsaProvenanceZeroTwo.SlsaInvocation.Builder getInvocationBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaInvocation.Builder

getInvocationOrBuilder()

public SlsaProvenanceZeroTwo.SlsaInvocationOrBuilder getInvocationOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaInvocationOrBuilder

getMaterials(int index)

public SlsaProvenanceZeroTwo.SlsaMaterial getMaterials(int index)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
index int
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMaterial

getMaterialsBuilder(int index)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder getMaterialsBuilder(int index)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
index int
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

getMaterialsBuilderList()

public List<SlsaProvenanceZeroTwo.SlsaMaterial.Builder> getMaterialsBuilderList()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
Type Description
List<Builder>

getMaterialsCount()

public int getMaterialsCount()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
Type Description
int

getMaterialsList()

public List<SlsaProvenanceZeroTwo.SlsaMaterial> getMaterialsList()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
Type Description
List<SlsaMaterial>

getMaterialsOrBuilder(int index)

public SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder getMaterialsOrBuilder(int index)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
index int
Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder

getMaterialsOrBuilderList()

public List<? extends SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder> getMaterialsOrBuilderList()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
Type Description
List<? extends io.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder>

getMetadata()

public SlsaProvenanceZeroTwo.SlsaMetadata getMetadata()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMetadata

The metadata.

getMetadataBuilder()

public SlsaProvenanceZeroTwo.SlsaMetadata.Builder getMetadataBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMetadata.Builder

getMetadataOrBuilder()

public SlsaProvenanceZeroTwo.SlsaMetadataOrBuilder getMetadataOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
Type Description
SlsaProvenanceZeroTwo.SlsaMetadataOrBuilder

hasBuildConfig()

public boolean hasBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
Type Description
boolean

Whether the buildConfig field is set.

hasBuilder()

public boolean hasBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
Type Description
boolean

Whether the builder field is set.

hasInvocation()

public boolean hasInvocation()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
Type Description
boolean

Whether the invocation field is set.

hasMetadata()

public boolean hasMetadata()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
Type Description
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBuildConfig(Struct value)

public SlsaProvenanceZeroTwo.Builder mergeBuildConfig(Struct value)

.google.protobuf.Struct build_config = 4;

Parameter
Name Description
value Struct
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

mergeBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

public SlsaProvenanceZeroTwo.Builder mergeBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Parameter
Name Description
value SlsaProvenanceZeroTwo.SlsaBuilder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SlsaProvenanceZeroTwo other)

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

mergeInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

public SlsaProvenanceZeroTwo.Builder mergeInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Parameter
Name Description
value SlsaProvenanceZeroTwo.SlsaInvocation
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

mergeMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

public SlsaProvenanceZeroTwo.Builder mergeMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Parameter
Name Description
value SlsaProvenanceZeroTwo.SlsaMetadata
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMaterials(int index)

public SlsaProvenanceZeroTwo.Builder removeMaterials(int index)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
Name Description
index int
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setBuildConfig(Struct value)

public SlsaProvenanceZeroTwo.Builder setBuildConfig(Struct value)

.google.protobuf.Struct build_config = 4;

Parameter
Name Description
value Struct
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setBuildConfig(Struct.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder setBuildConfig(Struct.Builder builderForValue)

.google.protobuf.Struct build_config = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setBuildType(String value)

public SlsaProvenanceZeroTwo.Builder setBuildType(String value)

string build_type = 2;

Parameter
Name Description
value String

The buildType to set.

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

This builder for chaining.

setBuildTypeBytes(ByteString value)

public SlsaProvenanceZeroTwo.Builder setBuildTypeBytes(ByteString value)

string build_type = 2;

Parameter
Name Description
value ByteString

The bytes for buildType to set.

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

This builder for chaining.

setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

public SlsaProvenanceZeroTwo.Builder setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Parameter
Name Description
value SlsaProvenanceZeroTwo.SlsaBuilder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder.Builder builderForValue)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Parameter
Name Description
builderForValue SlsaProvenanceZeroTwo.SlsaBuilder.Builder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

public SlsaProvenanceZeroTwo.Builder setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Parameter
Name Description
value SlsaProvenanceZeroTwo.SlsaInvocation
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation.Builder builderForValue)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Parameter
Name Description
builderForValue SlsaProvenanceZeroTwo.SlsaInvocation.Builder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)

public SlsaProvenanceZeroTwo.Builder setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial value)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameters
Name Description
index int
value SlsaProvenanceZeroTwo.SlsaMaterial
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder setMaterials(int index, SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameters
Name Description
index int
builderForValue SlsaProvenanceZeroTwo.SlsaMaterial.Builder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

public SlsaProvenanceZeroTwo.Builder setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Parameter
Name Description
value SlsaProvenanceZeroTwo.SlsaMetadata
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata.Builder builderForValue)

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Parameter
Name Description
builderForValue SlsaProvenanceZeroTwo.SlsaMetadata.Builder
Returns
Type Description
SlsaProvenanceZeroTwo.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final SlsaProvenanceZeroTwo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SlsaProvenanceZeroTwo.Builder
Overrides