Class Digest (2.42.0)

public final class Digest extends GeneratedMessageV3 implements DigestOrBuilder

Digest information.

Protobuf type grafeas.v1.Digest

Implements

DigestOrBuilder

Static Fields

ALGO_FIELD_NUMBER

public static final int ALGO_FIELD_NUMBER
Field Value
TypeDescription
int

DIGEST_BYTES_FIELD_NUMBER

public static final int DIGEST_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Digest getDefaultInstance()
Returns
TypeDescription
Digest

getDescriptor()

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

newBuilder()

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

newBuilder(Digest prototype)

public static Digest.Builder newBuilder(Digest prototype)
Parameter
NameDescription
prototypeDigest
Returns
TypeDescription
Digest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAlgo()

public String getAlgo()

SHA1, SHA512 etc.

string algo = 1;

Returns
TypeDescription
String

The algo.

getAlgoBytes()

public ByteString getAlgoBytes()

SHA1, SHA512 etc.

string algo = 1;

Returns
TypeDescription
ByteString

The bytes for algo.

getDefaultInstanceForType()

public Digest getDefaultInstanceForType()
Returns
TypeDescription
Digest

getDigestBytes()

public ByteString getDigestBytes()

Value of the digest.

bytes digest_bytes = 2;

Returns
TypeDescription
ByteString

The digestBytes.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 Digest.Builder newBuilderForType()
Returns
TypeDescription
Digest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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