public final class FunctionResponsePart extends GeneratedMessage implements FunctionResponsePartOrBuilder A datatype containing media that is part of a FunctionResponse message.
A FunctionResponsePart consists of data which has an associated datatype. A
FunctionResponsePart can only contain one of the accepted types in
FunctionResponsePart.data.
A FunctionResponsePart must have a fixed IANA MIME type identifying the
type and subtype of the media if the inline_data field is filled with raw
bytes.
Protobuf type google.cloud.vertexai.v1.FunctionResponsePart
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > FunctionResponsePartImplements
FunctionResponsePartOrBuilderStatic Fields
FILE_DATA_FIELD_NUMBER
public static final int FILE_DATA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
INLINE_DATA_FIELD_NUMBER
public static final int INLINE_DATA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static FunctionResponsePart getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static FunctionResponsePart.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart.Builder |
|
newBuilder(FunctionResponsePart prototype)
public static FunctionResponsePart.Builder newBuilder(FunctionResponsePart prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
FunctionResponsePart |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart.Builder |
|
parseDelimitedFrom(InputStream input)
public static FunctionResponsePart parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static FunctionResponsePart parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static FunctionResponsePart parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FunctionResponsePart parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static FunctionResponsePart parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FunctionResponsePart parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static FunctionResponsePart parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FunctionResponsePart parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static FunctionResponsePart parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static FunctionResponsePart parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static FunctionResponsePart parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FunctionResponsePart parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<FunctionResponsePart> parser()| Returns | |
|---|---|
| Type | Description |
Parser<FunctionResponsePart> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDataCase()
public FunctionResponsePart.DataCase getDataCase()| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart.DataCase |
|
getDefaultInstanceForType()
public FunctionResponsePart getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart |
|
getFileData()
public FunctionResponseFileData getFileData()URI based data.
.google.cloud.vertexai.v1.FunctionResponseFileData file_data = 2;
| Returns | |
|---|---|
| Type | Description |
FunctionResponseFileData |
The fileData. |
getFileDataOrBuilder()
public FunctionResponseFileDataOrBuilder getFileDataOrBuilder()URI based data.
.google.cloud.vertexai.v1.FunctionResponseFileData file_data = 2;
| Returns | |
|---|---|
| Type | Description |
FunctionResponseFileDataOrBuilder |
|
getInlineData()
public FunctionResponseBlob getInlineData()Inline media bytes.
.google.cloud.vertexai.v1.FunctionResponseBlob inline_data = 1;
| Returns | |
|---|---|
| Type | Description |
FunctionResponseBlob |
The inlineData. |
getInlineDataOrBuilder()
public FunctionResponseBlobOrBuilder getInlineDataOrBuilder()Inline media bytes.
.google.cloud.vertexai.v1.FunctionResponseBlob inline_data = 1;
| Returns | |
|---|---|
| Type | Description |
FunctionResponseBlobOrBuilder |
|
getParserForType()
public Parser<FunctionResponsePart> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<FunctionResponsePart> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasFileData()
public boolean hasFileData()URI based data.
.google.cloud.vertexai.v1.FunctionResponseFileData file_data = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fileData field is set. |
hasInlineData()
public boolean hasInlineData()Inline media bytes.
.google.cloud.vertexai.v1.FunctionResponseBlob inline_data = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inlineData field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public FunctionResponsePart.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected FunctionResponsePart.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart.Builder |
|
toBuilder()
public FunctionResponsePart.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
FunctionResponsePart.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|