Class Assistant.ToolList.Builder (0.90.0)

public static final class Assistant.ToolList.Builder extends GeneratedMessage.Builder<Assistant.ToolList.Builder> implements Assistant.ToolListOrBuilder

The enabled tools on a connector

Protobuf type google.cloud.discoveryengine.v1beta.Assistant.ToolList

Static Methods

getDescriptor()

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

Methods

addAllToolInfo(Iterable<? extends Assistant.ToolInfo> values)

public Assistant.ToolList.Builder addAllToolInfo(Iterable<? extends Assistant.ToolInfo> values)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo>
Returns
Type Description
Assistant.ToolList.Builder

addToolInfo(Assistant.ToolInfo value)

public Assistant.ToolList.Builder addToolInfo(Assistant.ToolInfo value)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
value Assistant.ToolInfo
Returns
Type Description
Assistant.ToolList.Builder

addToolInfo(Assistant.ToolInfo.Builder builderForValue)

public Assistant.ToolList.Builder addToolInfo(Assistant.ToolInfo.Builder builderForValue)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
builderForValue Assistant.ToolInfo.Builder
Returns
Type Description
Assistant.ToolList.Builder

addToolInfo(int index, Assistant.ToolInfo value)

public Assistant.ToolList.Builder addToolInfo(int index, Assistant.ToolInfo value)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameters
Name Description
index int
value Assistant.ToolInfo
Returns
Type Description
Assistant.ToolList.Builder

addToolInfo(int index, Assistant.ToolInfo.Builder builderForValue)

public Assistant.ToolList.Builder addToolInfo(int index, Assistant.ToolInfo.Builder builderForValue)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameters
Name Description
index int
builderForValue Assistant.ToolInfo.Builder
Returns
Type Description
Assistant.ToolList.Builder

addToolInfoBuilder()

public Assistant.ToolInfo.Builder addToolInfoBuilder()

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Returns
Type Description
Assistant.ToolInfo.Builder

addToolInfoBuilder(int index)

public Assistant.ToolInfo.Builder addToolInfoBuilder(int index)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
index int
Returns
Type Description
Assistant.ToolInfo.Builder

build()

public Assistant.ToolList build()
Returns
Type Description
Assistant.ToolList

buildPartial()

public Assistant.ToolList buildPartial()
Returns
Type Description
Assistant.ToolList

clear()

public Assistant.ToolList.Builder clear()
Returns
Type Description
Assistant.ToolList.Builder
Overrides

clearToolInfo()

public Assistant.ToolList.Builder clearToolInfo()

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Returns
Type Description
Assistant.ToolList.Builder

getDefaultInstanceForType()

public Assistant.ToolList getDefaultInstanceForType()
Returns
Type Description
Assistant.ToolList

getDescriptorForType()

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

getToolInfo(int index)

public Assistant.ToolInfo getToolInfo(int index)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
index int
Returns
Type Description
Assistant.ToolInfo

getToolInfoBuilder(int index)

public Assistant.ToolInfo.Builder getToolInfoBuilder(int index)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
index int
Returns
Type Description
Assistant.ToolInfo.Builder

getToolInfoBuilderList()

public List<Assistant.ToolInfo.Builder> getToolInfoBuilderList()

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Returns
Type Description
List<Builder>

getToolInfoCount()

public int getToolInfoCount()

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Returns
Type Description
int

getToolInfoList()

public List<Assistant.ToolInfo> getToolInfoList()

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Returns
Type Description
List<ToolInfo>

getToolInfoOrBuilder(int index)

public Assistant.ToolInfoOrBuilder getToolInfoOrBuilder(int index)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
index int
Returns
Type Description
Assistant.ToolInfoOrBuilder

getToolInfoOrBuilderList()

public List<? extends Assistant.ToolInfoOrBuilder> getToolInfoOrBuilderList()

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Assistant.ToolList other)

public Assistant.ToolList.Builder mergeFrom(Assistant.ToolList other)
Parameter
Name Description
other Assistant.ToolList
Returns
Type Description
Assistant.ToolList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeToolInfo(int index)

public Assistant.ToolList.Builder removeToolInfo(int index)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameter
Name Description
index int
Returns
Type Description
Assistant.ToolList.Builder

setToolInfo(int index, Assistant.ToolInfo value)

public Assistant.ToolList.Builder setToolInfo(int index, Assistant.ToolInfo value)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameters
Name Description
index int
value Assistant.ToolInfo
Returns
Type Description
Assistant.ToolList.Builder

setToolInfo(int index, Assistant.ToolInfo.Builder builderForValue)

public Assistant.ToolList.Builder setToolInfo(int index, Assistant.ToolInfo.Builder builderForValue)

The list of tools with corresponding tool information.

repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1;

Parameters
Name Description
index int
builderForValue Assistant.ToolInfo.Builder
Returns
Type Description
Assistant.ToolList.Builder