Class ListSuggestionsResponse.Builder (4.3.1)

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

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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Suggestion>
Returns
TypeDescription
ListSuggestionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSuggestionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSuggestion
Returns
TypeDescription
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
NameDescription
builderForValueSuggestion.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSuggestion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSuggestion.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Suggestion.Builder

build()

public ListSuggestionsResponse build()
Returns
TypeDescription
ListSuggestionsResponse

buildPartial()

public ListSuggestionsResponse buildPartial()
Returns
TypeDescription
ListSuggestionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListSuggestionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListSuggestionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListSuggestionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListSuggestionsResponse.Builder

clone()

public ListSuggestionsResponse.Builder clone()
Returns
TypeDescription
ListSuggestionsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListSuggestionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSuggestionsResponse

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.SuggestionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSuggestionsResponse other)

public ListSuggestionsResponse.Builder mergeFrom(ListSuggestionsResponse other)
Parameter
NameDescription
otherListSuggestionsResponse
Returns
TypeDescription
ListSuggestionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSuggestionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListSuggestionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListSuggestionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSuggestion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSuggestion.Builder
Returns
TypeDescription
ListSuggestionsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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