Class Digest (2.15.0)

public final class Digest extends GeneratedMessageV3 implements DigestOrBuilder

A Digest holds a cryptographic message digest.

Protobuf type google.cloud.kms.v1.Digest

Implements

DigestOrBuilder

Static Fields

SHA256_FIELD_NUMBER

public static final int SHA256_FIELD_NUMBER
Field Value
TypeDescription
int

SHA384_FIELD_NUMBER

public static final int SHA384_FIELD_NUMBER
Field Value
TypeDescription
int

SHA512_FIELD_NUMBER

public static final int SHA512_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

getDefaultInstanceForType()

public Digest getDefaultInstanceForType()
Returns
TypeDescription
Digest

getDigestCase()

public Digest.DigestCase getDigestCase()
Returns
TypeDescription
Digest.DigestCase

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSha256()

public ByteString getSha256()

A message digest produced with the SHA-256 algorithm.

bytes sha256 = 1;

Returns
TypeDescription
ByteString

The sha256.

getSha384()

public ByteString getSha384()

A message digest produced with the SHA-384 algorithm.

bytes sha384 = 2;

Returns
TypeDescription
ByteString

The sha384.

getSha512()

public ByteString getSha512()

A message digest produced with the SHA-512 algorithm.

bytes sha512 = 3;

Returns
TypeDescription
ByteString

The sha512.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSha256()

public boolean hasSha256()

A message digest produced with the SHA-256 algorithm.

bytes sha256 = 1;

Returns
TypeDescription
boolean

Whether the sha256 field is set.

hasSha384()

public boolean hasSha384()

A message digest produced with the SHA-384 algorithm.

bytes sha384 = 2;

Returns
TypeDescription
boolean

Whether the sha384 field is set.

hasSha512()

public boolean hasSha512()

A message digest produced with the SHA-512 algorithm.

bytes sha512 = 3;

Returns
TypeDescription
boolean

Whether the sha512 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 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