# Interface WidgetToolOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface WidgetToolOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDataMapping()

    public abstract WidgetTool.DataMapping getDataMapping()

Optional. The mapping that defines how data from a source tool is mapped to
the widget's input parameters.

`
.google.cloud.ces.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.WidgetTool.DataMapping` | The dataMapping. |

### getDataMappingOrBuilder()

    public abstract WidgetTool.DataMappingOrBuilder getDataMappingOrBuilder()

Optional. The mapping that defines how data from a source tool is mapped to
the widget's input parameters.

`
.google.cloud.ces.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.WidgetTool.DataMappingOrBuilder` |   |

### getDescription()

    public abstract String getDescription()

Optional. The description of the widget tool.

`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Optional. The description of the widget tool.

`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getInputCase()

    public abstract WidgetTool.InputCase getInputCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.WidgetTool.InputCase` |   |

### getName()

    public abstract String getName()

Required. The display name of the widget tool.

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. The display name of the widget tool.

`string name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getParameters()

    public abstract Schema getParameters()

Optional. The input parameters of the widget tool.

`.google.cloud.ces.v1beta.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.Schema` | The parameters. |

### getParametersOrBuilder()

    public abstract SchemaOrBuilder getParametersOrBuilder()

Optional. The input parameters of the widget tool.

`.google.cloud.ces.v1beta.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.SchemaOrBuilder` |   |

### getTextResponseConfig()

    public abstract WidgetTool.TextResponseConfig getTextResponseConfig()

Optional. Configuration for always-included text responses.

`
.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig` | The textResponseConfig. |

### getTextResponseConfigOrBuilder()

    public abstract WidgetTool.TextResponseConfigOrBuilder getTextResponseConfigOrBuilder()

Optional. Configuration for always-included text responses.

`
.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.WidgetTool.TextResponseConfigOrBuilder` |   |

### getUiConfig()

    public abstract Struct getUiConfig()

Optional. Configuration for rendering the widget.

`.google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Struct.html` | The uiConfig. |

### getUiConfigOrBuilder()

    public abstract StructOrBuilder getUiConfigOrBuilder()

Optional. Configuration for rendering the widget.

`.google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder.html` |   |

### getWidgetType()

    public abstract WidgetTool.WidgetType getWidgetType()

Optional. The type of the widget tool. If not specified, the default type
will be CUSTOMIZED.

`
.google.cloud.ces.v1beta.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.WidgetTool.WidgetType` | The widgetType. |

### getWidgetTypeValue()

    public abstract int getWidgetTypeValue()

Optional. The type of the widget tool. If not specified, the default type
will be CUSTOMIZED.

`
.google.cloud.ces.v1beta.WidgetTool.WidgetType widget_type = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for widgetType. |

### hasDataMapping()

    public abstract boolean hasDataMapping()

Optional. The mapping that defines how data from a source tool is mapped to
the widget's input parameters.

`
.google.cloud.ces.v1beta.WidgetTool.DataMapping data_mapping = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dataMapping field is set. |

### hasParameters()

    public abstract boolean hasParameters()

Optional. The input parameters of the widget tool.

`.google.cloud.ces.v1beta.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the parameters field is set. |

### hasTextResponseConfig()

    public abstract boolean hasTextResponseConfig()

Optional. Configuration for always-included text responses.

`
.google.cloud.ces.v1beta.WidgetTool.TextResponseConfig text_response_config = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the textResponseConfig field is set. |

### hasUiConfig()

    public abstract boolean hasUiConfig()

Optional. Configuration for rendering the widget.

`.google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the uiConfig field is set. |