public final class WidgetTool extends GeneratedMessage implements WidgetToolOrBuilder
Represents a widget tool that the agent can invoke. When the tool is chosen
by the agent, agent will return the widget to the client. The client is
responsible for processing the widget and generating the next user query to
continue the interaction with the agent.
Protobuf type google.cloud.ces.v1beta.WidgetTool
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int DATA_MAPPING_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PARAMETERS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int UI_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int WIDGET_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static WidgetTool getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static WidgetTool.Builder newBuilder()
public static WidgetTool.Builder newBuilder(WidgetTool prototype)
public static WidgetTool parseDelimitedFrom(InputStream input)
public static WidgetTool parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetTool parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static WidgetTool parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WidgetTool parseFrom(ByteString data)
public static WidgetTool parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WidgetTool parseFrom(CodedInputStream input)
public static WidgetTool parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetTool parseFrom(InputStream input)
public static WidgetTool parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetTool parseFrom(ByteBuffer data)
public static WidgetTool parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<WidgetTool> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public 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];
public 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];
public WidgetTool getDefaultInstanceForType()
public String getDescription()
Optional. The description of the widget tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The description.
|
public ByteString getDescriptionBytes()
Optional. The description of the widget tool.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for description.
|
public WidgetTool.InputCase getInputCase()
Required. The display name of the widget tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Required. The display name of the widget tool.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
public 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 |
Schema |
The parameters.
|
public SchemaOrBuilder getParametersOrBuilder()
Optional. The input parameters of the widget tool.
.google.cloud.ces.v1beta.Schema parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
public Parser<WidgetTool> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public Struct getUiConfig()
Optional. Configuration for rendering the widget.
.google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Struct |
The uiConfig.
|
public StructOrBuilder getUiConfigOrBuilder()
Optional. Configuration for rendering the widget.
.google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public 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];
public 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 |
int |
The enum numeric value on the wire for widgetType.
|
public 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 |
boolean |
Whether the dataMapping field is set.
|
public 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 |
boolean |
Whether the parameters field is set.
|
public boolean hasUiConfig()
Optional. Configuration for rendering the widget.
.google.protobuf.Struct ui_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the uiConfig field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public WidgetTool.Builder newBuilderForType()
protected WidgetTool.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public WidgetTool.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides