Class InTotoStatement.Builder (2.52.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
Type Description
Descriptor

Methods

addAllSubject(Iterable<? extends Subject> values)

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

repeated .grafeas.v1.Subject subject = 2;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubject(int index, Subject value)

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

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
value Subject
Returns
Type Description
InTotoStatement.Builder

addSubject(int index, Subject.Builder builderForValue)

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

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
builderForValue Subject.Builder
Returns
Type Description
InTotoStatement.Builder

addSubject(Subject value)

public InTotoStatement.Builder addSubject(Subject value)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
value Subject
Returns
Type Description
InTotoStatement.Builder

addSubject(Subject.Builder builderForValue)

public InTotoStatement.Builder addSubject(Subject.Builder builderForValue)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
builderForValue Subject.Builder
Returns
Type Description
InTotoStatement.Builder

addSubjectBuilder()

public Subject.Builder addSubjectBuilder()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
Subject.Builder

addSubjectBuilder(int index)

public Subject.Builder addSubjectBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
Subject.Builder

build()

public InTotoStatement build()
Returns
Type Description
InTotoStatement

buildPartial()

public InTotoStatement buildPartial()
Returns
Type Description
InTotoStatement

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPredicate()

public InTotoStatement.Builder clearPredicate()
Returns
Type Description
InTotoStatement.Builder

clearPredicateType()

public InTotoStatement.Builder clearPredicateType()

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

string predicate_type = 3;

Returns
Type Description
InTotoStatement.Builder

This builder for chaining.

clearProvenance()

public InTotoStatement.Builder clearProvenance()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
Type Description
InTotoStatement.Builder

clearSlsaProvenance()

public InTotoStatement.Builder clearSlsaProvenance()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
Type Description
InTotoStatement.Builder

clearSlsaProvenanceZeroTwo()

public InTotoStatement.Builder clearSlsaProvenanceZeroTwo()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
Type Description
InTotoStatement.Builder

clearSubject()

public InTotoStatement.Builder clearSubject()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
InTotoStatement.Builder

clearType()

public InTotoStatement.Builder clearType()

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

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

Returns
Type Description
InTotoStatement.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InTotoStatement getDefaultInstanceForType()
Returns
Type Description
InTotoStatement

getDescriptorForType()

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

getPredicateCase()

public InTotoStatement.PredicateCase getPredicateCase()
Returns
Type Description
InTotoStatement.PredicateCase

getPredicateType()

public String getPredicateType()

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

string predicate_type = 3;

Returns
Type Description
String

The predicateType.

getPredicateTypeBytes()

public ByteString getPredicateTypeBytes()

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

string predicate_type = 3;

Returns
Type Description
ByteString

The bytes for predicateType.

getProvenance()

public InTotoProvenance getProvenance()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
Type Description
InTotoProvenance

The provenance.

getProvenanceBuilder()

public InTotoProvenance.Builder getProvenanceBuilder()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
Type Description
InTotoProvenance.Builder

getProvenanceOrBuilder()

public InTotoProvenanceOrBuilder getProvenanceOrBuilder()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
Type Description
InTotoProvenanceOrBuilder

getSlsaProvenance()

public SlsaProvenance getSlsaProvenance()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
Type Description
SlsaProvenance

The slsaProvenance.

getSlsaProvenanceBuilder()

public SlsaProvenance.Builder getSlsaProvenanceBuilder()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
Type Description
SlsaProvenance.Builder

getSlsaProvenanceOrBuilder()

public SlsaProvenanceOrBuilder getSlsaProvenanceOrBuilder()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
Type Description
SlsaProvenanceOrBuilder

getSlsaProvenanceZeroTwo()

public SlsaProvenanceZeroTwo getSlsaProvenanceZeroTwo()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
Type Description
SlsaProvenanceZeroTwo

The slsaProvenanceZeroTwo.

getSlsaProvenanceZeroTwoBuilder()

public SlsaProvenanceZeroTwo.Builder getSlsaProvenanceZeroTwoBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
Type Description
SlsaProvenanceZeroTwo.Builder

getSlsaProvenanceZeroTwoOrBuilder()

public SlsaProvenanceZeroTwoOrBuilder getSlsaProvenanceZeroTwoOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
Type Description
SlsaProvenanceZeroTwoOrBuilder

getSubject(int index)

public Subject getSubject(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
Subject

getSubjectBuilder(int index)

public Subject.Builder getSubjectBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
Subject.Builder

getSubjectBuilderList()

public List<Subject.Builder> getSubjectBuilderList()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
List<Builder>

getSubjectCount()

public int getSubjectCount()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
int

getSubjectList()

public List<Subject> getSubjectList()

repeated .grafeas.v1.Subject subject = 2;

Returns
Type Description
List<Subject>

getSubjectOrBuilder(int index)

public SubjectOrBuilder getSubjectOrBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
SubjectOrBuilder

getSubjectOrBuilderList()

public List<? extends SubjectOrBuilder> getSubjectOrBuilderList()

repeated .grafeas.v1.Subject subject = 2;

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

getType()

public String getType()

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

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

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

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

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

Returns
Type Description
ByteString

The bytes for type.

hasProvenance()

public boolean hasProvenance()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
Type Description
boolean

Whether the provenance field is set.

hasSlsaProvenance()

public boolean hasSlsaProvenance()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
Type Description
boolean

Whether the slsaProvenance field is set.

hasSlsaProvenanceZeroTwo()

public boolean hasSlsaProvenanceZeroTwo()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
Type Description
boolean

Whether the slsaProvenanceZeroTwo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(InTotoStatement other)

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

mergeProvenance(InTotoProvenance value)

public InTotoStatement.Builder mergeProvenance(InTotoProvenance value)

.grafeas.v1.InTotoProvenance provenance = 4;

Parameter
Name Description
value InTotoProvenance
Returns
Type Description
InTotoStatement.Builder

mergeSlsaProvenance(SlsaProvenance value)

public InTotoStatement.Builder mergeSlsaProvenance(SlsaProvenance value)

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Parameter
Name Description
value SlsaProvenance
Returns
Type Description
InTotoStatement.Builder

mergeSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo value)

public InTotoStatement.Builder mergeSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo value)

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Parameter
Name Description
value SlsaProvenanceZeroTwo
Returns
Type Description
InTotoStatement.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSubject(int index)

