Class ToolCall.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ToolCall.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder
- All Implemented Interfaces:
ToolCallOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ToolCall
public static final class ToolCall.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ToolCall.Builder>
implements ToolCallOrBuilder
Represents a call of a specific tool's action with the specified inputs.Protobuf type
google.cloud.dialogflow.cx.v3beta1.ToolCall-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the tool's action associated with this call.The action's input parameters.The [tool][Tool] associated with this call.The name of the tool's action associated with this call.com.google.protobuf.ByteStringThe name of the tool's action associated with this call.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructThe action's input parameters.com.google.protobuf.Struct.BuilderThe action's input parameters.com.google.protobuf.StructOrBuilderThe action's input parameters.getTool()The [tool][Tool] associated with this call.com.google.protobuf.ByteStringThe [tool][Tool] associated with this call.booleanThe action's input parameters.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInputParameters(com.google.protobuf.Struct value) The action's input parameters.The name of the tool's action associated with this call.setActionBytes(com.google.protobuf.ByteString value) The name of the tool's action associated with this call.setInputParameters(com.google.protobuf.Struct value) The action's input parameters.setInputParameters(com.google.protobuf.Struct.Builder builderForValue) The action's input parameters.The [tool][Tool] associated with this call.setToolBytes(com.google.protobuf.ByteString value) The [tool][Tool] associated with this call.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<ToolCall.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<ToolCall.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<ToolCall.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<ToolCall.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ToolCall.Builder>
-
mergeFrom
public ToolCall.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<ToolCall.Builder>- Throws:
IOException
-
getTool
The [tool][Tool] associated with this call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>`.
string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getToolin interfaceToolCallOrBuilder- Returns:
- The tool.
-
getToolBytes
public com.google.protobuf.ByteString getToolBytes()The [tool][Tool] associated with this call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>`.
string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getToolBytesin interfaceToolCallOrBuilder- Returns:
- The bytes for tool.
-
setTool
The [tool][Tool] associated with this call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>`.
string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The tool to set.- Returns:
- This builder for chaining.
-
clearTool
The [tool][Tool] associated with this call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>`.
string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setToolBytes
The [tool][Tool] associated with this call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>`.
string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for tool to set.- Returns:
- This builder for chaining.
-
getAction
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionin interfaceToolCallOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionBytesin interfaceToolCallOrBuilder- Returns:
- The bytes for action.
-
setAction
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setActionBytes
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-
hasInputParameters
public boolean hasInputParameters()The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasInputParametersin interfaceToolCallOrBuilder- Returns:
- Whether the inputParameters field is set.
-
getInputParameters
public com.google.protobuf.Struct getInputParameters()The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputParametersin interfaceToolCallOrBuilder- Returns:
- The inputParameters.
-
setInputParameters
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setInputParameters
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeInputParameters
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearInputParameters
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getInputParametersBuilder
public com.google.protobuf.Struct.Builder getInputParametersBuilder()The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getInputParametersOrBuilder
public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder()The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputParametersOrBuilderin interfaceToolCallOrBuilder
-