Class InTotoStatement.Builder (2.31.0)

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