public InTotoStatement.Builder removeSubject(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
Name Description
index int
Returns
Type Description
InTotoStatement.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPredicateType(String value)

public InTotoStatement.Builder setPredicateType(String value)

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

string predicate_type = 3;

Parameter
Name Description
value String

The predicateType to set.

Returns
Type Description
InTotoStatement.Builder

This builder for chaining.

setPredicateTypeBytes(ByteString value)

public InTotoStatement.Builder setPredicateTypeBytes(ByteString value)

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

string predicate_type = 3;

Parameter
Name Description
value ByteString

The bytes for predicateType to set.

Returns
Type Description
InTotoStatement.Builder

This builder for chaining.

setProvenance(InTotoProvenance value)

public InTotoStatement.Builder setProvenance(InTotoProvenance value)

.grafeas.v1.InTotoProvenance provenance = 4;

Parameter
Name Description
value InTotoProvenance
Returns
Type Description
InTotoStatement.Builder

setProvenance(InTotoProvenance.Builder builderForValue)

public InTotoStatement.Builder setProvenance(InTotoProvenance.Builder builderForValue)

.grafeas.v1.InTotoProvenance provenance = 4;

Parameter
Name Description
builderForValue InTotoProvenance.Builder
Returns
Type Description
InTotoStatement.Builder

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

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

setSlsaProvenance(SlsaProvenance value)

public InTotoStatement.Builder setSlsaProvenance(SlsaProvenance value)

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Parameter
Name Description
value SlsaProvenance
Returns
Type Description
InTotoStatement.Builder

setSlsaProvenance(SlsaProvenance.Builder builderForValue)

public InTotoStatement.Builder setSlsaProvenance(SlsaProvenance.Builder builderForValue)

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Parameter
Name Description
builderForValue SlsaProvenance.Builder
Returns
Type Description
InTotoStatement.Builder

setSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo value)

public InTotoStatement.Builder setSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo value)

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Parameter
Name Description
value SlsaProvenanceZeroTwo
Returns
Type Description
InTotoStatement.Builder

setSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo.Builder builderForValue)

public InTotoStatement.Builder setSlsaProvenanceZeroTwo(SlsaProvenanceZeroTwo.Builder builderForValue)

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

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

setSubject(int index, Subject value)

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

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
value Subject
Returns
Type Description
InTotoStatement.Builder

setSubject(int index, Subject.Builder builderForValue)

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

repeated .grafeas.v1.Subject subject = 2;

Parameters
Name Description
index int
builderForValue Subject.Builder
Returns
Type Description
InTotoStatement.Builder

setType(String value)

public InTotoStatement.Builder setType(String value)

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

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

Parameter
Name Description
value String

The type to set.

Returns
Type Description
InTotoStatement.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public InTotoStatement.Builder setTypeBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
InTotoStatement.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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