Class InTotoStatement (2.18.0)

public final class InTotoStatement extends GeneratedMessageV3 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 Fields

PREDICATE_TYPE_FIELD_NUMBER

public static final int PREDICATE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

PROVENANCE_FIELD_NUMBER

public static final int PROVENANCE_FIELD_NUMBER
Field Value
TypeDescription
int

SLSA_PROVENANCE_FIELD_NUMBER

public static final int SLSA_PROVENANCE_FIELD_NUMBER
Field Value
TypeDescription
int

SLSA_PROVENANCE_ZERO_TWO_FIELD_NUMBER

public static final int SLSA_PROVENANCE_ZERO_TWO_FIELD_NUMBER
Field Value
TypeDescription
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InTotoStatement getDefaultInstance()
Returns
TypeDescription
InTotoStatement

getDescriptor()

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

newBuilder()

public static InTotoStatement.Builder newBuilder()
Returns
TypeDescription
InTotoStatement.Builder

newBuilder(InTotoStatement prototype)

public static InTotoStatement.Builder newBuilder(InTotoStatement prototype)
Parameter
NameDescription
prototypeInTotoStatement
Returns
TypeDescription
InTotoStatement.Builder

parseDelimitedFrom(InputStream input)

public static InTotoStatement parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InTotoStatement parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InTotoStatement parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InTotoStatement parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InTotoStatement parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InTotoStatement parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InTotoStatement parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InTotoStatement parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InTotoStatement parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InTotoStatement parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InTotoStatement parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InTotoStatement parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InTotoStatement
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InTotoStatement> parser()
Returns
TypeDescription
Parser<InTotoStatement>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public InTotoStatement getDefaultInstanceForType()
Returns
TypeDescription
InTotoStatement

getParserForType()

public Parser<InTotoStatement> getParserForType()
Returns
TypeDescription
Parser<InTotoStatement>
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.

getProvenanceOrBuilder()

public InTotoProvenanceOrBuilder getProvenanceOrBuilder()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
TypeDescription
InTotoProvenanceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSlsaProvenance()

public SlsaProvenance getSlsaProvenance()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
TypeDescription
SlsaProvenance

The slsaProvenance.

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.

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

getSubjectCount()

public int getSubjectCount()

repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription
int

getSubjectList()

public List<Subject> getSubjectList()

repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription
List<Subject>

getSubjectOrBuilder(int index)

public SubjectOrBuilder getSubjectOrBuilder(int index)

repeated .grafeas.v1.Subject subject = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
SubjectOrBuilder

getSubjectOrBuilderList()

public List<? extends SubjectOrBuilder> getSubjectOrBuilderList()

repeated .grafeas.v1.Subject subject = 2;

Returns
TypeDescription
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
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasProvenance()

public boolean hasProvenance()

.grafeas.v1.InTotoProvenance provenance = 4;

Returns
TypeDescription
boolean

Whether the provenance field is set.

hasSlsaProvenance()

public boolean hasSlsaProvenance()

.grafeas.v1.SlsaProvenance slsa_provenance = 5;

Returns
TypeDescription
boolean

Whether the slsaProvenance field is set.

hasSlsaProvenanceZeroTwo()

public boolean hasSlsaProvenanceZeroTwo()

.grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6;

Returns
TypeDescription
boolean

Whether the slsaProvenanceZeroTwo field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InTotoStatement.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InTotoStatement.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException