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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSuggestionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
build()
public ListSuggestionsResponse build()
Returns
buildPartial()
public ListSuggestionsResponse buildPartial()
Returns
clear()
public ListSuggestionsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSuggestionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSuggestionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ListSuggestionsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListSuggestionsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListSuggestionsResponse other)
public ListSuggestionsResponse.Builder mergeFrom(ListSuggestionsResponse other)
Parameter
Returns
public ListSuggestionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListSuggestionsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSuggestionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public ListSuggestionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSuggestionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSuggestionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides