Class SlsaProvenance.Material (2.16.0)

public static final class SlsaProvenance.Material extends GeneratedMessageV3 implements SlsaProvenance.MaterialOrBuilder

Protobuf type grafeas.v1.SlsaProvenance.Material

Static Fields

DIGEST_FIELD_NUMBER

public static final int DIGEST_FIELD_NUMBER
Field Value
TypeDescription
int

URI_FIELD_NUMBER

public static final int URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SlsaProvenance.Material getDefaultInstance()
Returns
TypeDescription
SlsaProvenance.Material

getDescriptor()

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

newBuilder()

public static SlsaProvenance.Material.Builder newBuilder()
Returns
TypeDescription
SlsaProvenance.Material.Builder

newBuilder(SlsaProvenance.Material prototype)

public static SlsaProvenance.Material.Builder newBuilder(SlsaProvenance.Material prototype)
Parameter
NameDescription
prototypeSlsaProvenance.Material
Returns
TypeDescription
SlsaProvenance.Material.Builder

parseDelimitedFrom(InputStream input)

public static SlsaProvenance.Material parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SlsaProvenance.Material
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SlsaProvenance.Material parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SlsaProvenance.Material
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SlsaProvenance.Material parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SlsaProvenance.Material
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SlsaProvenance.Material parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SlsaProvenance.Material
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SlsaProvenance.Material parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SlsaProvenance.Material
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SlsaProvenance.Material> parser()
Returns
TypeDescription
Parser<Material>

Methods

containsDigest(String key)

public boolean containsDigest(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getDefaultInstanceForType()

public SlsaProvenance.Material getDefaultInstanceForType()
Returns
TypeDescription
SlsaProvenance.Material

getDigest()

public Map<String,String> getDigest()

Use #getDigestMap() instead.

Returns
TypeDescription
Map<String,String>

getDigestCount()

public int getDigestCount()

map<string, string> digest = 2;

Returns
TypeDescription
int

getDigestMap()

public Map<String,String> getDigestMap()

map<string, string> digest = 2;

Returns
TypeDescription
Map<String,String>

getDigestOrDefault(String key, String defaultValue)

public String getDigestOrDefault(String key, String defaultValue)

map<string, string> digest = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDigestOrThrow(String key)

public String getDigestOrThrow(String key)

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getParserForType()

public Parser<SlsaProvenance.Material> getParserForType()
Returns
TypeDescription
Parser<Material>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUri()

public String getUri()

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SlsaProvenance.Material.Builder newBuilderForType()
Returns
TypeDescription
SlsaProvenance.Material.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SlsaProvenance.Material.Builder toBuilder()
Returns
TypeDescription
SlsaProvenance.Material.Builder

writeTo(CodedOutputStream output)

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