Reference documentation and code samples for the Google Cloud Ces V1 Client class DataMapping.
Configuration for mapping data from a source tool to the widget's input parameters.
Generated from protobuf message google.cloud.ces.v1.WidgetTool.DataMapping
Namespace
Google \ Cloud \ Ces \ V1 \ WidgetToolMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ source_tool_name
string
Optional. The resource name of the tool that provides the data for the widget (e.g., a search tool or a custom function). Format: projects/{project}/locations/{location}/agents/{agent}/tools/{tool}
↳ field_mappings
array| Google\Protobuf\Internal\MapField
Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.
↳ python_function
Google\Cloud\Ces\V1\PythonFunction
Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.
↳ mode
int
Optional. The mode of the data mapping.
↳ python_script
string
Deprecated: Use python_function
instead.
getSourceToolName
Optional. The resource name of the tool that provides the data for the
widget (e.g., a search tool or a custom function). Format: projects/{project}/locations/{location}/agents/{agent}/tools/{tool}
string
setSourceToolName
Optional. The resource name of the tool that provides the data for the
widget (e.g., a search tool or a custom function). Format: projects/{project}/locations/{location}/agents/{agent}/tools/{tool}
var
string
$this
getFieldMappings
Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.
setFieldMappings
Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.
$this
getPythonFunction
Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.
hasPythonFunction
clearPythonFunction
setPythonFunction
Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.
$this
getMode
Optional. The mode of the data mapping.
setMode
Optional. The mode of the data mapping.
$this
getPythonScript
Deprecated: Use python_function
instead.
string
setPythonScript
Deprecated: Use python_function
instead.
var
string
$this

