public final class Tool extends GeneratedMessage 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.v3.Tool
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_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 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 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 Tool.DataStoreTool getDataStoreSpec()
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool data_store_spec = 8;
public Tool.DataStoreToolOrBuilder getDataStoreSpecOrBuilder()
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.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.
|
public Tool.FunctionTool getFunctionSpec()
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13;
public Tool.FunctionToolOrBuilder getFunctionSpecOrBuilder()
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13;
The unique identifier of the Tool.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>.
string name = 1;
| Returns |
| Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
The unique identifier of the Tool.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>.
string name = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
public Tool.OpenApiTool getOpenApiSpec()
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4;
public Tool.OpenApiToolOrBuilder getOpenApiSpecOrBuilder()
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4;
public Parser<Tool> getParserForType()
Overrides
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.v3.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getToolTypeValue()
Output only. The tool type.
.google.cloud.dialogflow.cx.v3.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.v3.Tool.DataStoreTool data_store_spec = 8;
| Returns |
| Type |
Description |
boolean |
Whether the dataStoreSpec field is set.
|
public boolean hasFunctionSpec()
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.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.v3.Tool.OpenApiTool open_api_spec = 4;
| Returns |
| Type |
Description |
boolean |
Whether the openApiSpec field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Tool.Builder newBuilderForType()
protected Tool.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public Tool.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides