Class SearchAgentsResponse.Builder (4.6.0)

public static final class SearchAgentsResponse.Builder extends GeneratedMessageV3.Builder<SearchAgentsResponse.Builder> implements SearchAgentsResponseOrBuilder

The response message for Agents.SearchAgents.

Protobuf type google.cloud.dialogflow.v2.SearchAgentsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAgents(Agent value)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameter
NameDescription
valueAgent
Returns
TypeDescription
SearchAgentsResponse.Builder

addAgents(Agent.Builder builderForValue)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameter
NameDescription
builderForValueAgent.Builder
Returns
TypeDescription
SearchAgentsResponse.Builder

addAgents(int index, Agent value)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameters
NameDescription
indexint
valueAgent
Returns
TypeDescription
SearchAgentsResponse.Builder

addAgents(int index, Agent.Builder builderForValue)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameters
NameDescription
indexint
builderForValueAgent.Builder
Returns
TypeDescription
SearchAgentsResponse.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.v2.Agent agents = 1;

Returns
TypeDescription
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.v2.Agent agents = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Agent.Builder

addAllAgents(Iterable<? extends Agent> values)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.Agent>
Returns
TypeDescription
SearchAgentsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchAgentsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

build()

public SearchAgentsResponse build()
Returns
TypeDescription
SearchAgentsResponse

buildPartial()

public SearchAgentsResponse buildPartial()
Returns
TypeDescription
SearchAgentsResponse

clear()

public SearchAgentsResponse.Builder clear()
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

clearAgents()

public SearchAgentsResponse.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.v2.Agent agents = 1;

Returns
TypeDescription
SearchAgentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public SearchAgentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

clearNextPageToken()

public SearchAgentsResponse.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
TypeDescription
SearchAgentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchAgentsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

clone()

public SearchAgentsResponse.Builder clone()
Returns
TypeDescription
SearchAgentsResponse.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.v2.Agent agents = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.Agent agents = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.Agent agents = 1;

Returns
TypeDescription
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.v2.Agent agents = 1;

Returns
TypeDescription
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.v2.Agent agents = 1;

Returns
TypeDescription
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.v2.Agent agents = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2.Agent agents = 1;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.AgentOrBuilder>

getDefaultInstanceForType()

public SearchAgentsResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchAgentsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchAgentsResponse other)

public SearchAgentsResponse.Builder mergeFrom(SearchAgentsResponse other)
Parameter
NameDescription
otherSearchAgentsResponse
Returns
TypeDescription
SearchAgentsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchAgentsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchAgentsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchAgentsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

removeAgents(int index)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchAgentsResponse.Builder

setAgents(int index, Agent value)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameters
NameDescription
indexint
valueAgent
Returns
TypeDescription
SearchAgentsResponse.Builder

setAgents(int index, Agent.Builder builderForValue)

public SearchAgentsResponse.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.v2.Agent agents = 1;

Parameters
NameDescription
indexint
builderForValueAgent.Builder
Returns
TypeDescription
SearchAgentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchAgentsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

setNextPageToken(String value)

public SearchAgentsResponse.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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
SearchAgentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchAgentsResponse.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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
SearchAgentsResponse.Builder

This builder for chaining.

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

public SearchAgentsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchAgentsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchAgentsResponse.Builder
Overrides