Class InTotoStatement.Builder (2.18.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
Name