Class ToolCallResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ToolCallResult.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Builder
- All Implemented Interfaces:
ToolCallResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ToolCallResult
public static final class ToolCallResult.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the tool's action associated with this call.The tool call's error.The tool call's output 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.DescriptorgetError()The tool call's error.The tool call's error.The tool call's error.com.google.protobuf.StructThe tool call's output parameters.com.google.protobuf.Struct.BuilderThe tool call's output parameters.com.google.protobuf.StructOrBuilderThe tool call's output parameters.getTool()The [tool][Tool] associated with this call.com.google.protobuf.ByteStringThe [tool][Tool] associated with this call.booleanhasError()The tool call's error.booleanThe tool call's output parameters.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeError(ToolCallResult.Error value) The tool call's error.mergeFrom(ToolCallResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOutputParameters(com.google.protobuf.Struct value) The tool call's output 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.setError(ToolCallResult.Error value) The tool call's error.setError(ToolCallResult.Error.Builder builderForValue) The tool call's error.setOutputParameters(com.google.protobuf.Struct value) The tool call's output parameters.setOutputParameters(com.google.protobuf.Struct.Builder builderForValue) The tool call's output 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<ToolCallResult.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<ToolCallResult.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<ToolCallResult.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<ToolCallResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ToolCallResult.Builder>
-
mergeFrom
public ToolCallResult.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<ToolCallResult.Builder>- Throws:
IOException
-
getResultCase
- Specified by:
getResultCasein interfaceToolCallResultOrBuilder
-
clearResult
-
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 interfaceToolCallResultOrBuilder- 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 interfaceToolCallResultOrBuilder- 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 interfaceToolCallResultOrBuilder- 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 interfaceToolCallResultOrBuilder- 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.
-
hasError
public boolean hasError()The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;- Specified by:
hasErrorin interfaceToolCallResultOrBuilder- Returns:
- Whether the error field is set.
-
getError
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;- Specified by:
getErrorin interfaceToolCallResultOrBuilder- Returns:
- The error.
-
setError
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3; -
setError
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3; -
mergeError
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3; -
clearError
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3; -
getErrorBuilder
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3; -
getErrorOrBuilder
The tool call's error.
.google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error error = 3;- Specified by:
getErrorOrBuilderin interfaceToolCallResultOrBuilder
-
hasOutputParameters
public boolean hasOutputParameters()The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;- Specified by:
hasOutputParametersin interfaceToolCallResultOrBuilder- Returns:
- Whether the outputParameters field is set.
-
getOutputParameters
public com.google.protobuf.Struct getOutputParameters()The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;- Specified by:
getOutputParametersin interfaceToolCallResultOrBuilder- Returns:
- The outputParameters.
-
setOutputParameters
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4; -
setOutputParameters
public ToolCallResult.Builder setOutputParameters(com.google.protobuf.Struct.Builder builderForValue) The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4; -
mergeOutputParameters
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4; -
clearOutputParameters
The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4; -
getOutputParametersBuilder
public com.google.protobuf.Struct.Builder getOutputParametersBuilder()The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4; -
getOutputParametersOrBuilder
public com.google.protobuf.StructOrBuilder getOutputParametersOrBuilder()The tool call's output parameters.
.google.protobuf.Struct output_parameters = 4;- Specified by:
getOutputParametersOrBuilderin interfaceToolCallResultOrBuilder
-