public static final class ToolCallResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.Builder> implements ToolCallResultOrBuilder
The result of calling a tool's action that has been executed by the client.Protobuf type
google.cloud.dialogflow.cx.v3beta1.ToolCallResult| Modifier and Type | Method and Description |
|---|---|
ToolCallResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ToolCallResult |
build() |
ToolCallResult |
buildPartial() |
ToolCallResult.Builder |
clear() |
ToolCallResult.Builder |
clearAction()
The name of the tool's action associated with this call.
|
ToolCallResult.Builder |
clearError()
The tool call's error.
|
ToolCallResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ToolCallResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ToolCallResult.Builder |
clearOutputParameters()
The tool call's output parameters.
|
ToolCallResult.Builder |
clearResult() |
ToolCallResult.Builder |
clearTool()
The [tool][Tool] associated with this call.
|
ToolCallResult.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.
|
ToolCallResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ToolCallResult.Error |
getError()
The tool call's error.
|
ToolCallResult.Error.Builder |
getErrorBuilder()
The tool call's error.
|
ToolCallResult.ErrorOrBuilder |
getErrorOrBuilder()
The tool call's error.
|
com.google.protobuf.Struct |
getOutputParameters()
The tool call's output parameters.
|
com.google.protobuf.Struct.Builder |
getOutputParametersBuilder()
The tool call's output parameters.
|
com.google.protobuf.StructOrBuilder |
getOutputParametersOrBuilder()
The tool call's output parameters.
|
ToolCallResult.ResultCase |
getResultCase() |
String |
getTool()
The [tool][Tool] associated with this call.
|
com.google.protobuf.ByteString |
getToolBytes()
The [tool][Tool] associated with this call.
|
boolean |
hasError()
The tool call's error.
|
boolean |
hasOutputParameters()
The tool call's output parameters.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ToolCallResult.Builder |
mergeError(ToolCallResult.Error value)
The tool call's error.
|
ToolCallResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ToolCallResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
ToolCallResult.Builder |
mergeFrom(ToolCallResult other) |
ToolCallResult.Builder |
mergeOutputParameters(com.google.protobuf.Struct value)
The tool call's output parameters.
|
ToolCallResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ToolCallResult.Builder |
setAction(String value)
The name of the tool's action associated with this call.
|
ToolCallResult.Builder |
setActionBytes(com.google.protobuf.ByteString value)
The name of the tool's action associated with this call.
|
ToolCallResult.Builder |
setError(ToolCallResult.Error.Builder builderForValue)
The tool call's error.
|
ToolCallResult.Builder |
setError(ToolCallResult.Error value)
The tool call's error.
|
ToolCallResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ToolCallResult.Builder |
setOutputParameters(com.google.protobuf.Struct.Builder builderForValue)
The tool call's output parameters.
|
ToolCallResult.Builder |
setOutputParameters(com.google.protobuf.Struct value)
The tool call's output parameters.
|
ToolCallResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ToolCallResult.Builder |
setTool(String value)
The [tool][Tool] associated with this call.
|
ToolCallResult.Builder |
setToolBytes(com.google.protobuf.ByteString value)
The [tool][Tool] associated with this call.
|
ToolCallResult.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<ToolCallResult.Builder>public ToolCallResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.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<ToolCallResult.Builder>public ToolCallResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ToolCallResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ToolCallResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ToolCallResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.Builder>public ToolCallResult.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<ToolCallResult.Builder>public ToolCallResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.Builder>public ToolCallResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.Builder>public ToolCallResult.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<ToolCallResult.Builder>public ToolCallResult.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<ToolCallResult.Builder>public ToolCallResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ToolCallResult.Builder>public ToolCallResult.Builder mergeFrom(ToolCallResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.Builder>public ToolCallResult.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<ToolCallResult.Builder>IOExceptionpublic ToolCallResult.ResultCase getResultCase()
getResultCase in interface ToolCallResultOrBuilderpublic ToolCallResult.Builder clearResult()
public 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 ToolCallResultOrBuilderpublic 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 ToolCallResultOrBuilderpublic ToolCallResult.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 ToolCallResult.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 ToolCallResult.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 ToolCallResultOrBuilderpublic 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 ToolCallResultOrBuilderpublic ToolCallResult.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 ToolCallResult.Builder clearAction()
The name of the tool's action associated with this call.
string action = 2 [(.google.api.field_behavior) = REQUIRED];public ToolCallResult.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 hasError()
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;hasError in interface ToolCallResultOrBuilderpublic ToolCallResult.Error getError()
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;getError in interface ToolCallResultOrBuilderpublic ToolCallResult.Builder setError(ToolCallResult.Error value)
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;public ToolCallResult.Builder setError(ToolCallResult.Error.Builder builderForValue)
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;public ToolCallResult.Builder mergeError(ToolCallResult.Error value)
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;public ToolCallResult.Builder clearError()
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;public ToolCallResult.Error.Builder getErrorBuilder()
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;public ToolCallResult.ErrorOrBuilder getErrorOrBuilder()
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;getErrorOrBuilder in interface ToolCallResultOrBuilderpublic boolean hasOutputParameters()
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;hasOutputParameters in interface ToolCallResultOrBuilderpublic com.google.protobuf.Struct getOutputParameters()
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;getOutputParameters in interface ToolCallResultOrBuilderpublic ToolCallResult.Builder setOutputParameters(com.google.protobuf.Struct value)
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;public ToolCallResult.Builder setOutputParameters(com.google.protobuf.Struct.Builder builderForValue)
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;public ToolCallResult.Builder mergeOutputParameters(com.google.protobuf.Struct value)
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;public ToolCallResult.Builder clearOutputParameters()
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;public com.google.protobuf.Struct.Builder getOutputParametersBuilder()
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;public com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder()
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;getOutputParametersOrBuilder in interface ToolCallResultOrBuilderpublic final ToolCallResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.Builder>public final ToolCallResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ToolCallResult.Builder>Copyright © 2025 Google LLC. All rights reserved.