public final class ToolUse extends com.google.protobuf.GeneratedMessageV3 implements ToolUseOrBuilder
Stores metadata of the invocation of an action supported by a tool.Protobuf type
google.cloud.dialogflow.cx.v3beta1.ToolUse| Modifier and Type | Class and Description |
|---|---|
static class |
ToolUse.Builder
Stores metadata of the invocation of an action supported by a tool.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ACTION_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
INPUT_ACTION_PARAMETERS_FIELD_NUMBER |
static int |
OUTPUT_ACTION_PARAMETERS_FIELD_NUMBER |
static int |
TOOL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAction()
Optional.
|
com.google.protobuf.ByteString |
getActionBytes()
Optional.
|
static ToolUse |
getDefaultInstance() |
ToolUse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Output only.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Output only.
|
com.google.protobuf.Struct |
getInputActionParameters()
Optional.
|
com.google.protobuf.StructOrBuilder |
getInputActionParametersOrBuilder()
Optional.
|
com.google.protobuf.Struct |
getOutputActionParameters()
Optional.
|
com.google.protobuf.StructOrBuilder |
getOutputActionParametersOrBuilder()
Optional.
|
com.google.protobuf.Parser<ToolUse> |
getParserForType() |
int |
getSerializedSize() |
String |
getTool()
Required.
|
com.google.protobuf.ByteString |
getToolBytes()
Required.
|
int |
hashCode() |
boolean |
hasInputActionParameters()
Optional.
|
boolean |
hasOutputActionParameters()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ToolUse.Builder |
newBuilder() |
static ToolUse.Builder |
newBuilder(ToolUse prototype) |
ToolUse.Builder |
newBuilderForType() |
protected ToolUse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ToolUse |
parseDelimitedFrom(InputStream input) |
static ToolUse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ToolUse |
parseFrom(byte[] data) |
static ToolUse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ToolUse |
parseFrom(ByteBuffer data) |
static ToolUse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ToolUse |
parseFrom(com.google.protobuf.ByteString data) |
static ToolUse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ToolUse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ToolUse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ToolUse |
parseFrom(InputStream input) |
static ToolUse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ToolUse> |
parser() |
ToolUse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TOOL_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
public static final int INPUT_ACTION_PARAMETERS_FIELD_NUMBER
public static final int OUTPUT_ACTION_PARAMETERS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getTool()
Required. The [tool][google.cloud.dialogflow.cx.v3beta1.Tool] that should be used. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getTool in interface ToolUseOrBuilderpublic com.google.protobuf.ByteString getToolBytes()
Required. The [tool][google.cloud.dialogflow.cx.v3beta1.Tool] that should be used. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getToolBytes in interface ToolUseOrBuilderpublic String getDisplayName()
Output only. The display name of the tool.
string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];getDisplayName in interface ToolUseOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Output only. The display name of the tool.
string display_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];getDisplayNameBytes in interface ToolUseOrBuilderpublic String getAction()
Optional. Name of the action to be called during the tool use.
string action = 2 [(.google.api.field_behavior) = OPTIONAL];getAction in interface ToolUseOrBuilderpublic com.google.protobuf.ByteString getActionBytes()
Optional. Name of the action to be called during the tool use.
string action = 2 [(.google.api.field_behavior) = OPTIONAL];getActionBytes in interface ToolUseOrBuilderpublic boolean hasInputActionParameters()
Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
hasInputActionParameters in interface ToolUseOrBuilderpublic com.google.protobuf.Struct getInputActionParameters()
Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
getInputActionParameters in interface ToolUseOrBuilderpublic com.google.protobuf.StructOrBuilder getInputActionParametersOrBuilder()
Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
getInputActionParametersOrBuilder in interface ToolUseOrBuilderpublic boolean hasOutputActionParameters()
Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
hasOutputActionParameters in interface ToolUseOrBuilderpublic com.google.protobuf.Struct getOutputActionParameters()
Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
getOutputActionParameters in interface ToolUseOrBuilderpublic com.google.protobuf.StructOrBuilder getOutputActionParametersOrBuilder()
Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
getOutputActionParametersOrBuilder in interface ToolUseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ToolUse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ToolUse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ToolUse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ToolUse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ToolUse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ToolUse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ToolUse parseFrom(InputStream input) throws IOException
IOExceptionpublic static ToolUse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ToolUse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ToolUse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ToolUse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ToolUse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ToolUse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ToolUse.Builder newBuilder()
public static ToolUse.Builder newBuilder(ToolUse prototype)
public ToolUse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ToolUse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ToolUse getDefaultInstance()
public static com.google.protobuf.Parser<ToolUse> parser()
public com.google.protobuf.Parser<ToolUse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ToolUse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.