public static final class ToolCall.Builder extends com.google.protobuf.GeneratedMessageV3.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| Modifier and Type | Method and Description |
|---|---|
ToolCall.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ToolCall |
build() |
ToolCall |
buildPartial() |
ToolCall.Builder |
clear() |
ToolCall.Builder |
clearAction()
The name of the tool's action associated with this call.
|
ToolCall.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ToolCall.Builder |
clearInputParameters()
The action's input parameters.
|
ToolCall.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ToolCall.Builder |
clearTool()
The [tool][Tool] associated with this call.
|
ToolCall.Builder |
clone() |
String |
getAction()
The name of the tool's action associated with this call.
|
com.google.protobuf.ByteString |
getActionBytes()
The name of the tool's action associated with this call.
|
ToolCall |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Struct |
getInputParameters()
The action's input parameters.
|
com.google.protobuf.Struct.Builder |
getInputParametersBuilder()
The action's input parameters.
|
com.google.protobuf.StructOrBuilder |
getInputParametersOrBuilder()
The action's input parameters.
|
String |
getTool()
The [tool][Tool] associated with this call.
|
com.google.protobuf.ByteString |
getToolBytes()
The [tool][Tool] associated with this call.
|
boolean |
hasInputParameters()
The action's input parameters.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ToolCall.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ToolCall.Builder |
mergeFrom(com.google.protobuf.Message other) |
ToolCall.Builder |
mergeFrom(ToolCall other) |
ToolCall.Builder |
mergeInputParameters(com.google.protobuf.Struct value)
The action's input parameters.
|
ToolCall.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ToolCall.Builder |
setAction(String value)
The name of the tool's action associated with this call.
|
ToolCall.Builder |
setActionBytes(com.google.protobuf.ByteString value)
The name of the tool's action associated with this call.
|
ToolCall.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ToolCall.Builder |
setInputParameters(com.google.protobuf.Struct.Builder builderForValue)
The action's input parameters.
|
ToolCall.Builder |
setInputParameters(com.google.protobuf.Struct value)
The action's input parameters.
|
ToolCall.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ToolCall.Builder |
setTool(String value)
The [tool][Tool] associated with this call.
|
ToolCall.Builder |
setToolBytes(com.google.protobuf.ByteString value)
The [tool][Tool] associated with this call.
|
ToolCall.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ToolCall build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ToolCall buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ToolCall.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ToolCall.Builder>public ToolCall.Builder mergeFrom(ToolCall other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public ToolCall.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ToolCall.Builder>IOExceptionpublic String 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) = { ... }
getTool in interface ToolCallOrBuilderpublic 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) = { ... }
getToolBytes in interface ToolCallOrBuilderpublic ToolCall.Builder setTool(String value)
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) = { ... }
value - The tool to set.public ToolCall.Builder 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) = { ... }
public ToolCall.Builder setToolBytes(com.google.protobuf.ByteString value)
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) = { ... }
value - The bytes for tool to set.public String getAction()
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];getAction in interface ToolCallOrBuilderpublic com.google.protobuf.ByteString getActionBytes()
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];getActionBytes in interface ToolCallOrBuilderpublic ToolCall.Builder setAction(String value)
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];value - The action to set.public ToolCall.Builder clearAction()
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];public ToolCall.Builder setActionBytes(com.google.protobuf.ByteString value)
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for action to set.public boolean hasInputParameters()
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
hasInputParameters in interface ToolCallOrBuilderpublic com.google.protobuf.Struct getInputParameters()
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
getInputParameters in interface ToolCallOrBuilderpublic ToolCall.Builder setInputParameters(com.google.protobuf.Struct value)
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public ToolCall.Builder setInputParameters(com.google.protobuf.Struct.Builder builderForValue)
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public ToolCall.Builder mergeInputParameters(com.google.protobuf.Struct value)
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public ToolCall.Builder clearInputParameters()
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.Struct.Builder getInputParametersBuilder()
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder()
The action's input parameters.
.google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
getInputParametersOrBuilder in interface ToolCallOrBuilderpublic final ToolCall.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>public final ToolCall.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCall.Builder>Copyright © 2025 Google LLC. All rights reserved.