Class ListToolsResponse.Builder (0.94.0)

public static final class ListToolsResponse.Builder extends GeneratedMessage.Builder<ListToolsResponse.Builder> implements ListToolsResponseOrBuilder

The response message for Tools.ListTools.

Protobuf type google.cloud.dialogflow.cx.v3.ListToolsResponse

Static Methods

getDescriptor()

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

Methods

addAllTools(Iterable<? extends Tool> values)

public ListToolsResponse.Builder addAllTools(Iterable<? extends Tool> values)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.Tool>
Returns
Type Description
ListToolsResponse.Builder

addTools(Tool value)

public ListToolsResponse.Builder addTools(Tool value)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameter
Name Description
value Tool
Returns
Type Description
ListToolsResponse.Builder

addTools(Tool.Builder builderForValue)

public ListToolsResponse.Builder addTools(Tool.Builder builderForValue)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

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

addTools(int index, Tool value)

public ListToolsResponse.Builder addTools(int index, Tool value)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameters
Name Description
index int
value Tool
Returns
Type Description
ListToolsResponse.Builder

addTools(int index, Tool.Builder builderForValue)

public ListToolsResponse.Builder addTools(int index, Tool.Builder builderForValue)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameters
Name Description
index int
builderForValue Tool.Builder
Returns
Type Description
ListToolsResponse.Builder

addToolsBuilder()

public Tool.Builder addToolsBuilder()

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Returns
Type Description
Tool.Builder

addToolsBuilder(int index)

public Tool.Builder addToolsBuilder(int index)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameter
Name Description
index int
Returns
Type Description
Tool.Builder

build()

public ListToolsResponse build()
Returns
Type Description
ListToolsResponse

buildPartial()

public ListToolsResponse buildPartial()
Returns
Type Description
ListToolsResponse

clear()

public ListToolsResponse.Builder clear()
Returns
Type Description
ListToolsResponse.Builder
Overrides

clearNextPageToken()

public ListToolsResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ListToolsResponse.Builder

This builder for chaining.

clearTools()

public ListToolsResponse.Builder clearTools()

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Returns
Type Description
ListToolsResponse.Builder

getDefaultInstanceForType()

public ListToolsResponse getDefaultInstanceForType()
Returns
Type Description
ListToolsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTools(int index)

public Tool getTools(int index)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameter
Name Description
index int
Returns
Type Description
Tool

getToolsBuilder(int index)

public Tool.Builder getToolsBuilder(int index)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameter
Name Description
index int
Returns
Type Description
Tool.Builder

getToolsBuilderList()

public List<Tool.Builder> getToolsBuilderList()

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Returns
Type Description
List<Builder>

getToolsCount()

public int getToolsCount()

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Returns
Type Description
int

getToolsList()

public List<Tool> getToolsList()

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Returns
Type Description
List<Tool>

getToolsOrBuilder(int index)

public ToolOrBuilder getToolsOrBuilder(int index)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameter
Name Description
index int
Returns
Type Description
ToolOrBuilder

getToolsOrBuilderList()

public List<? extends ToolOrBuilder> getToolsOrBuilderList()

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.ToolOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListToolsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeTools(int index)

public ListToolsResponse.Builder removeTools(int index)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameter
Name Description
index int
Returns
Type Description
ListToolsResponse.Builder

setNextPageToken(String value)

public ListToolsResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListToolsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListToolsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListToolsResponse.Builder

This builder for chaining.

setTools(int index, Tool value)

public ListToolsResponse.Builder setTools(int index, Tool value)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameters
Name Description
index int
value Tool
Returns
Type Description
ListToolsResponse.Builder

setTools(int index, Tool.Builder builderForValue)

public ListToolsResponse.Builder setTools(int index, Tool.Builder builderForValue)

The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.cx.v3.Tool tools = 1;

Parameters
Name Description
index int
builderForValue Tool.Builder
Returns
Type Description
ListToolsResponse.Builder