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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Digest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Digest buildPartial()
Returns
clear()
public Digest.Builder clear()
Returns
Overrides
clearDigest()
public Digest.Builder clearDigest()
Returns
clearField(Descriptors.FieldDescriptor field)
public Digest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Digest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSha256()
public Digest.Builder clearSha256()
A message digest produced with the SHA-256 algorithm.
bytes sha256 = 1;
Returns
clearSha384()
public Digest.Builder clearSha384()
A message digest produced with the SHA-384 algorithm.
bytes sha384 = 2;
Returns
clearSha512()
public Digest.Builder clearSha512()
A message digest produced with the SHA-512 algorithm.
bytes sha512 = 3;
Returns
clone()
public Digest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Digest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDigestCase()
public Digest.DigestCase getDigestCase()
Returns
getSha256()
public ByteString getSha256()
A message digest produced with the SHA-256 algorithm.
bytes sha256 = 1;
Returns
getSha384()
public ByteString getSha384()
A message digest produced with the SHA-384 algorithm.
bytes sha384 = 2;
Returns
getSha512()
public ByteString getSha512()
A message digest produced with the SHA-512 algorithm.
bytes sha512 = 3;
Returns
hasSha256()
public boolean hasSha256()
A message digest produced with the SHA-256 algorithm.
bytes sha256 = 1;
Returns
Type | Description |
boolean | Whether the sha256 field is set.
|
hasSha384()
public boolean hasSha384()
A message digest produced with the SHA-384 algorithm.
bytes sha384 = 2;
Returns
Type | Description |
boolean | Whether the sha384 field is set.
|
hasSha512()
public boolean hasSha512()
A message digest produced with the SHA-512 algorithm.
bytes sha512 = 3;
Returns
Type | Description |
boolean | Whether the sha512 field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Digest other)
public Digest.Builder mergeFrom(Digest other)
Parameter
Returns
public Digest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Digest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Digest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Digest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Digest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSha256(ByteString value)
public Digest.Builder setSha256(ByteString value)
A message digest produced with the SHA-256 algorithm.
bytes sha256 = 1;
Parameter
Returns
setSha384(ByteString value)
public Digest.Builder setSha384(ByteString value)
A message digest produced with the SHA-384 algorithm.
bytes sha384 = 2;
Parameter
Returns
setSha512(ByteString value)
public Digest.Builder setSha512(ByteString value)
A message digest produced with the SHA-512 algorithm.
bytes sha512 = 3;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Digest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides