Class ListSuggestionsResponse.Builder (4.89.0)

public static final class ListSuggestionsResponse.Builder extends GeneratedMessage.Builder<ListSuggestionsResponse.Builder> implements ListSuggestionsResponseOrBuilder

The response message for Participants.ListSuggestions.

Protobuf type google.cloud.dialogflow.v2beta1.ListSuggestionsResponse

Static Methods

getDescriptor()

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

Methods

addAllSuggestions(Iterable<? extends Suggestion> values)

public ListSuggestionsResponse.Builder addAllSuggestions(Iterable<? extends Suggestion> values)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.Suggestion>
Returns
Type Description
ListSuggestionsResponse.Builder

addSuggestions(Suggestion value)

public ListSuggestionsResponse.Builder addSuggestions(Suggestion value)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
value Suggestion
Returns
Type Description
ListSuggestionsResponse.Builder

addSuggestions(Suggestion.Builder builderForValue)

public ListSuggestionsResponse.Builder addSuggestions(Suggestion.Builder builderForValue)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
builderForValue Suggestion.Builder
Returns
Type Description
ListSuggestionsResponse.Builder

addSuggestions(int index, Suggestion value)

public ListSuggestionsResponse.Builder addSuggestions(int index, Suggestion value)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameters
Name Description
index int
value Suggestion
Returns
Type Description
ListSuggestionsResponse.Builder

addSuggestions(int index, Suggestion.Builder builderForValue)

public ListSuggestionsResponse.Builder addSuggestions(int index, Suggestion.Builder builderForValue)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameters
Name Description
index int
builderForValue Suggestion.Builder
Returns
Type Description
ListSuggestionsResponse.Builder

addSuggestionsBuilder()

public Suggestion.Builder addSuggestionsBuilder()

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Returns
Type Description
Suggestion.Builder

addSuggestionsBuilder(int index)

public Suggestion.Builder addSuggestionsBuilder(int index)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
Suggestion.Builder

build()

public ListSuggestionsResponse build()
Returns
Type Description
ListSuggestionsResponse

buildPartial()

public ListSuggestionsResponse buildPartial()
Returns
Type Description
ListSuggestionsResponse

clear()

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

clearNextPageToken()

public ListSuggestionsResponse.Builder clearNextPageToken()

Optional. 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
ListSuggestionsResponse.Builder

This builder for chaining.

clearSuggestions()

public ListSuggestionsResponse.Builder clearSuggestions()

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Returns
Type Description
ListSuggestionsResponse.Builder

getDefaultInstanceForType()

public ListSuggestionsResponse getDefaultInstanceForType()
Returns
Type Description
ListSuggestionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Optional. 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()

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

getSuggestions(int index)

public Suggestion getSuggestions(int index)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
Suggestion

getSuggestionsBuilder(int index)

public Suggestion.Builder getSuggestionsBuilder(int index)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
Suggestion.Builder

getSuggestionsBuilderList()

public List<Suggestion.Builder> getSuggestionsBuilderList()

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Returns
Type Description
List<Builder>

getSuggestionsCount()

public int getSuggestionsCount()

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Returns
Type Description
int

getSuggestionsList()

public List<Suggestion> getSuggestionsList()

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Returns
Type Description
List<Suggestion>

getSuggestionsOrBuilder(int index)

public SuggestionOrBuilder getSuggestionsOrBuilder(int index)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
SuggestionOrBuilder

getSuggestionsOrBuilderList()

public List<? extends SuggestionOrBuilder> getSuggestionsOrBuilderList()

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.SuggestionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSuggestionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeSuggestions(int index)

public ListSuggestionsResponse.Builder removeSuggestions(int index)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSuggestionsResponse.Builder

setNextPageToken(String value)

public ListSuggestionsResponse.Builder setNextPageToken(String value)

Optional. 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
ListSuggestionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSuggestionsResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. 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
ListSuggestionsResponse.Builder

This builder for chaining.

setSuggestions(int index, Suggestion value)

public ListSuggestionsResponse.Builder setSuggestions(int index, Suggestion value)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameters
Name Description
index int
value Suggestion
Returns
Type Description
ListSuggestionsResponse.Builder

setSuggestions(int index, Suggestion.Builder builderForValue)

public ListSuggestionsResponse.Builder setSuggestions(int index, Suggestion.Builder builderForValue)

Required. The list of suggestions. There will be a maximum number of items returned based on the page_size field in the request. suggestions is sorted by create_time in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion suggestions = 1;

Parameters
Name Description
index int
builderForValue Suggestion.Builder
Returns
Type Description
ListSuggestionsResponse.Builder