Class Blob (3.37.0)

public final class Blob extends GeneratedMessageV3 implements BlobOrBuilder

Raw media bytes.

Text should not be sent as raw bytes, use the 'text' field.

Protobuf type google.cloud.aiplatform.v1.Blob

Implements

BlobOrBuilder

Static Fields

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
TypeDescription
int

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Blob getDefaultInstance()
Returns
TypeDescription
Blob

getDescriptor()

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

newBuilder()

public static Blob.Builder newBuilder()
Returns
TypeDescription
Blob.Builder

newBuilder(Blob prototype)

public static Blob.Builder newBuilder(Blob prototype)
Parameter
NameDescription
prototypeBlob
Returns
TypeDescription
Blob.Builder

parseDelimitedFrom(InputStream input)

public static Blob parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Blob
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Blob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Blob
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Blob parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Blob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Blob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Blob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Blob parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Blob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Blob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Blob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Blob parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Blob
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Blob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Blob
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Blob parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Blob
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Blob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Blob
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Blob parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Blob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Blob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Blob
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Blob> parser()
Returns
TypeDescription
Parser<Blob>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getData()

public ByteString getData()

Required. Raw bytes for media formats.

bytes data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The data.

getDefaultInstanceForType()

public Blob getDefaultInstanceForType()
Returns
TypeDescription
Blob

getMimeType()

public String getMimeType()

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

Required. The IANA standard MIME type of the source data.

string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for mimeType.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 Blob.Builder newBuilderForType()
Returns
TypeDescription
Blob.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Blob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Blob.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Blob.Builder toBuilder()
Returns
TypeDescription
Blob.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException