Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class FunctionResponsePart.
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.
Generated from protobuf message google.cloud.aiplatform.v1.FunctionResponsePart
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ inline_data |
FunctionResponseBlob
Inline media bytes. |
↳ file_data |
FunctionResponseFileData
URI based data. |
getInlineData
Inline media bytes.
| Returns | |
|---|---|
| Type | Description |
FunctionResponseBlob|null |
|
hasInlineData
setInlineData
Inline media bytes.
| Parameter | |
|---|---|
| Name | Description |
var |
FunctionResponseBlob
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFileData
URI based data.
| Returns | |
|---|---|
| Type | Description |
FunctionResponseFileData|null |
|
hasFileData
setFileData
URI based data.
| Parameter | |
|---|---|
| Name | Description |
var |
FunctionResponseFileData
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getData
| Returns | |
|---|---|
| Type | Description |
string |
|