Class ListAgentsResponse.Builder (0.54.0)

public static final class ListAgentsResponse.Builder extends GeneratedMessageV3.Builder<ListAgentsResponse.Builder> implements ListAgentsResponseOrBuilder

The response message for Agents.ListAgents.

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

Static Methods

getDescriptor()

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

Methods

addAgents(Agent value)

public ListAgentsResponse.Builder addAgents(Agent value)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameter
Name Description
value Agent
Returns
Type Description
ListAgentsResponse.Builder

addAgents(Agent.Builder builderForValue)

public ListAgentsResponse.Builder addAgents(Agent.Builder builderForValue)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameter
Name Description
builderForValue Agent.Builder
Returns
Type Description
ListAgentsResponse.Builder

addAgents(int index, Agent value)

public ListAgentsResponse.Builder addAgents(int index, Agent value)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameters
Name Description
index int
value Agent
Returns
Type Description
ListAgentsResponse.Builder

addAgents(int index, Agent.Builder builderForValue)

public ListAgentsResponse.Builder addAgents(int index, Agent.Builder builderForValue)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameters
Name Description
index int
builderForValue Agent.Builder
Returns
Type Description
ListAgentsResponse.Builder

addAgentsBuilder()

public Agent.Builder addAgentsBuilder()

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Returns
Type Description
Agent.Builder

addAgentsBuilder(int index)

public Agent.Builder addAgentsBuilder(int index)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameter
Name Description
index int
Returns
Type Description
Agent.Builder

addAllAgents(Iterable<? extends Agent> values)

public ListAgentsResponse.Builder addAllAgents(Iterable<? extends Agent> values)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAgentsResponse build()
Returns
Type Description
ListAgentsResponse

buildPartial()

public ListAgentsResponse buildPartial()
Returns
Type Description
ListAgentsResponse

clear()

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

clearAgents()

public ListAgentsResponse.Builder clearAgents()

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Returns
Type Description
ListAgentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListAgentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListAgentsResponse.Builder
Overrides

clearNextPageToken()

public ListAgentsResponse.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
ListAgentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListAgentsResponse.Builder clone()
Returns
Type Description
ListAgentsResponse.Builder
Overrides

getAgents(int index)

public Agent getAgents(int index)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameter
Name Description
index int
Returns
Type Description
Agent

getAgentsBuilder(int index)

public Agent.Builder getAgentsBuilder(int index)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameter
Name Description
index int
Returns
Type Description
Agent.Builder

getAgentsBuilderList()

public List<Agent.Builder> getAgentsBuilderList()

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Returns
Type Description
List<Builder>

getAgentsCount()

public int getAgentsCount()

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Returns
Type Description
int

getAgentsList()

public List<Agent> getAgentsList()

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Returns
Type Description
List<Agent>

getAgentsOrBuilder(int index)

public AgentOrBuilder getAgentsOrBuilder(int index)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameter
Name Description
index int
Returns
Type Description
AgentOrBuilder

getAgentsOrBuilderList()

public List<? extends AgentOrBuilder> getAgentsOrBuilderList()

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

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

getDefaultInstanceForType()

public ListAgentsResponse getDefaultInstanceForType()
Returns
Type Description
ListAgentsResponse

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListAgentsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAgents(int index)

public ListAgentsResponse.Builder removeAgents(int index)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAgentsResponse.Builder

setAgents(int index, Agent value)

public ListAgentsResponse.Builder setAgents(int index, Agent value)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameters
Name Description
index int
value Agent
Returns
Type Description
ListAgentsResponse.Builder

setAgents(int index, Agent.Builder builderForValue)

public ListAgentsResponse.Builder setAgents(int index, Agent.Builder builderForValue)

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

repeated .google.cloud.dialogflow.cx.v3.Agent agents = 1;

Parameters
Name Description
index int
builderForValue Agent.Builder
Returns
Type Description
ListAgentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListAgentsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListAgentsResponse.Builder
Overrides

setNextPageToken(String value)

public ListAgentsResponse.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
ListAgentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAgentsResponse.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
ListAgentsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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