Class Tool.ExtensionTool.Builder (0.94.0)

public static final class Tool.ExtensionTool.Builder extends GeneratedMessage.Builder<Tool.ExtensionTool.Builder> implements Tool.ExtensionToolOrBuilder

An ExtensionTool is a way to use Vertex Extensions as a tool.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Tool.ExtensionTool

Static Methods

getDescriptor()

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

Methods

build()

public Tool.ExtensionTool build()
Returns
Type Description
Tool.ExtensionTool

buildPartial()

public Tool.ExtensionTool buildPartial()
Returns
Type Description
Tool.ExtensionTool

clear()

public Tool.ExtensionTool.Builder clear()
Returns
Type Description
Tool.ExtensionTool.Builder
Overrides

clearName()

public Tool.ExtensionTool.Builder clearName()

Required. The full name of the referenced vertex extension. Formats: projects/{project}/locations/{location}/extensions/{extension}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Tool.ExtensionTool.Builder

This builder for chaining.

getDefaultInstanceForType()

public Tool.ExtensionTool getDefaultInstanceForType()
Returns
Type Description
Tool.ExtensionTool

getDescriptorForType()

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

getName()

public String getName()

Required. The full name of the referenced vertex extension. Formats: projects/{project}/locations/{location}/extensions/{extension}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The full name of the referenced vertex extension. Formats: projects/{project}/locations/{location}/extensions/{extension}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Tool.ExtensionTool other)

public Tool.ExtensionTool.Builder mergeFrom(Tool.ExtensionTool other)
Parameter
Name Description
other Tool.ExtensionTool
Returns
Type Description
Tool.ExtensionTool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Tool.ExtensionTool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ExtensionTool.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setName(String value)

public Tool.ExtensionTool.Builder setName(String value)

Required. The full name of the referenced vertex extension. Formats: projects/{project}/locations/{location}/extensions/{extension}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Tool.ExtensionTool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Tool.ExtensionTool.Builder setNameBytes(ByteString value)

Required. The full name of the referenced vertex extension. Formats: projects/{project}/locations/{location}/extensions/{extension}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Tool.ExtensionTool.Builder

This builder for chaining.