public static final class ToolsetTool.Builder extends GeneratedMessage.Builder<ToolsetTool.Builder> implements ToolsetToolOrBuilderA tool that is created from a toolset.
Protobuf type google.cloud.dialogflow.v2.ToolsetTool
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ToolsetTool.BuilderImplements
ToolsetToolOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ToolsetTool build()| Returns | |
|---|---|
| Type | Description |
ToolsetTool |
|
buildPartial()
public ToolsetTool buildPartial()| Returns | |
|---|---|
| Type | Description |
ToolsetTool |
|
clear()
public ToolsetTool.Builder clear()| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
|
clearConfirmationRequirement()
public ToolsetTool.Builder clearConfirmationRequirement()Optional. Indicates whether the tool requires human confirmation.
.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
clearOperationId()
public ToolsetTool.Builder clearOperationId()Optional. The operationId field of the OpenAPI endpoint. The operationId must be present in the toolset's definition.
string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
clearToolset()
public ToolsetTool.Builder clearToolset() Required. The name of the toolset to retrieve the schema for.
Format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}
string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
getConfirmationRequirement()
public Tool.ConfirmationRequirement getConfirmationRequirement()Optional. Indicates whether the tool requires human confirmation.
.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Tool.ConfirmationRequirement |
The confirmationRequirement. |
getConfirmationRequirementValue()
public int getConfirmationRequirementValue()Optional. Indicates whether the tool requires human confirmation.
.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for confirmationRequirement. |
getDefaultInstanceForType()
public ToolsetTool getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ToolsetTool |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOperationId()
public String getOperationId()Optional. The operationId field of the OpenAPI endpoint. The operationId must be present in the toolset's definition.
string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The operationId. |
getOperationIdBytes()
public ByteString getOperationIdBytes()Optional. The operationId field of the OpenAPI endpoint. The operationId must be present in the toolset's definition.
string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for operationId. |
getToolset()
public String getToolset() Required. The name of the toolset to retrieve the schema for.
Format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}
string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The toolset. |
getToolsetBytes()
public ByteString getToolsetBytes() Required. The name of the toolset to retrieve the schema for.
Format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}
string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for toolset. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ToolsetTool other)
public ToolsetTool.Builder mergeFrom(ToolsetTool other)| Parameter | |
|---|---|
| Name | Description |
other |
ToolsetTool |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ToolsetTool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ToolsetTool.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
|
setConfirmationRequirement(Tool.ConfirmationRequirement value)
public ToolsetTool.Builder setConfirmationRequirement(Tool.ConfirmationRequirement value)Optional. Indicates whether the tool requires human confirmation.
.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Tool.ConfirmationRequirementThe confirmationRequirement to set. |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
setConfirmationRequirementValue(int value)
public ToolsetTool.Builder setConfirmationRequirementValue(int value)Optional. Indicates whether the tool requires human confirmation.
.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement confirmation_requirement = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for confirmationRequirement to set. |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
setOperationId(String value)
public ToolsetTool.Builder setOperationId(String value)Optional. The operationId field of the OpenAPI endpoint. The operationId must be present in the toolset's definition.
string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe operationId to set. |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
setOperationIdBytes(ByteString value)
public ToolsetTool.Builder setOperationIdBytes(ByteString value)Optional. The operationId field of the OpenAPI endpoint. The operationId must be present in the toolset's definition.
string operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for operationId to set. |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
setToolset(String value)
public ToolsetTool.Builder setToolset(String value) Required. The name of the toolset to retrieve the schema for.
Format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}
string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe toolset to set. |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |
setToolsetBytes(ByteString value)
public ToolsetTool.Builder setToolsetBytes(ByteString value) Required. The name of the toolset to retrieve the schema for.
Format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}
string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for toolset to set. |
| Returns | |
|---|---|
| Type | Description |
ToolsetTool.Builder |
This builder for chaining. |