Class Tool.ExtensionTool.Builder (0.63.0)

public static final class Tool.ExtensionTool.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public Tool.ExtensionTool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Tool.ExtensionTool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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