Class SlsaProvenanceZeroTwo.Builder (2.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends io.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial>
Returns
TypeDescription
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
NameDescription
indexint
valueSlsaProvenanceZeroTwo.SlsaMaterial
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSlsaProvenanceZeroTwo.SlsaMaterial.Builder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial value)

public SlsaProvenanceZeroTwo.Builder addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial value)

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

Parameter
NameDescription
valueSlsaProvenanceZeroTwo.SlsaMaterial
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

addMaterials(SlsaProvenanceZeroTwo.SlsaMaterial.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueSlsaProvenanceZeroTwo.SlsaMaterial.Builder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

addMaterialsBuilder()

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder addMaterialsBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

addMaterialsBuilder(int index)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder addMaterialsBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SlsaProvenanceZeroTwo build()
Returns
TypeDescription
SlsaProvenanceZeroTwo

buildPartial()

public SlsaProvenanceZeroTwo buildPartial()
Returns
TypeDescription
SlsaProvenanceZeroTwo

clear()

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

clearBuildConfig()

public SlsaProvenanceZeroTwo.Builder clearBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

clearBuildType()

public SlsaProvenanceZeroTwo.Builder clearBuildType()

string build_type = 2;

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

This builder for chaining.

clearBuilder()

public SlsaProvenanceZeroTwo.Builder clearBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInvocation()

public SlsaProvenanceZeroTwo.Builder clearInvocation()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

clearMaterials()

public SlsaProvenanceZeroTwo.Builder clearMaterials()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

clearMetadata()

public SlsaProvenanceZeroTwo.Builder clearMetadata()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBuildConfig()

public Struct getBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
Struct

The buildConfig.

getBuildConfigBuilder()

public Struct.Builder getBuildConfigBuilder()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
Builder

getBuildConfigOrBuilder()

public StructOrBuilder getBuildConfigOrBuilder()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
StructOrBuilder

getBuildType()

public String getBuildType()

string build_type = 2;

Returns
TypeDescription
String

The buildType.

getBuildTypeBytes()

public ByteString getBuildTypeBytes()

string build_type = 2;

Returns
TypeDescription
ByteString

The bytes for buildType.

getBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilder getBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaBuilder

The builder.

getBuilderBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilder.Builder getBuilderBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaBuilder.Builder

getBuilderOrBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilderOrBuilder getBuilderOrBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaBuilderOrBuilder

getDefaultInstanceForType()

public SlsaProvenanceZeroTwo getDefaultInstanceForType()
Returns
TypeDescription
SlsaProvenanceZeroTwo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInvocation()

public SlsaProvenanceZeroTwo.SlsaInvocation getInvocation()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaInvocation

The invocation.

getInvocationBuilder()

public SlsaProvenanceZeroTwo.SlsaInvocation.Builder getInvocationBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaInvocation.Builder

getInvocationOrBuilder()

public SlsaProvenanceZeroTwo.SlsaInvocationOrBuilder getInvocationOrBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaInvocationOrBuilder

getMaterials(int index)

public SlsaProvenanceZeroTwo.SlsaMaterial getMaterials(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial

getMaterialsBuilder(int index)

public SlsaProvenanceZeroTwo.SlsaMaterial.Builder getMaterialsBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial.Builder

getMaterialsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getMaterialsCount()

public int getMaterialsCount()

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

Returns
TypeDescription
int

getMaterialsList()

public List<SlsaProvenanceZeroTwo.SlsaMaterial> getMaterialsList()

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

Returns
TypeDescription
List<SlsaMaterial>

getMaterialsOrBuilder(int index)

public SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder getMaterialsOrBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder

getMaterialsOrBuilderList()

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

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

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

getMetadata()

public SlsaProvenanceZeroTwo.SlsaMetadata getMetadata()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMetadata

The metadata.

getMetadataBuilder()

public SlsaProvenanceZeroTwo.SlsaMetadata.Builder getMetadataBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMetadata.Builder

getMetadataOrBuilder()

public SlsaProvenanceZeroTwo.SlsaMetadataOrBuilder getMetadataOrBuilder()

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

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMetadataOrBuilder

hasBuildConfig()

public boolean hasBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
boolean

Whether the buildConfig field is set.

hasBuilder()

public boolean hasBuilder()

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

Returns
TypeDescription
boolean

Whether the builder field is set.

hasInvocation()

public boolean hasInvocation()

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

Returns
TypeDescription
boolean

Whether the invocation field is set.

hasMetadata()

public boolean hasMetadata()

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

Returns
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBuildConfig(Struct value)

public SlsaProvenanceZeroTwo.Builder mergeBuildConfig(Struct value)

.google.protobuf.Struct build_config = 4;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

mergeBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

public SlsaProvenanceZeroTwo.Builder mergeBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

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

Parameter
NameDescription
valueSlsaProvenanceZeroTwo.SlsaBuilder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SlsaProvenanceZeroTwo other)

public SlsaProvenanceZeroTwo.Builder mergeFrom(SlsaProvenanceZeroTwo other)
Parameter
NameDescription
otherSlsaProvenanceZeroTwo
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

mergeInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

public SlsaProvenanceZeroTwo.Builder mergeInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

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

Parameter
NameDescription
valueSlsaProvenanceZeroTwo.SlsaInvocation
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

mergeMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

public SlsaProvenanceZeroTwo.Builder mergeMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

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

Parameter
NameDescription
valueSlsaProvenanceZeroTwo.SlsaMetadata
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMaterials(int index)

public SlsaProvenanceZeroTwo.Builder removeMaterials(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setBuildConfig(Struct value)

public SlsaProvenanceZeroTwo.Builder setBuildConfig(Struct value)

.google.protobuf.Struct build_config = 4;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setBuildConfig(Struct.Builder builderForValue)

public SlsaProvenanceZeroTwo.Builder setBuildConfig(Struct.Builder builderForValue)

.google.protobuf.Struct build_config = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setBuildType(String value)

public SlsaProvenanceZeroTwo.Builder setBuildType(String value)

string build_type = 2;

Parameter
NameDescription
valueString

The buildType to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

This builder for chaining.

setBuildTypeBytes(ByteString value)

public SlsaProvenanceZeroTwo.Builder setBuildTypeBytes(ByteString value)

string build_type = 2;

Parameter
NameDescription
valueByteString

The bytes for buildType to set.

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

This builder for chaining.

setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

public SlsaProvenanceZeroTwo.Builder setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder value)

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

Parameter
NameDescription
valueSlsaProvenanceZeroTwo.SlsaBuilder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setBuilder(SlsaProvenanceZeroTwo.SlsaBuilder.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueSlsaProvenanceZeroTwo.SlsaBuilder.Builder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

public SlsaProvenanceZeroTwo.Builder setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation value)

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

Parameter
NameDescription
valueSlsaProvenanceZeroTwo.SlsaInvocation
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setInvocation(SlsaProvenanceZeroTwo.SlsaInvocation.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueSlsaProvenanceZeroTwo.SlsaInvocation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSlsaProvenanceZeroTwo.SlsaMaterial
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSlsaProvenanceZeroTwo.SlsaMaterial.Builder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

public SlsaProvenanceZeroTwo.Builder setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata value)

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

Parameter
NameDescription
valueSlsaProvenanceZeroTwo.SlsaMetadata
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

setMetadata(SlsaProvenanceZeroTwo.SlsaMetadata.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueSlsaProvenanceZeroTwo.SlsaMetadata.Builder
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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