Class ListSuggestionsResponse.Builder (4.30.0)

public static final class ListSuggestionsResponse.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ListSuggestionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSuggestionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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