public final class Tool extends GeneratedMessageV3 implements ToolOrBuilder
A tool provides a list of actions which are available to the
Playbook to attain its goal. A
Tool consists of a description of the tool's usage and a specification of the
tool which contains the schema and authentication information.
Protobuf type google.cloud.dialogflow.cx.v3beta1.Tool
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ACTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DATA_STORE_SPEC_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int EXTENSION_SPEC_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int FUNCTION_SPEC_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int OPEN_API_SPEC_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SCHEMAS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TOOL_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Tool getDefaultInstance()
Returns |
Type |
Description |
Tool |
|
public static final Descriptors.Descriptor getDescriptor()
public static Tool.Builder newBuilder()
public static Tool.Builder newBuilder(Tool prototype)
Parameter |
Name |
Description |
prototype |
Tool
|
public static Tool parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Tool |
|
public static Tool parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(ByteString data)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(InputStream input)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Tool |
|
public static Tool parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Tool |
|
public static Parser<Tool> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public String getActions(int index)
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458
The list of derived action names for the tool.
repeated string actions = 6 [deprecated = true];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The actions at the given index.
|
public ByteString getActionsBytes(int index)
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458
The list of derived action names for the tool.
repeated string actions = 6 [deprecated = true];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the actions at the given index.
|
public int getActionsCount()
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458
The list of derived action names for the tool.
repeated string actions = 6 [deprecated = true];
Returns |
Type |
Description |
int |
The count of actions.
|
public ProtocolStringList getActionsList()
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458
The list of derived action names for the tool.
repeated string actions = 6 [deprecated = true];
public Tool.DataStoreTool getDataStoreSpec()
Data store search tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.DataStoreTool data_store_spec = 8;
public Tool.DataStoreToolOrBuilder getDataStoreSpecOrBuilder()
Data store search tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.DataStoreTool data_store_spec = 8;
public Tool getDefaultInstanceForType()
Returns |
Type |
Description |
Tool |
|
public String getDescription()
Required. High level description of the Tool and its usage.
string description = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The description.
|
public ByteString getDescriptionBytes()
Required. High level description of the Tool and its usage.
string description = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for description.
|
public String getDisplayName()
Required. The human-readable name of the Tool, unique within an agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The displayName.
|
public ByteString getDisplayNameBytes()
Required. The human-readable name of the Tool, unique within an agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for displayName.
|
getExtensionSpec()
public Tool.ExtensionTool getExtensionSpec()
Vertex extension tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ExtensionTool extension_spec = 11;
getExtensionSpecOrBuilder()
public Tool.ExtensionToolOrBuilder getExtensionSpecOrBuilder()
Vertex extension tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ExtensionTool extension_spec = 11;
public Tool.FunctionTool getFunctionSpec()
Client side executed function specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.FunctionTool function_spec = 13;
public Tool.FunctionToolOrBuilder getFunctionSpecOrBuilder()
Client side executed function specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.FunctionTool function_spec = 13;
The unique identifier of the Tool.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/tools/<Tool ID>
.
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
The unique identifier of the Tool.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/tools/<Tool ID>
.
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
public Tool.OpenApiTool getOpenApiSpec()
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool open_api_spec = 4;
public Tool.OpenApiToolOrBuilder getOpenApiSpecOrBuilder()
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool open_api_spec = 4;
public Parser<Tool> getParserForType()
Overrides
public String getSchemas(int index)
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461
The list of derived type schemas for the tool.
repeated string schemas = 7 [deprecated = true];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The schemas at the given index.
|
public ByteString getSchemasBytes(int index)
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461
The list of derived type schemas for the tool.
repeated string schemas = 7 [deprecated = true];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the schemas at the given index.
|
public int getSchemasCount()
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461
The list of derived type schemas for the tool.
repeated string schemas = 7 [deprecated = true];
Returns |
Type |
Description |
int |
The count of schemas.
|
public ProtocolStringList getSchemasList()
Deprecated. google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See
google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461
The list of derived type schemas for the tool.
repeated string schemas = 7 [deprecated = true];
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public Tool.SpecificationCase getSpecificationCase()
public Tool.ToolType getToolType()
Output only. The tool type.
.google.cloud.dialogflow.cx.v3beta1.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getToolTypeValue()
Output only. The tool type.
.google.cloud.dialogflow.cx.v3beta1.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for toolType.
|
public boolean hasDataStoreSpec()
Data store search tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.DataStoreTool data_store_spec = 8;
Returns |
Type |
Description |
boolean |
Whether the dataStoreSpec field is set.
|
public boolean hasExtensionSpec()
Vertex extension tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ExtensionTool extension_spec = 11;
Returns |
Type |
Description |
boolean |
Whether the extensionSpec field is set.
|
public boolean hasFunctionSpec()
Client side executed function specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.FunctionTool function_spec = 13;
Returns |
Type |
Description |
boolean |
Whether the functionSpec field is set.
|
public boolean hasOpenApiSpec()
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool open_api_spec = 4;
Returns |
Type |
Description |
boolean |
Whether the openApiSpec field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Tool.Builder newBuilderForType()
protected Tool.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Tool.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides