Class InTotoStatement.Builder (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class InTotoStatement.Builder extends GeneratedMessageV3.Builder<InTotoStatement.Builder> implements InTotoStatementOrBuilder

Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always "application/vnd.in-toto+json".

Protobuf type grafeas.v1.InTotoStatement

Static Methods

getDescriptor()

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

Methods

addAllSubject(Iterable<? extends Subject> values)

public InTotoStatement.Builder addAllSubject(Iterable<? extends Subject> values)

repeated .grafeas.v1.Subject subject = 2;

Parameter
NameDescription
valuesIterable<? extends io.grafeas.v1.Subject>
Returns
TypeDescription
InTotoStatement.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubject(int index, Subject value)

public InTotoStatement.Builder addSubject(int index, Subject value)

repeated .grafeas.v1.Subject subject = 2;

Parameters
NameDescription
indexint
valueSubject
Returns
TypeDescription
InTotoStatement.Builder

addSubject(int index, Subject.Builder builderForValue)

public InTotoStatement.Builder addSubject(int index, Subject.Builder builderForValue)

repeated .grafeas.v1.Subject subject = 2;

Parameters
NameDescription
indexint
builderForValueSubject.Builder
Returns
TypeDescription
InTotoStatement.Builder

addSubject(Subject value)

public InTotoStatement.Builder addSubject(Subject value)

repeated .grafeas.v1.Subject subject = 2;

Parameter
NameDescription
valueSubject
Returns
TypeDescription
InTotoStatement.Builder

addSubject(Subject.Builder builderForValue)

public InTotoStatement.Builder addSubject(Subject.Builder builderForValue)

repeated .grafeas.v1.Subject subject = 2;

Parameter
NameDescription
builderForValueSubject.Builder
Returns
TypeDescription
InTotoStatement.Builder

addSubjectBuilder()

public Subject.Builder addSubjectBuilder()

repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription
Subject.Builder

addSubjectBuilder(int index)

public Subject.Builder addSubjectBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Subject.Builder

build()

public InTotoStatement build()
Returns
TypeDescription
InTotoStatement

buildPartial()

public InTotoStatement buildPartial()
Returns
TypeDescription
InTotoStatement

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPredicate()

public InTotoStatement.Builder clearPredicate()
Returns
TypeDescription
InTotoStatement.Builder

clearPredicateType()

public InTotoStatement.Builder clearPredicateType()

https://slsa.dev/provenance/v0.1 for SlsaProvenance.

string predicate_type = 3;

Returns
TypeDescription
InTotoStatement.Builder

This builder for chaining.

clearProvenance()

public InTotoStatement.Builder clearProvenance()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
TypeDescription
InTotoStatement.Builder

clearSlsaProvenance()

public InTotoStatement.Builder clearSlsaProvenance()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
TypeDescription
InTotoStatement.Builder

clearSlsaProvenanceZeroTwo()

public InTotoStatement.Builder clearSlsaProvenanceZeroTwo()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
TypeDescription
InTotoStatement.Builder

clearSubject()

public InTotoStatement.Builder clearSubject()

repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription
InTotoStatement.Builder

clearType()

public InTotoStatement.Builder clearType()

Always https://in-toto.io/Statement/v0.1.

string type = 1 [json_name = "_type"];

Returns
TypeDescription
InTotoStatement.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InTotoStatement getDefaultInstanceForType()
Returns
TypeDescription
InTotoStatement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPredicateCase()

public InTotoStatement.PredicateCase getPredicateCase()
Returns
TypeDescription
InTotoStatement.PredicateCase

getPredicateType()

public String getPredicateType()

https://slsa.dev/provenance/v0.1 for SlsaProvenance.

string predicate_type = 3;

Returns
TypeDescription
String

The predicateType.

getPredicateTypeBytes()

public ByteString getPredicateTypeBytes()

https://slsa.dev/provenance/v0.1 for SlsaProvenance.

string predicate_type = 3;

Returns
TypeDescription
ByteString

The bytes for predicateType.

getProvenance()

public InTotoProvenance getProvenance()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
TypeDescription
InTotoProvenance

The provenance.

getProvenanceBuilder()

public InTotoProvenance.Builder getProvenanceBuilder()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
TypeDescription
InTotoProvenance.Builder

getProvenanceOrBuilder()

public InTotoProvenanceOrBuilder getProvenanceOrBuilder()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
TypeDescription
InTotoProvenanceOrBuilder

getSlsaProvenance()

public SlsaProvenance getSlsaProvenance()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
TypeDescription
SlsaProvenance

The slsaProvenance.

getSlsaProvenanceBuilder()

public SlsaProvenance.Builder getSlsaProvenanceBuilder()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
TypeDescription
SlsaProvenance.Builder

getSlsaProvenanceOrBuilder()

public SlsaProvenanceOrBuilder getSlsaProvenanceOrBuilder()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
TypeDescription
SlsaProvenanceOrBuilder

getSlsaProvenanceZeroTwo()

public SlsaProvenanceZeroTwo getSlsaProvenanceZeroTwo()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
TypeDescription
SlsaProvenanceZeroTwo

The slsaProvenanceZeroTwo.

getSlsaProvenanceZeroTwoBuilder()

public SlsaProvenanceZeroTwo.Builder getSlsaProvenanceZeroTwoBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

getSlsaProvenanceZeroTwoOrBuilder()

public SlsaProvenanceZeroTwoOrBuilder getSlsaProvenanceZeroTwoOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
TypeDescription
SlsaProvenanceZeroTwoOrBuilder

getSubject(int index)

public Subject getSubject(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Subject

getSubjectBuilder(int index)

public Subject.Builder getSubjectBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Subject.Builder

getSubjectBuilderList()

public List<Subject.Builder> getSubjectBuilderList()

repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription
List<Builder>

getSubjectCount()

public int getSubjectCount()

repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription