- 0.87.0 (latest)
- 0.86.0
- 0.85.0
- 0.84.0
- 0.83.0
- 0.81.0
- 0.79.0
- 0.78.0
- 0.75.0
- 0.74.0
- 0.73.0
- 0.71.0
- 0.70.0
- 0.69.0
- 0.68.0
- 0.67.0
- 0.66.0
- 0.65.0
- 0.64.0
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.7
- 0.13.1
- 0.12.1
- 0.11.5
public static final class ToolUse.Builder extends GeneratedMessageV3.Builder<ToolUse.Builder> implements ToolUseOrBuilderStores metadata of the invocation of an action supported by a tool.
Protobuf type google.cloud.dialogflow.cx.v3beta1.ToolUse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ToolUse.BuilderImplements
ToolUseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ToolUse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
build()
public ToolUse build()| Returns | |
|---|---|
| Type | Description |
ToolUse |
|
buildPartial()
public ToolUse buildPartial()| Returns | |
|---|---|
| Type | Description |
ToolUse |
|
clear()
public ToolUse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
clearAction()
public ToolUse.Builder clearAction()Optional. Name of the action to be called during the tool use.
string action = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ToolUse.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
clearInputActionParameters()
public ToolUse.Builder clearInputActionParameters()Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public ToolUse.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
clearOutputActionParameters()
public ToolUse.Builder clearOutputActionParameters()Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
clearTool()
public ToolUse.Builder clearTool() Required. The tool that should
be used. 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 | |
|---|---|
| Type | Description |
ToolUse.Builder |
This builder for chaining. |
clone()
public ToolUse.Builder clone()| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
getAction()
public String getAction()Optional. Name of the action to be called during the tool use.
string action = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The action. |
getActionBytes()
public ByteString getActionBytes()Optional. Name of the action to be called during the tool use.
string action = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for action. |
getDefaultInstanceForType()
public ToolUse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ToolUse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInputActionParameters()
public Struct getInputActionParameters()Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The inputActionParameters. |
getInputActionParametersBuilder()
public Struct.Builder getInputActionParametersBuilder()Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getInputActionParametersOrBuilder()
public StructOrBuilder getInputActionParametersOrBuilder()Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getOutputActionParameters()
public Struct getOutputActionParameters()Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The outputActionParameters. |
getOutputActionParametersBuilder()
public Struct.Builder getOutputActionParametersBuilder()Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getOutputActionParametersOrBuilder()
public StructOrBuilder getOutputActionParametersOrBuilder()Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getTool()
public String getTool() Required. The tool that should
be used. 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 | |
|---|---|
| Type | Description |
String |
The tool. |
getToolBytes()
public ByteString getToolBytes() Required. The tool that should
be used. 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for tool. |
hasInputActionParameters()
public boolean hasInputActionParameters()Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inputActionParameters field is set. |
hasOutputActionParameters()
public boolean hasOutputActionParameters()Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the outputActionParameters field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ToolUse other)
public ToolUse.Builder mergeFrom(ToolUse other)| Parameter | |
|---|---|
| Name | Description |
other |
ToolUse |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ToolUse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ToolUse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
mergeInputActionParameters(Struct value)
public ToolUse.Builder mergeInputActionParameters(Struct value)Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
mergeOutputActionParameters(Struct value)
public ToolUse.Builder mergeOutputActionParameters(Struct value)Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ToolUse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
setAction(String value)
public ToolUse.Builder setAction(String value)Optional. Name of the action to be called during the tool use.
string action = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe action to set. |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
This builder for chaining. |
setActionBytes(ByteString value)
public ToolUse.Builder setActionBytes(ByteString value)Optional. Name of the action to be called during the tool use.
string action = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for action to set. |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ToolUse.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
setInputActionParameters(Struct value)
public ToolUse.Builder setInputActionParameters(Struct value)Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
setInputActionParameters(Struct.Builder builderForValue)
public ToolUse.Builder setInputActionParameters(Struct.Builder builderForValue)Optional. A list of input parameters for the action.
.google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
setOutputActionParameters(Struct value)
public ToolUse.Builder setOutputActionParameters(Struct value)Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
setOutputActionParameters(Struct.Builder builderForValue)
public ToolUse.Builder setOutputActionParameters(Struct.Builder builderForValue)Optional. A list of output parameters generated by the action.
.google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ToolUse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|
setTool(String value)
public ToolUse.Builder setTool(String value) Required. The tool that should
be used. 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tool to set. |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
This builder for chaining. |
setToolBytes(ByteString value)
public ToolUse.Builder setToolBytes(ByteString value) Required. The tool that should
be used. 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tool to set. |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ToolUse.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ToolUse.Builder |
|