Class Tool
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.Tool
- All Implemented Interfaces:
ToolOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Tool
extends com.google.protobuf.GeneratedMessage
implements ToolOrBuilder
A tool provides a list of actions which are available to the [Playbook][google.cloud.dialogflow.cx.v3beta1.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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAuthentication information required for API callsstatic interfacestatic final classA tool provides a list of actions which are available to the [Playbook][google.cloud.dialogflow.cx.v3beta1.Playbook] to attain its goal.static final classA ConnectorTool enabling using Integration Connectors Connections as tools.static interfacestatic final classA DataStoreTool is a way to provide specifications needed to search a list of data stores.static interfacestatic final classEnd-user authentication configuration used for Connection calls.static interfacestatic final classAn ExtensionTool is a way to use Vertex Extensions as a tool.static interfacestatic final classA Function tool describes the functions to be invoked on the client side.static interfacestatic final classAn OpenAPI tool is a way to provide the Tool specifications in the Open API schema format.static interfacestatic final classConfiguration for tools using Service Directory.static interfacestatic enumstatic final classThe TLS configuration.static interfacestatic enumRepresents the type of the tool.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanIntegration connectors tool specification.Integration connectors tool specification.Data store search tool specification.Data store search tool specification.static ToolRequired.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Vertex extension tool specification.Vertex extension tool specification.Client side executed function specification.Client side executed function specification.getName()The unique identifier of the Tool.com.google.protobuf.ByteStringThe unique identifier of the Tool.OpenAPI specification of the Tool.OpenAPI specification of the Tool.com.google.protobuf.Parser<Tool>intOutput only.intOutput only.booleanIntegration connectors tool specification.booleanData store search tool specification.booleanVertex extension tool specification.booleanClient side executed function specification.inthashCode()booleanOpenAPI specification of the Tool.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Tool.Builderstatic Tool.BuildernewBuilder(Tool prototype) protected Tool.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ToolparseDelimitedFrom(InputStream input) static ToolparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ToolparseFrom(byte[] data) static ToolparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ToolparseFrom(com.google.protobuf.ByteString data) static ToolparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ToolparseFrom(com.google.protobuf.CodedInputStream input) static ToolparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ToolparseFrom(InputStream input) static ToolparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ToolparseFrom(ByteBuffer data) static ToolparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Tool>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
OPEN_API_SPEC_FIELD_NUMBER
public static final int OPEN_API_SPEC_FIELD_NUMBER- See Also:
-
DATA_STORE_SPEC_FIELD_NUMBER
public static final int DATA_STORE_SPEC_FIELD_NUMBER- See Also:
-
EXTENSION_SPEC_FIELD_NUMBER
public static final int EXTENSION_SPEC_FIELD_NUMBER- See Also:
-
FUNCTION_SPEC_FIELD_NUMBER
public static final int FUNCTION_SPEC_FIELD_NUMBER- See Also:
-
CONNECTOR_SPEC_FIELD_NUMBER
public static final int CONNECTOR_SPEC_FIELD_NUMBER- See Also:
-
TOOL_TYPE_FIELD_NUMBER
public static final int TOOL_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSpecificationCase
- Specified by:
getSpecificationCasein interfaceToolOrBuilder
-
getName
The unique identifier of the Tool. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
string name = 1;- Specified by:
getNamein interfaceToolOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The unique identifier of the Tool. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
string name = 1;- Specified by:
getNameBytesin interfaceToolOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Required. The human-readable name of the Tool, unique within an agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceToolOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The human-readable name of the Tool, unique within an agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceToolOrBuilder- Returns:
- The bytes for displayName.
-
getDescription
Required. High level description of the Tool and its usage.
string description = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDescriptionin interfaceToolOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Required. High level description of the Tool and its usage.
string description = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDescriptionBytesin interfaceToolOrBuilder- Returns:
- The bytes for description.
-
hasOpenApiSpec
public boolean hasOpenApiSpec()OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool open_api_spec = 4;- Specified by:
hasOpenApiSpecin interfaceToolOrBuilder- Returns:
- Whether the openApiSpec field is set.
-
getOpenApiSpec
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool open_api_spec = 4;- Specified by:
getOpenApiSpecin interfaceToolOrBuilder- Returns:
- The openApiSpec.
-
getOpenApiSpecOrBuilder
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool open_api_spec = 4;- Specified by:
getOpenApiSpecOrBuilderin interfaceToolOrBuilder
-
hasDataStoreSpec
public boolean hasDataStoreSpec()Data store search tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.DataStoreTool data_store_spec = 8;- Specified by:
hasDataStoreSpecin interfaceToolOrBuilder- Returns:
- Whether the dataStoreSpec field is set.
-
getDataStoreSpec
Data store search tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.DataStoreTool data_store_spec = 8;- Specified by:
getDataStoreSpecin interfaceToolOrBuilder- Returns:
- The dataStoreSpec.
-
getDataStoreSpecOrBuilder
Data store search tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.DataStoreTool data_store_spec = 8;- Specified by:
getDataStoreSpecOrBuilderin interfaceToolOrBuilder
-
hasExtensionSpec
public boolean hasExtensionSpec()Vertex extension tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ExtensionTool extension_spec = 11;- Specified by:
hasExtensionSpecin interfaceToolOrBuilder- Returns:
- Whether the extensionSpec field is set.
-
getExtensionSpec
Vertex extension tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ExtensionTool extension_spec = 11;- Specified by:
getExtensionSpecin interfaceToolOrBuilder- Returns:
- The extensionSpec.
-
getExtensionSpecOrBuilder
Vertex extension tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ExtensionTool extension_spec = 11;- Specified by:
getExtensionSpecOrBuilderin interfaceToolOrBuilder
-
hasFunctionSpec
public boolean hasFunctionSpec()Client side executed function specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.FunctionTool function_spec = 13;- Specified by:
hasFunctionSpecin interfaceToolOrBuilder- Returns:
- Whether the functionSpec field is set.
-
getFunctionSpec
Client side executed function specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.FunctionTool function_spec = 13;- Specified by:
getFunctionSpecin interfaceToolOrBuilder- Returns:
- The functionSpec.
-
getFunctionSpecOrBuilder
Client side executed function specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.FunctionTool function_spec = 13;- Specified by:
getFunctionSpecOrBuilderin interfaceToolOrBuilder
-
hasConnectorSpec
public boolean hasConnectorSpec()Integration connectors tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ConnectorTool connector_spec = 15;- Specified by:
hasConnectorSpecin interfaceToolOrBuilder- Returns:
- Whether the connectorSpec field is set.
-
getConnectorSpec
Integration connectors tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ConnectorTool connector_spec = 15;- Specified by:
getConnectorSpecin interfaceToolOrBuilder- Returns:
- The connectorSpec.
-
getConnectorSpecOrBuilder
Integration connectors tool specification.
.google.cloud.dialogflow.cx.v3beta1.Tool.ConnectorTool connector_spec = 15;- Specified by:
getConnectorSpecOrBuilderin interfaceToolOrBuilder
-
getToolTypeValue
public int getToolTypeValue()Output only. The tool type.
.google.cloud.dialogflow.cx.v3beta1.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolTypeValuein interfaceToolOrBuilder- Returns:
- The enum numeric value on the wire for toolType.
-
getToolType
Output only. The tool type.
.google.cloud.dialogflow.cx.v3beta1.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolTypein interfaceToolOrBuilder- Returns:
- The toolType.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Tool parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tool parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tool parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tool parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tool parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Tool parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Tool parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Tool parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-