public final class Blob extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if this Blob is equal to the provided object.
|
static Blob |
fromBytes(byte[] bytes)
Creates a new Blob instance from the provided bytes.
|
static Blob |
fromByteString(com.google.protobuf.ByteString byteString)
Creates a new Blob instance from the provided ByteString.
|
int |
hashCode() |
byte[] |
toBytes()
Returns a copy of the underlying bytes as a byte[] array.
|
com.google.protobuf.ByteString |
toByteString()
Returns the backing data as a ByteString.
|
@Nonnull public static Blob fromByteString(@Nonnull com.google.protobuf.ByteString byteString)
byteString
- The byteString to use for this Blob instance.@Nonnull public static Blob fromBytes(@Nonnull byte[] bytes)
bytes
- The bytes to use for this Blob instance.@Nonnull public com.google.protobuf.ByteString toByteString()
@Nonnull public byte[] toBytes()
public boolean equals(Object obj)
Copyright © 2023 Google LLC. All rights reserved.