Interface CreateToolRequestOrBuilder (4.87.0)

public interface CreateToolRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract String getParent()

Required. The project/location to create tool for. Format: projects/<Project ID>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The project/location to create tool for. Format: projects/<Project ID>/locations/<Location ID>

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getTool()

public abstract Tool getTool()

Required. The tool to create.

.google.cloud.dialogflow.v2.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool

The tool.

getToolId()

public abstract String getToolId()

Optional. The ID to use for the tool, which will become the final component of the tool's resource name.

The tool ID must be compliant with the regression formula a-zA-Z* with the characters length in range of [3,64]. If the field is not provide, an Id will be auto-generated. If the field is provided, the caller is responsible for

  1. the uniqueness of the ID, otherwise the request will be rejected.
  2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.

string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The toolId.

getToolIdBytes()

public abstract ByteString getToolIdBytes()

Optional. The ID to use for the tool, which will become the final component of the tool's resource name.

The tool ID must be compliant with the regression formula a-zA-Z* with the characters length in range of [3,64]. If the field is not provide, an Id will be auto-generated. If the field is provided, the caller is responsible for

  1. the uniqueness of the ID, otherwise the request will be rejected.
  2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.

string tool_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for toolId.

getToolOrBuilder()

public abstract ToolOrBuilder getToolOrBuilder()

Required. The tool to create.

.google.cloud.dialogflow.v2.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolOrBuilder

hasTool()

public abstract boolean hasTool()

Required. The tool to create.

.google.cloud.dialogflow.v2.Tool tool = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the tool field is set.