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(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.
|
ByteString |
toByteString()
Returns the backing data as a ByteString.
|
@Nonnull public static Blob fromByteString(@Nonnull 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 ByteString toByteString()
@Nonnull public byte[] toBytes()
public boolean equals(Object obj)
Copyright © 2019 Google LLC. All rights reserved.