Class AdvancedCompleteQueryResponse.Builder (0.50.0)

public static final class AdvancedCompleteQueryResponse.Builder extends GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.Builder> implements AdvancedCompleteQueryResponseOrBuilder

Response message for CompletionService.AdvancedCompleteQuery method.

Protobuf type google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse

Static Methods

getDescriptor()

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

Methods

addAllContentSuggestions(Iterable<? extends AdvancedCompleteQueryResponse.ContentSuggestion> values)

public AdvancedCompleteQueryResponse.Builder addAllContentSuggestions(Iterable<? extends AdvancedCompleteQueryResponse.ContentSuggestion> values)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion>
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addAllPeopleSuggestions(Iterable<? extends AdvancedCompleteQueryResponse.PersonSuggestion> values)

public AdvancedCompleteQueryResponse.Builder addAllPeopleSuggestions(Iterable<? extends AdvancedCompleteQueryResponse.PersonSuggestion> values)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion>
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addAllQuerySuggestions(Iterable<? extends AdvancedCompleteQueryResponse.QuerySuggestion> values)

public AdvancedCompleteQueryResponse.Builder addAllQuerySuggestions(Iterable<? extends AdvancedCompleteQueryResponse.QuerySuggestion> values)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion>
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addAllRecentSearchSuggestions(Iterable<? extends AdvancedCompleteQueryResponse.RecentSearchSuggestion> values)

public AdvancedCompleteQueryResponse.Builder addAllRecentSearchSuggestions(Iterable<? extends AdvancedCompleteQueryResponse.RecentSearchSuggestion> values)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion>
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addContentSuggestions(AdvancedCompleteQueryResponse.ContentSuggestion value)

public AdvancedCompleteQueryResponse.Builder addContentSuggestions(AdvancedCompleteQueryResponse.ContentSuggestion value)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
value AdvancedCompleteQueryResponse.ContentSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addContentSuggestions(AdvancedCompleteQueryResponse.ContentSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addContentSuggestions(AdvancedCompleteQueryResponse.ContentSuggestion.Builder builderForValue)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
builderForValue AdvancedCompleteQueryResponse.ContentSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion value)

public AdvancedCompleteQueryResponse.Builder addContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion value)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.ContentSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion.Builder builderForValue)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.ContentSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addContentSuggestionsBuilder()

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder addContentSuggestionsBuilder()

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

addContentSuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder addContentSuggestionsBuilder(int index)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

addPeopleSuggestions(AdvancedCompleteQueryResponse.PersonSuggestion value)

public AdvancedCompleteQueryResponse.Builder addPeopleSuggestions(AdvancedCompleteQueryResponse.PersonSuggestion value)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
value AdvancedCompleteQueryResponse.PersonSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addPeopleSuggestions(AdvancedCompleteQueryResponse.PersonSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addPeopleSuggestions(AdvancedCompleteQueryResponse.PersonSuggestion.Builder builderForValue)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
builderForValue AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion value)

public AdvancedCompleteQueryResponse.Builder addPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion value)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.PersonSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion.Builder builderForValue)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addPeopleSuggestionsBuilder()

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder addPeopleSuggestionsBuilder()

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

addPeopleSuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder addPeopleSuggestionsBuilder(int index)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

addQuerySuggestions(AdvancedCompleteQueryResponse.QuerySuggestion value)

public AdvancedCompleteQueryResponse.Builder addQuerySuggestions(AdvancedCompleteQueryResponse.QuerySuggestion value)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
value AdvancedCompleteQueryResponse.QuerySuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addQuerySuggestions(AdvancedCompleteQueryResponse.QuerySuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addQuerySuggestions(AdvancedCompleteQueryResponse.QuerySuggestion.Builder builderForValue)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
builderForValue AdvancedCompleteQueryResponse.QuerySuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion value)

public AdvancedCompleteQueryResponse.Builder addQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion value)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.QuerySuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion.Builder builderForValue)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.QuerySuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addQuerySuggestionsBuilder()

public AdvancedCompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
Type Description
AdvancedCompleteQueryResponse.QuerySuggestion.Builder

addQuerySuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder(int index)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.QuerySuggestion.Builder

addRecentSearchSuggestions(AdvancedCompleteQueryResponse.RecentSearchSuggestion value)

