Class SlsaProvenanceZeroTwo (2.9.0)

public final class SlsaProvenanceZeroTwo extends GeneratedMessageV3 implements SlsaProvenanceZeroTwoOrBuilder

See full explanation of fields at slsa.dev/provenance/v0.2.

Protobuf type grafeas.v1.SlsaProvenanceZeroTwo

Static Fields

BUILDER_FIELD_NUMBER

public static final int BUILDER_FIELD_NUMBER
Field Value
TypeDescription
int

BUILD_CONFIG_FIELD_NUMBER

public static final int BUILD_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

BUILD_TYPE_FIELD_NUMBER

public static final int BUILD_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

INVOCATION_FIELD_NUMBER

public static final int INVOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

MATERIALS_FIELD_NUMBER

public static final int MATERIALS_FIELD_NUMBER
Field Value
TypeDescription
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SlsaProvenanceZeroTwo getDefaultInstance()
Returns
TypeDescription
SlsaProvenanceZeroTwo

getDescriptor()

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

newBuilder()

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

newBuilder(SlsaProvenanceZeroTwo prototype)

public static SlsaProvenanceZeroTwo.Builder newBuilder(SlsaProvenanceZeroTwo prototype)
Parameter
NameDescription
prototypeSlsaProvenanceZeroTwo
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBuildConfig()

public Struct getBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
Struct

The buildConfig.

getBuildConfigOrBuilder()

public StructOrBuilder getBuildConfigOrBuilder()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
StructOrBuilder

getBuildType()

public String getBuildType()

string build_type = 2;

Returns
TypeDescription
String

The buildType.

getBuildTypeBytes()

public ByteString getBuildTypeBytes()

string build_type = 2;

Returns
TypeDescription
ByteString

The bytes for buildType.

getBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilder getBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaBuilder

The builder.

getBuilderOrBuilder()

public SlsaProvenanceZeroTwo.SlsaBuilderOrBuilder getBuilderOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaBuilderOrBuilder

getDefaultInstanceForType()

public SlsaProvenanceZeroTwo getDefaultInstanceForType()
Returns
TypeDescription
SlsaProvenanceZeroTwo

getInvocation()

public SlsaProvenanceZeroTwo.SlsaInvocation getInvocation()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaInvocation

The invocation.

getInvocationOrBuilder()

public SlsaProvenanceZeroTwo.SlsaInvocationOrBuilder getInvocationOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaInvocationOrBuilder

getMaterials(int index)

public SlsaProvenanceZeroTwo.SlsaMaterial getMaterials(int index)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterial

getMaterialsCount()

public int getMaterialsCount()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
TypeDescription
int

getMaterialsList()

public List<SlsaProvenanceZeroTwo.SlsaMaterial> getMaterialsList()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
TypeDescription
List<SlsaMaterial>

getMaterialsOrBuilder(int index)

public SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder getMaterialsOrBuilder(int index)

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder

getMaterialsOrBuilderList()

public List<? extends SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder> getMaterialsOrBuilderList()

repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6;

Returns
TypeDescription
List<? extends io.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterialOrBuilder>

getMetadata()

public SlsaProvenanceZeroTwo.SlsaMetadata getMetadata()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMetadata

The metadata.

getMetadataOrBuilder()

public SlsaProvenanceZeroTwo.SlsaMetadataOrBuilder getMetadataOrBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
TypeDescription
SlsaProvenanceZeroTwo.SlsaMetadataOrBuilder

getParserForType()

public Parser<SlsaProvenanceZeroTwo> getParserForType()
Returns
TypeDescription
Parser<SlsaProvenanceZeroTwo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasBuildConfig()

public boolean hasBuildConfig()

.google.protobuf.Struct build_config = 4;

Returns
TypeDescription
boolean

Whether the buildConfig field is set.

hasBuilder()

public boolean hasBuilder()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1;

Returns
TypeDescription
boolean

Whether the builder field is set.

hasInvocation()

public boolean hasInvocation()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3;

Returns
TypeDescription
boolean

Whether the invocation field is set.

hasMetadata()

public boolean hasMetadata()

.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5;

Returns
TypeDescription
boolean

Whether the metadata 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 SlsaProvenanceZeroTwo.Builder newBuilderForType()
Returns
TypeDescription
SlsaProvenanceZeroTwo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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