Class Tool.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Tool.Builder>
com.google.cloud.dialogflow.cx.v3.Tool.Builder
- All Implemented Interfaces:
ToolOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Tool
public static final class Tool.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Tool.Builder>
implements ToolOrBuilder
A tool provides a list of actions which are available to the [Playbook][google.cloud.dialogflow.cx.v3.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Data store search tool specification.Required.Required.Client side executed function specification.The unique identifier of the Tool.OpenAPI specification of the Tool.Output only.Data store search tool specification.Data store search tool specification.Data store search tool specification.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Client side executed function 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.OpenAPI specification of the Tool.Output only.intOutput only.booleanData store search tool specification.booleanClient side executed function specification.booleanOpenAPI specification of the Tool.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanData store search tool specification.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Client side executed function specification.mergeOpenApiSpec(Tool.OpenApiTool value) OpenAPI specification of the Tool.Data store search tool specification.setDataStoreSpec(Tool.DataStoreTool.Builder builderForValue) Data store search tool specification.setDescription(String value) Required.setDescriptionBytes(com.google.protobuf.ByteString value) Required.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setFunctionSpec(Tool.FunctionTool value) Client side executed function specification.setFunctionSpec(Tool.FunctionTool.Builder builderForValue) Client side executed function specification.The unique identifier of the Tool.setNameBytes(com.google.protobuf.ByteString value) The unique identifier of the Tool.setOpenApiSpec(Tool.OpenApiTool value) OpenAPI specification of the Tool.setOpenApiSpec(Tool.OpenApiTool.Builder builderForValue) OpenAPI specification of the Tool.setToolType(Tool.ToolType value) Output only.setToolTypeValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Tool.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Tool.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Tool.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tool.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Tool.Builder>
-
mergeFrom
public Tool.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tool.Builder>- Throws:
IOException
-
getSpecificationCase
- Specified by:
getSpecificationCasein interfaceToolOrBuilder
-
clearSpecification
-
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.
-
setName
The unique identifier of the Tool. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The unique identifier of the Tool. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The unique identifier of the Tool. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setDisplayName
Required. The human-readable name of the Tool, unique within an agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The human-readable name of the Tool, unique within an agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The human-readable name of the Tool, unique within an agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
Required. High level description of the Tool and its usage.
string description = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Required. High level description of the Tool and its usage.
string description = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Required. High level description of the Tool and its usage.
string description = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasOpenApiSpec
public boolean hasOpenApiSpec()OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.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.v3.Tool.OpenApiTool open_api_spec = 4;- Specified by:
getOpenApiSpecin interfaceToolOrBuilder- Returns:
- The openApiSpec.
-
setOpenApiSpec
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4; -
setOpenApiSpec
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4; -
mergeOpenApiSpec
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4; -
clearOpenApiSpec
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4; -
getOpenApiSpecBuilder
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4; -
getOpenApiSpecOrBuilder
OpenAPI specification of the Tool.
.google.cloud.dialogflow.cx.v3.Tool.OpenApiTool open_api_spec = 4;- Specified by:
getOpenApiSpecOrBuilderin interfaceToolOrBuilder
-
hasDataStoreSpec
public boolean hasDataStoreSpec()Data store search tool specification.
.google.cloud.dialogflow.cx.v3.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.v3.Tool.DataStoreTool data_store_spec = 8;- Specified by:
getDataStoreSpecin interfaceToolOrBuilder- Returns:
- The dataStoreSpec.
-
setDataStoreSpec
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool data_store_spec = 8; -
setDataStoreSpec
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool data_store_spec = 8; -
mergeDataStoreSpec
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool data_store_spec = 8; -
clearDataStoreSpec
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool data_store_spec = 8; -
getDataStoreSpecBuilder
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool data_store_spec = 8; -
getDataStoreSpecOrBuilder
Data store search tool specification.
.google.cloud.dialogflow.cx.v3.Tool.DataStoreTool data_store_spec = 8;- Specified by:
getDataStoreSpecOrBuilderin interfaceToolOrBuilder
-
hasFunctionSpec
public boolean hasFunctionSpec()Client side executed function specification.
.google.cloud.dialogflow.cx.v3.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.v3.Tool.FunctionTool function_spec = 13;- Specified by:
getFunctionSpecin interfaceToolOrBuilder- Returns:
- The functionSpec.
-
setFunctionSpec
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13; -
setFunctionSpec
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13; -
mergeFunctionSpec
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13; -
clearFunctionSpec
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13; -
getFunctionSpecBuilder
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13; -
getFunctionSpecOrBuilder
Client side executed function specification.
.google.cloud.dialogflow.cx.v3.Tool.FunctionTool function_spec = 13;- Specified by:
getFunctionSpecOrBuilderin interfaceToolOrBuilder
-
getToolTypeValue
public int getToolTypeValue()Output only. The tool type.
.google.cloud.dialogflow.cx.v3.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.
-
setToolTypeValue
Output only. The tool type.
.google.cloud.dialogflow.cx.v3.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for toolType to set.- Returns:
- This builder for chaining.
-
getToolType
Output only. The tool type.
.google.cloud.dialogflow.cx.v3.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getToolTypein interfaceToolOrBuilder- Returns:
- The toolType.
-
setToolType
Output only. The tool type.
.google.cloud.dialogflow.cx.v3.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The toolType to set.- Returns:
- This builder for chaining.
-
clearToolType
Output only. The tool type.
.google.cloud.dialogflow.cx.v3.Tool.ToolType tool_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-