public AdvancedCompleteQueryResponse.Builder addRecentSearchSuggestions(AdvancedCompleteQueryResponse.RecentSearchSuggestion value)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
value AdvancedCompleteQueryResponse.RecentSearchSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addRecentSearchSuggestions(AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addRecentSearchSuggestions(AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder builderForValue)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
builderForValue AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion value)

public AdvancedCompleteQueryResponse.Builder addRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion value)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.RecentSearchSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder addRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder builderForValue)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

addRecentSearchSuggestionsBuilder()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder addRecentSearchSuggestionsBuilder()

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

addRecentSearchSuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder addRecentSearchSuggestionsBuilder(int index)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdvancedCompleteQueryResponse build()
Returns
Type Description
AdvancedCompleteQueryResponse

buildPartial()

public AdvancedCompleteQueryResponse buildPartial()
Returns
Type Description
AdvancedCompleteQueryResponse

clear()

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

clearContentSuggestions()

public AdvancedCompleteQueryResponse.Builder clearContentSuggestions()

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Returns
Type Description
AdvancedCompleteQueryResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AdvancedCompleteQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdvancedCompleteQueryResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPeopleSuggestions()

public AdvancedCompleteQueryResponse.Builder clearPeopleSuggestions()

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Returns
Type Description
AdvancedCompleteQueryResponse.Builder

clearQuerySuggestions()

public AdvancedCompleteQueryResponse.Builder clearQuerySuggestions()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
Type Description
AdvancedCompleteQueryResponse.Builder

clearRecentSearchSuggestions()

public AdvancedCompleteQueryResponse.Builder clearRecentSearchSuggestions()

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Returns
Type Description
AdvancedCompleteQueryResponse.Builder

clearTailMatchTriggered()

public AdvancedCompleteQueryResponse.Builder clearTailMatchTriggered()

True if the returned suggestions are all tail suggestions.

For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.

bool tail_match_triggered = 2;

Returns
Type Description
AdvancedCompleteQueryResponse.Builder

This builder for chaining.

clone()

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

getContentSuggestions(int index)

public AdvancedCompleteQueryResponse.ContentSuggestion getContentSuggestions(int index)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion

getContentSuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder getContentSuggestionsBuilder(int index)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

getContentSuggestionsBuilderList()

public List<AdvancedCompleteQueryResponse.ContentSuggestion.Builder> getContentSuggestionsBuilderList()

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Returns
Type Description
List<Builder>

getContentSuggestionsCount()

public int getContentSuggestionsCount()

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Returns
Type Description
int

getContentSuggestionsList()

public List<AdvancedCompleteQueryResponse.ContentSuggestion> getContentSuggestionsList()

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Returns
Type Description
List<ContentSuggestion>

getContentSuggestionsOrBuilder(int index)

public AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder getContentSuggestionsOrBuilder(int index)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder

getContentSuggestionsOrBuilderList()

public List<? extends AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder> getContentSuggestionsOrBuilderList()

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder>

getDefaultInstanceForType()

public AdvancedCompleteQueryResponse getDefaultInstanceForType()
Returns
Type Description
AdvancedCompleteQueryResponse

getDescriptorForType()

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

getPeopleSuggestions(int index)

public AdvancedCompleteQueryResponse.PersonSuggestion getPeopleSuggestions(int index)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion

getPeopleSuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder getPeopleSuggestionsBuilder(int index)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

getPeopleSuggestionsBuilderList()

public List<AdvancedCompleteQueryResponse.PersonSuggestion.Builder> getPeopleSuggestionsBuilderList()

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Returns
Type Description
List<Builder>

getPeopleSuggestionsCount()

public int getPeopleSuggestionsCount()

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Returns
Type Description
int

getPeopleSuggestionsList()

public List<AdvancedCompleteQueryResponse.PersonSuggestion> getPeopleSuggestionsList()

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Returns
Type Description
List<PersonSuggestion>

getPeopleSuggestionsOrBuilder(int index)

public AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder getPeopleSuggestionsOrBuilder(int index)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder

getPeopleSuggestionsOrBuilderList()

public List<? extends AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder> getPeopleSuggestionsOrBuilderList()

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder>

getQuerySuggestions(int index)

public AdvancedCompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.QuerySuggestion

getQuerySuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.QuerySuggestion.Builder getQuerySuggestionsBuilder(int index)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.QuerySuggestion.Builder

getQuerySuggestionsBuilderList()

