public static final class SearchResponse.GuidedSearchResult extends GeneratedMessageV3 implements SearchResponse.GuidedSearchResultOrBuilder
Guided search result. The guided search helps user to refine the search
results and narrow down to the real needs from a broaded search results.
Protobuf type google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
FOLLOW_UP_QUESTIONS_FIELD_NUMBER
public static final int FOLLOW_UP_QUESTIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REFINEMENT_ATTRIBUTES_FIELD_NUMBER
public static final int REFINEMENT_ATTRIBUTES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SearchResponse.GuidedSearchResult getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SearchResponse.GuidedSearchResult.Builder newBuilder()
newBuilder(SearchResponse.GuidedSearchResult prototype)
public static SearchResponse.GuidedSearchResult.Builder newBuilder(SearchResponse.GuidedSearchResult prototype)
public static SearchResponse.GuidedSearchResult parseDelimitedFrom(InputStream input)
public static SearchResponse.GuidedSearchResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SearchResponse.GuidedSearchResult parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.GuidedSearchResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SearchResponse.GuidedSearchResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.GuidedSearchResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.GuidedSearchResult parseFrom(CodedInputStream input)
public static SearchResponse.GuidedSearchResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.GuidedSearchResult parseFrom(InputStream input)
public static SearchResponse.GuidedSearchResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SearchResponse.GuidedSearchResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.GuidedSearchResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SearchResponse.GuidedSearchResult> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SearchResponse.GuidedSearchResult getDefaultInstanceForType()
getFollowUpQuestions(int index)
public String getFollowUpQuestions(int index)
Suggested follow-up questions.
repeated string follow_up_questions = 2;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The followUpQuestions at the given index.
|
getFollowUpQuestionsBytes(int index)
public ByteString getFollowUpQuestionsBytes(int index)
Suggested follow-up questions.
repeated string follow_up_questions = 2;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the followUpQuestions at the given index.
|
getFollowUpQuestionsCount()
public int getFollowUpQuestionsCount()
Suggested follow-up questions.
repeated string follow_up_questions = 2;
Returns |
Type |
Description |
int |
The count of followUpQuestions.
|
getFollowUpQuestionsList()
public ProtocolStringList getFollowUpQuestionsList()
Suggested follow-up questions.
repeated string follow_up_questions = 2;
getParserForType()
public Parser<SearchResponse.GuidedSearchResult> getParserForType()
Overrides
getRefinementAttributes(int index)
public SearchResponse.GuidedSearchResult.RefinementAttribute getRefinementAttributes(int index)
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;
Parameter |
Name |
Description |
index |
int
|
getRefinementAttributesCount()
public int getRefinementAttributesCount()
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;
Returns |
Type |
Description |
int |
|
getRefinementAttributesList()
public List<SearchResponse.GuidedSearchResult.RefinementAttribute> getRefinementAttributesList()
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;
getRefinementAttributesOrBuilder(int index)
public SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder(int index)
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;
Parameter |
Name |
Description |
index |
int
|
getRefinementAttributesOrBuilderList()
public List<? extends SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder> getRefinementAttributesOrBuilderList()
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1alpha.SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SearchResponse.GuidedSearchResult.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchResponse.GuidedSearchResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SearchResponse.GuidedSearchResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides