Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::WidgetTool::DataMapping.
Configuration for mapping data from a source tool to the widget's input parameters.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#field_mappings
def field_mappings() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.
#field_mappings=
def field_mappings=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.
#mode
def mode() -> ::Google::Cloud::Ces::V1beta::WidgetTool::DataMapping::Mode
Returns
- (::Google::Cloud::Ces::V1beta::WidgetTool::DataMapping::Mode) — Optional. The mode of the data mapping.
#mode=
def mode=(value) -> ::Google::Cloud::Ces::V1beta::WidgetTool::DataMapping::Mode
Parameter
- value (::Google::Cloud::Ces::V1beta::WidgetTool::DataMapping::Mode) — Optional. The mode of the data mapping.
Returns
- (::Google::Cloud::Ces::V1beta::WidgetTool::DataMapping::Mode) — Optional. The mode of the data mapping.
#python_function
def python_function() -> ::Google::Cloud::Ces::V1beta::PythonFunction
Returns
- (::Google::Cloud::Ces::V1beta::PythonFunction) — Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.
#python_function=
def python_function=(value) -> ::Google::Cloud::Ces::V1beta::PythonFunction
Parameter
- value (::Google::Cloud::Ces::V1beta::PythonFunction) — Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.
Returns
- (::Google::Cloud::Ces::V1beta::PythonFunction) — Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.
#python_script
def python_script() -> ::String
Returns
-
(::String) — Deprecated: Use
python_functioninstead.
#python_script=
def python_script=(value) -> ::String
Parameter
-
value (::String) — Deprecated: Use
python_functioninstead.
Returns
-
(::String) — Deprecated: Use
python_functioninstead.
#source_tool_name
def source_tool_name() -> ::String
Returns
-
(::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}
#source_tool_name=
def source_tool_name=(value) -> ::String
Parameter
-
value (::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}
Returns
-
(::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}