Class Digest.Builder (2.24.0)

public static final class Digest.Builder extends GeneratedMessageV3.Builder<Digest.Builder> implements DigestOrBuilder

A Digest holds a cryptographic message digest.

Protobuf type google.cloud.kms.v1.Digest

Implements

DigestOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Digest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Digest.Builder
Overrides

build()

public Digest build()
Returns
TypeDescription
Digest

buildPartial()

public Digest buildPartial()
Returns
TypeDescription
Digest

clear()

public Digest.Builder clear()
Returns
TypeDescription
Digest.Builder
Overrides

clearDigest()

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

clearField(Descriptors.FieldDescriptor field)

public Digest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Digest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Digest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Digest.Builder
Overrides

clearSha256()

public Digest.Builder clearSha256()

A message digest produced with the SHA-256 algorithm.

bytes sha256 = 1;

Returns
TypeDescription
Digest.Builder

This builder for chaining.

clearSha384()

public Digest.Builder clearSha384()

A message digest produced with the SHA-384 algorithm.

bytes sha384 = 2;

Returns
TypeDescription
Digest.Builder

This builder for chaining.

clearSha512()

public Digest.Builder clearSha512()

A message digest produced with the SHA-512 algorithm.

bytes sha512 = 3;

Returns
TypeDescription
Digest.Builder

This builder for chaining.

clone()

public Digest.Builder clone()
Returns
TypeDescription
Digest.Builder
Overrides

getDefaultInstanceForType()

public Digest getDefaultInstanceForType()
Returns
TypeDescription
Digest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDigestCase()

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

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Digest other)

public Digest.Builder mergeFrom(Digest other)
Parameter
NameDescription
otherDigest
Returns
TypeDescription
Digest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Digest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Digest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Digest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Digest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Digest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Digest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Digest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Digest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Digest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Digest.Builder
Overrides

setSha256(ByteString value)

public Digest.Builder setSha256(ByteString value)

A message digest produced with the SHA-256 algorithm.

bytes sha256 = 1;

Parameter
NameDescription
valueByteString

The sha256 to set.

Returns
TypeDescription
Digest.Builder

This builder for chaining.

setSha384(ByteString value)

public Digest.Builder setSha384(ByteString value)

A message digest produced with the SHA-384 algorithm.

bytes sha384 = 2;

Parameter
NameDescription
valueByteString

The sha384 to set.

Returns
TypeDescription
Digest.Builder

This builder for chaining.

setSha512(ByteString value)

public Digest.Builder setSha512(ByteString value)

A message digest produced with the SHA-512 algorithm.

bytes sha512 = 3;

Parameter
NameDescription
valueByteString

The sha512 to set.

Returns
TypeDescription
Digest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Digest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Digest.Builder
Overrides