public static final class CreateToolRequest.Builder extends GeneratedMessage.Builder<CreateToolRequest.Builder> implements CreateToolRequestOrBuilderThe request message for Tools.CreateTool.
Protobuf type google.cloud.dialogflow.cx.v3beta1.CreateToolRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateToolRequest.BuilderImplements
CreateToolRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateToolRequest build()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest |
|
buildPartial()
public CreateToolRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest |
|
clear()
public CreateToolRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
clearParent()
public CreateToolRequest.Builder clearParent() Required. The agent to create a Tool for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |
clearTool()
public CreateToolRequest.Builder clearTool()Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
getDefaultInstanceForType()
public CreateToolRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateToolRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The agent to create a Tool for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The agent to create a Tool for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getTool()
public Tool getTool()Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Tool |
The tool. |
getToolBuilder()
public Tool.Builder getToolBuilder()Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Tool.Builder |
|
getToolOrBuilder()
public ToolOrBuilder getToolOrBuilder()Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ToolOrBuilder |
|
hasTool()
public boolean hasTool()Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the tool field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateToolRequest other)
public CreateToolRequest.Builder mergeFrom(CreateToolRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateToolRequest |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateToolRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateToolRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
mergeTool(Tool value)
public CreateToolRequest.Builder mergeTool(Tool value)Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Tool |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
setParent(String value)
public CreateToolRequest.Builder setParent(String value) Required. The agent to create a Tool for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateToolRequest.Builder setParentBytes(ByteString value) Required. The agent to create a Tool for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
This builder for chaining. |
setTool(Tool value)
public CreateToolRequest.Builder setTool(Tool value)Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Tool |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|
setTool(Tool.Builder builderForValue)
public CreateToolRequest.Builder setTool(Tool.Builder builderForValue)Required. The Tool to be created.
.google.cloud.dialogflow.cx.v3beta1.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Tool.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateToolRequest.Builder |
|