Class WidgetTool (0.1.0)

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.v1.WidgetTool

Implements

WidgetToolOrBuilder

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

WIDGET_TYPE_FIELD_NUMBER

public static final int WIDGET_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetTool getDefaultInstance()
Returns
Type Description
WidgetTool

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static WidgetTool.Builder newBuilder()
Returns
Type Description
WidgetTool.Builder

newBuilder(WidgetTool prototype)

public static WidgetTool.Builder newBuilder(WidgetTool prototype)
Parameter
Name Description
prototype WidgetTool
Returns
Type Description
WidgetTool.Builder

parseDelimitedFrom(InputStream input)

public static WidgetTool parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetTool
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetTool parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetTool parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetTool parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetTool parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetTool parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetTool parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetTool
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetTool parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetTool parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetTool
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetTool parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetTool parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetTool parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetTool
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetTool> parser()
Returns
Type Description
Parser<WidgetTool>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public WidgetTool getDefaultInstanceForType()
Returns
Type Description
WidgetTool

getDescription()

public String getDescription()

Optional. The description of the widget tool.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

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.

getInputCase()

public WidgetTool.InputCase getInputCase()
Returns
Type Description
WidgetTool.InputCase

getName()

public String getName()

Required. The display name of the widget tool.

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

Returns
Type Description
String

The name.

getNameBytes()

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.

getParameters()

public Schema getParameters()

Optional. The input parameters of the widget tool.

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

Returns
Type Description
Schema

The parameters.

getParametersOrBuilder()

public SchemaOrBuilder getParametersOrBuilder()

Optional. The input parameters of the widget tool.

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

Returns
Type Description
SchemaOrBuilder

getParserForType()

public Parser<WidgetTool> getParserForType()
Returns
Type Description
Parser<WidgetTool>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWidgetType()

public WidgetTool.WidgetType getWidgetType()

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

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

Returns
Type Description
WidgetTool.WidgetType

The widgetType.

getWidgetTypeValue()

public int getWidgetTypeValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for widgetType.

hasParameters()

public boolean hasParameters()

Optional. The input parameters of the widget tool.

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

Returns
Type Description
boolean

Whether the parameters field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WidgetTool.Builder newBuilderForType()
Returns
Type Description
WidgetTool.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected WidgetTool.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetTool.Builder
Overrides

toBuilder()

public WidgetTool.Builder toBuilder()
Returns
Type Description
WidgetTool.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException