Class CreateToolRequest.Builder (0.50.0)

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

The request message for Tools.CreateTool.

Protobuf type google.cloud.dialogflow.cx.v3beta1.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 agent to create a Tool for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 be created.

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

Returns
Type Description
CreateToolRequest.Builder

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 agent to create a Tool for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent to create a Tool for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 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 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 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

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 agent to create a Tool for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent to create a Tool for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 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

setUnknownFields(UnknownFieldSet unknownFields)

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