public List<AdvancedCompleteQueryResponse.QuerySuggestion.Builder> getQuerySuggestionsBuilderList()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
Type Description
List<Builder>

getQuerySuggestionsCount()

public int getQuerySuggestionsCount()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
Type Description
int

getQuerySuggestionsList()

public List<AdvancedCompleteQueryResponse.QuerySuggestion> getQuerySuggestionsList()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
Type Description
List<QuerySuggestion>

getQuerySuggestionsOrBuilder(int index)

public AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder(int index)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder

getQuerySuggestionsOrBuilderList()

public List<? extends AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder> getQuerySuggestionsOrBuilderList()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder>

getRecentSearchSuggestions(int index)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion getRecentSearchSuggestions(int index)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion

getRecentSearchSuggestionsBuilder(int index)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder getRecentSearchSuggestionsBuilder(int index)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

getRecentSearchSuggestionsBuilderList()

public List<AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder> getRecentSearchSuggestionsBuilderList()

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Returns
Type Description
List<Builder>

getRecentSearchSuggestionsCount()

public int getRecentSearchSuggestionsCount()

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Returns
Type Description
int

getRecentSearchSuggestionsList()

public List<AdvancedCompleteQueryResponse.RecentSearchSuggestion> getRecentSearchSuggestionsList()

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Returns
Type Description
List<RecentSearchSuggestion>

getRecentSearchSuggestionsOrBuilder(int index)

public AdvancedCompleteQueryResponse.RecentSearchSuggestionOrBuilder getRecentSearchSuggestionsOrBuilder(int index)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestionOrBuilder

getRecentSearchSuggestionsOrBuilderList()

public List<? extends AdvancedCompleteQueryResponse.RecentSearchSuggestionOrBuilder> getRecentSearchSuggestionsOrBuilderList()

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestionOrBuilder>

getTailMatchTriggered()

public boolean getTailMatchTriggered()

True if the returned suggestions are all tail suggestions.

For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.

bool tail_match_triggered = 2;

Returns
Type Description
boolean

The tailMatchTriggered.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdvancedCompleteQueryResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdvancedCompleteQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdvancedCompleteQueryResponse.Builder
Overrides

removeContentSuggestions(int index)

public AdvancedCompleteQueryResponse.Builder removeContentSuggestions(int index)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

removePeopleSuggestions(int index)

public AdvancedCompleteQueryResponse.Builder removePeopleSuggestions(int index)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

removeQuerySuggestions(int index)

public AdvancedCompleteQueryResponse.Builder removeQuerySuggestions(int index)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

removeRecentSearchSuggestions(int index)

public AdvancedCompleteQueryResponse.Builder removeRecentSearchSuggestions(int index)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameter
Name Description
index int
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion value)

public AdvancedCompleteQueryResponse.Builder setContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion value)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.ContentSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder setContentSuggestions(int index, AdvancedCompleteQueryResponse.ContentSuggestion.Builder builderForValue)

Results of the matched content suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion content_suggestions = 4;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.ContentSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion value)

public AdvancedCompleteQueryResponse.Builder setPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion value)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.PersonSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder setPeopleSuggestions(int index, AdvancedCompleteQueryResponse.PersonSuggestion.Builder builderForValue)

Results of the matched people suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion people_suggestions = 3;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion value)

public AdvancedCompleteQueryResponse.Builder setQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion value)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.QuerySuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder setQuerySuggestions(int index, AdvancedCompleteQueryResponse.QuerySuggestion.Builder builderForValue)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.QuerySuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion value)

public AdvancedCompleteQueryResponse.Builder setRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion value)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameters
Name Description
index int
value AdvancedCompleteQueryResponse.RecentSearchSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

setRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder builderForValue)

public AdvancedCompleteQueryResponse.Builder setRecentSearchSuggestions(int index, AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder builderForValue)

Results of the matched "recent search" suggestions. The result list is ordered and the first result is the top suggestion.

repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion recent_search_suggestions = 5;

Parameters
Name Description
index int
builderForValue AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.Builder

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

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

setTailMatchTriggered(boolean value)

public AdvancedCompleteQueryResponse.Builder setTailMatchTriggered(boolean value)

True if the returned suggestions are all tail suggestions.

For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.

bool tail_match_triggered = 2;

Parameter
Name Description
value boolean

The tailMatchTriggered to set.

Returns
Type Description
AdvancedCompleteQueryResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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