Class CreateToolRequest.Builder (4.87.0)

public static final class CreateToolRequest.Builder extends GeneratedMessageV3.Builder<CreateToolRequest.Builder> implements CreateToolRequestOrBuilder

Request message of CreateTool.

Protobuf type google.cloud.dialogflow.v2beta1.CreateToolRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateToolRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateToolRequest.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateToolRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateToolRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateToolRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateToolRequest.Builder
Overrides

clearParent()

public CreateToolRequest.Builder clearParent()

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
CreateToolRequest.Builder

This builder for chaining.

clearTool()

public CreateToolRequest.Builder clearTool()

Required. The tool to create.

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

Returns
Type Description
CreateToolRequest.Builder

clearToolId()

public CreateToolRequest.Builder clearToolId()

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
CreateToolRequest.Builder

This builder for chaining.

clone()

public CreateToolRequest.Builder clone()
Returns
Type Description
CreateToolRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateToolRequest getDefaultInstanceForType()
Returns
Type Description
CreateToolRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public 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 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 Tool getTool()

Required. The tool to create.

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

Returns
Type Description
Tool

The tool.

getToolBuilder()

public Tool.Builder getToolBuilder()

Required. The tool to create.

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

Returns
Type Description
Tool.Builder

getToolId()

public 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 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 ToolOrBuilder getToolOrBuilder()

Required. The tool to create.

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

Returns
Type Description
ToolOrBuilder

hasTool()

public boolean hasTool()

Required. The tool to create.

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

Returns
Type Description
boolean

Whether the tool field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateToolRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateToolRequest.Builder
Overrides

mergeTool(Tool value)

public CreateToolRequest.Builder mergeTool(Tool value)

Required. The tool to create.

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

Parameter
Name Description
value Tool
Returns
Type Description
CreateToolRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateToolRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateToolRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateToolRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateToolRequest.Builder
Overrides

setParent(String value)

public CreateToolRequest.Builder setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateToolRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateToolRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateToolRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateToolRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateToolRequest.Builder
Overrides

setTool(Tool value)

public CreateToolRequest.Builder setTool(Tool value)

Required. The tool to create.

.google.cloud.dialogflow.v2beta1.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 create.

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

Parameter
Name Description
builderForValue Tool.Builder
Returns
Type Description
CreateToolRequest.Builder

setToolId(String value)

public CreateToolRequest.Builder setToolId(String value)

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];

Parameter
Name Description
value String

The toolId to set.

Returns
Type Description
CreateToolRequest.Builder

This builder for chaining.

setToolIdBytes(ByteString value)

public CreateToolRequest.Builder setToolIdBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for toolId to set.

Returns
Type Description
CreateToolRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateToolRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateToolRequest.Builder
Overrides