Interface WidgetTool.DataMappingOrBuilder (0.7.0)

public static interface WidgetTool.DataMappingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsFieldMappings(String key)

public abstract boolean containsFieldMappings(String key)

Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.

map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getFieldMappings() (deprecated)

public abstract Map<String,String> getFieldMappings()
Returns
Type Description
Map<String,String>

getFieldMappingsCount()

public abstract int getFieldMappingsCount()

Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.

map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFieldMappingsMap()

public abstract Map<String,String> getFieldMappingsMap()

Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.

map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getFieldMappingsOrDefault(String key, String defaultValue)

public abstract String getFieldMappingsOrDefault(String key, String defaultValue)

Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.

map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getFieldMappingsOrThrow(String key)

public abstract String getFieldMappingsOrThrow(String key)

Optional. A map of widget input parameter fields to the corresponding output fields of the source tool.

map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMode()

public abstract WidgetTool.DataMapping.Mode getMode()

Optional. The mode of the data mapping.

.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetTool.DataMapping.Mode

The mode.

getModeValue()

public abstract int getModeValue()

Optional. The mode of the data mapping.

.google.cloud.ces.v1beta.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getPythonFunction()

public abstract PythonFunction getPythonFunction()

Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.

.google.cloud.ces.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PythonFunction

The pythonFunction.

getPythonFunctionOrBuilder()

public abstract PythonFunctionOrBuilder getPythonFunctionOrBuilder()

Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.

.google.cloud.ces.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PythonFunctionOrBuilder

getPythonScript() (deprecated)

public abstract String getPythonScript()

Deprecated. google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See google/cloud/ces/v1beta/widget_tool.proto;l=66

Deprecated: Use python_function instead.

string python_script = 3 [deprecated = true];

Returns
Type Description
String

The pythonScript.

getPythonScriptBytes() (deprecated)

public abstract ByteString getPythonScriptBytes()

Deprecated. google.cloud.ces.v1beta.WidgetTool.DataMapping.python_script is deprecated. See google/cloud/ces/v1beta/widget_tool.proto;l=66

Deprecated: Use python_function instead.

string python_script = 3 [deprecated = true];

Returns
Type Description
ByteString

The bytes for pythonScript.

getSourceToolName()

public abstract String 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 source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sourceToolName.

getSourceToolNameBytes()

public abstract ByteString getSourceToolNameBytes()

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 source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sourceToolName.

hasPythonFunction()

public abstract boolean hasPythonFunction()

Optional. Configuration for a Python function used to transform the source tool's output into the widget's input format.

.google.cloud.ces.v1beta.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pythonFunction field is set.