Package com.google.cloud.retail.v2beta
Class SearchResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.retail.v2beta.SearchResponse
-
- All Implemented Interfaces:
SearchResponseOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class SearchResponse extends com.google.protobuf.GeneratedMessageV3 implements SearchResponseOrBuilder
Response message for [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] method.
Protobuf typegoogle.cloud.retail.v2beta.SearchResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchResponse.Builder
Response message for [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] method.static class
SearchResponse.Facet
A facet result.static interface
SearchResponse.FacetOrBuilder
static class
SearchResponse.QueryExpansionInfo
Information describing query expansion including whether expansion has occurred.static interface
SearchResponse.QueryExpansionInfoOrBuilder
static class
SearchResponse.SearchResult
Represents the search results.static interface
SearchResponse.SearchResultOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
APPLIED_CONTROLS_FIELD_NUMBER
static int
ATTRIBUTION_TOKEN_FIELD_NUMBER
static int
CORRECTED_QUERY_FIELD_NUMBER
static int
EXPERIMENT_INFO_FIELD_NUMBER
static int
FACETS_FIELD_NUMBER
static int
INVALID_CONDITION_BOOST_SPECS_FIELD_NUMBER
static int
NEXT_PAGE_TOKEN_FIELD_NUMBER
static int
QUERY_EXPANSION_INFO_FIELD_NUMBER
static int
REDIRECT_URI_FIELD_NUMBER
static int
RESULTS_FIELD_NUMBER
static int
TOTAL_SIZE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAppliedControls(int index)
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).com.google.protobuf.ByteString
getAppliedControlsBytes(int index)
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).int
getAppliedControlsCount()
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).com.google.protobuf.ProtocolStringList
getAppliedControlsList()
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).String
getAttributionToken()
A unique search token.com.google.protobuf.ByteString
getAttributionTokenBytes()
A unique search token.String
getCorrectedQuery()
Contains the spell corrected query, if found.com.google.protobuf.ByteString
getCorrectedQueryBytes()
Contains the spell corrected query, if found.static SearchResponse
getDefaultInstance()
SearchResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
ExperimentInfo
getExperimentInfo(int index)
Metadata related to A/B testing [Experiment][] associated with this response.int
getExperimentInfoCount()
Metadata related to A/B testing [Experiment][] associated with this response.List<ExperimentInfo>
getExperimentInfoList()
Metadata related to A/B testing [Experiment][] associated with this response.ExperimentInfoOrBuilder
getExperimentInfoOrBuilder(int index)
Metadata related to A/B testing [Experiment][] associated with this response.List<? extends ExperimentInfoOrBuilder>
getExperimentInfoOrBuilderList()
Metadata related to A/B testing [Experiment][] associated with this response.SearchResponse.Facet
getFacets(int index)
Results of facets requested by user.int
getFacetsCount()
Results of facets requested by user.List<SearchResponse.Facet>
getFacetsList()
Results of facets requested by user.SearchResponse.FacetOrBuilder
getFacetsOrBuilder(int index)
Results of facets requested by user.List<? extends SearchResponse.FacetOrBuilder>
getFacetsOrBuilderList()
Results of facets requested by user.SearchRequest.BoostSpec.ConditionBoostSpec
getInvalidConditionBoostSpecs(int index)
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.int
getInvalidConditionBoostSpecsCount()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.List<SearchRequest.BoostSpec.ConditionBoostSpec>
getInvalidConditionBoostSpecsList()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder
getInvalidConditionBoostSpecsOrBuilder(int index)
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder>
getInvalidConditionBoostSpecsOrBuilderList()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.String
getNextPageToken()
A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] to retrieve the next page.com.google.protobuf.ByteString
getNextPageTokenBytes()
A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] to retrieve the next page.com.google.protobuf.Parser<SearchResponse>
getParserForType()
SearchResponse.QueryExpansionInfo
getQueryExpansionInfo()
Query expansion information for the returned results.SearchResponse.QueryExpansionInfoOrBuilder
getQueryExpansionInfoOrBuilder()
Query expansion information for the returned results.String
getRedirectUri()
The URI of a customer-defined redirect page.com.google.protobuf.ByteString
getRedirectUriBytes()
The URI of a customer-defined redirect page.SearchResponse.SearchResult
getResults(int index)
A list of matched items.int
getResultsCount()
A list of matched items.List<SearchResponse.SearchResult>
getResultsList()
A list of matched items.SearchResponse.SearchResultOrBuilder
getResultsOrBuilder(int index)
A list of matched items.List<? extends SearchResponse.SearchResultOrBuilder>
getResultsOrBuilderList()
A list of matched items.int
getSerializedSize()
int
getTotalSize()
The estimated total count of matched items irrespective of pagination.int
hashCode()
boolean
hasQueryExpansionInfo()
Query expansion information for the returned results.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static SearchResponse.Builder
newBuilder()
static SearchResponse.Builder
newBuilder(SearchResponse prototype)
SearchResponse.Builder
newBuilderForType()
protected SearchResponse.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SearchResponse
parseDelimitedFrom(InputStream input)
static SearchResponse
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchResponse
parseFrom(byte[] data)
static SearchResponse
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchResponse
parseFrom(com.google.protobuf.ByteString data)
static SearchResponse
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchResponse
parseFrom(com.google.protobuf.CodedInputStream input)
static SearchResponse
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchResponse
parseFrom(InputStream input)
static SearchResponse
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchResponse
parseFrom(ByteBuffer data)
static SearchResponse
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SearchResponse>
parser()
SearchResponse.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
RESULTS_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FACETS_FIELD_NUMBER
public static final int FACETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_SIZE_FIELD_NUMBER
public static final int TOTAL_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CORRECTED_QUERY_FIELD_NUMBER
public static final int CORRECTED_QUERY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTION_TOKEN_FIELD_NUMBER
public static final int ATTRIBUTION_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_PAGE_TOKEN_FIELD_NUMBER
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_EXPANSION_INFO_FIELD_NUMBER
public static final int QUERY_EXPANSION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REDIRECT_URI_FIELD_NUMBER
public static final int REDIRECT_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APPLIED_CONTROLS_FIELD_NUMBER
public static final int APPLIED_CONTROLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INVALID_CONDITION_BOOST_SPECS_FIELD_NUMBER
public static final int INVALID_CONDITION_BOOST_SPECS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPERIMENT_INFO_FIELD_NUMBER
public static final int EXPERIMENT_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getResultsList
public List<SearchResponse.SearchResult> getResultsList()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
- Specified by:
getResultsList
in interfaceSearchResponseOrBuilder
-
getResultsOrBuilderList
public List<? extends SearchResponse.SearchResultOrBuilder> getResultsOrBuilderList()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
- Specified by:
getResultsOrBuilderList
in interfaceSearchResponseOrBuilder
-
getResultsCount
public int getResultsCount()
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
- Specified by:
getResultsCount
in interfaceSearchResponseOrBuilder
-
getResults
public SearchResponse.SearchResult getResults(int index)
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
- Specified by:
getResults
in interfaceSearchResponseOrBuilder
-
getResultsOrBuilder
public SearchResponse.SearchResultOrBuilder getResultsOrBuilder(int index)
A list of matched items. The order represents the ranking.
repeated .google.cloud.retail.v2beta.SearchResponse.SearchResult results = 1;
- Specified by:
getResultsOrBuilder
in interfaceSearchResponseOrBuilder
-
getFacetsList
public List<SearchResponse.Facet> getFacetsList()
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
- Specified by:
getFacetsList
in interfaceSearchResponseOrBuilder
-
getFacetsOrBuilderList
public List<? extends SearchResponse.FacetOrBuilder> getFacetsOrBuilderList()
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
- Specified by:
getFacetsOrBuilderList
in interfaceSearchResponseOrBuilder
-
getFacetsCount
public int getFacetsCount()
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
- Specified by:
getFacetsCount
in interfaceSearchResponseOrBuilder
-
getFacets
public SearchResponse.Facet getFacets(int index)
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
- Specified by:
getFacets
in interfaceSearchResponseOrBuilder
-
getFacetsOrBuilder
public SearchResponse.FacetOrBuilder getFacetsOrBuilder(int index)
Results of facets requested by user.
repeated .google.cloud.retail.v2beta.SearchResponse.Facet facets = 2;
- Specified by:
getFacetsOrBuilder
in interfaceSearchResponseOrBuilder
-
getTotalSize
public int getTotalSize()
The estimated total count of matched items irrespective of pagination. The count of [results][google.cloud.retail.v2beta.SearchResponse.results] returned by pagination may be less than the [total_size][google.cloud.retail.v2beta.SearchResponse.total_size] that matches.
int32 total_size = 3;
- Specified by:
getTotalSize
in interfaceSearchResponseOrBuilder
- Returns:
- The totalSize.
-
getCorrectedQuery
public String getCorrectedQuery()
Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
string corrected_query = 4;
- Specified by:
getCorrectedQuery
in interfaceSearchResponseOrBuilder
- Returns:
- The correctedQuery.
-
getCorrectedQueryBytes
public com.google.protobuf.ByteString getCorrectedQueryBytes()
Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
string corrected_query = 4;
- Specified by:
getCorrectedQueryBytes
in interfaceSearchResponseOrBuilder
- Returns:
- The bytes for correctedQuery.
-
getAttributionToken
public String getAttributionToken()
A unique search token. This should be included in the [UserEvent][google.cloud.retail.v2beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.
string attribution_token = 5;
- Specified by:
getAttributionToken
in interfaceSearchResponseOrBuilder
- Returns:
- The attributionToken.
-
getAttributionTokenBytes
public com.google.protobuf.ByteString getAttributionTokenBytes()
A unique search token. This should be included in the [UserEvent][google.cloud.retail.v2beta.UserEvent] logs resulting from this search, which enables accurate attribution of search model performance.
string attribution_token = 5;
- Specified by:
getAttributionTokenBytes
in interfaceSearchResponseOrBuilder
- Returns:
- The bytes for attributionToken.
-
getNextPageToken
public String getNextPageToken()
A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 6;
- Specified by:
getNextPageToken
in interfaceSearchResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()
A token that can be sent as [SearchRequest.page_token][google.cloud.retail.v2beta.SearchRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 6;
- Specified by:
getNextPageTokenBytes
in interfaceSearchResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
hasQueryExpansionInfo
public boolean hasQueryExpansionInfo()
Query expansion information for the returned results.
.google.cloud.retail.v2beta.SearchResponse.QueryExpansionInfo query_expansion_info = 7;
- Specified by:
hasQueryExpansionInfo
in interfaceSearchResponseOrBuilder
- Returns:
- Whether the queryExpansionInfo field is set.
-
getQueryExpansionInfo
public SearchResponse.QueryExpansionInfo getQueryExpansionInfo()
Query expansion information for the returned results.
.google.cloud.retail.v2beta.SearchResponse.QueryExpansionInfo query_expansion_info = 7;
- Specified by:
getQueryExpansionInfo
in interfaceSearchResponseOrBuilder
- Returns:
- The queryExpansionInfo.
-
getQueryExpansionInfoOrBuilder
public SearchResponse.QueryExpansionInfoOrBuilder getQueryExpansionInfoOrBuilder()
Query expansion information for the returned results.
.google.cloud.retail.v2beta.SearchResponse.QueryExpansionInfo query_expansion_info = 7;
- Specified by:
getQueryExpansionInfoOrBuilder
in interfaceSearchResponseOrBuilder
-
getRedirectUri
public String getRedirectUri()
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.retail.v2beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2beta.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 10;
- Specified by:
getRedirectUri
in interfaceSearchResponseOrBuilder
- Returns:
- The redirectUri.
-
getRedirectUriBytes
public com.google.protobuf.ByteString getRedirectUriBytes()
The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only [redirect_uri][google.cloud.retail.v2beta.SearchResponse.redirect_uri] and [attribution_token][google.cloud.retail.v2beta.SearchResponse.attribution_token] are set in the response.
string redirect_uri = 10;
- Specified by:
getRedirectUriBytes
in interfaceSearchResponseOrBuilder
- Returns:
- The bytes for redirectUri.
-
getAppliedControlsList
public com.google.protobuf.ProtocolStringList getAppliedControlsList()
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;
- Specified by:
getAppliedControlsList
in interfaceSearchResponseOrBuilder
- Returns:
- A list containing the appliedControls.
-
getAppliedControlsCount
public int getAppliedControlsCount()
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;
- Specified by:
getAppliedControlsCount
in interfaceSearchResponseOrBuilder
- Returns:
- The count of appliedControls.
-
getAppliedControls
public String getAppliedControls(int index)
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;
- Specified by:
getAppliedControls
in interfaceSearchResponseOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The appliedControls at the given index.
-
getAppliedControlsBytes
public com.google.protobuf.ByteString getAppliedControlsBytes(int index)
The fully qualified resource name of applied [controls](https://cloud.google.com/retail/docs/serving-control-rules).
repeated string applied_controls = 12;
- Specified by:
getAppliedControlsBytes
in interfaceSearchResponseOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the appliedControls at the given index.
-
getInvalidConditionBoostSpecsList
public List<SearchRequest.BoostSpec.ConditionBoostSpec> getInvalidConditionBoostSpecsList()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
- Specified by:
getInvalidConditionBoostSpecsList
in interfaceSearchResponseOrBuilder
-
getInvalidConditionBoostSpecsOrBuilderList
public List<? extends SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder> getInvalidConditionBoostSpecsOrBuilderList()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
- Specified by:
getInvalidConditionBoostSpecsOrBuilderList
in interfaceSearchResponseOrBuilder
-
getInvalidConditionBoostSpecsCount
public int getInvalidConditionBoostSpecsCount()
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
- Specified by:
getInvalidConditionBoostSpecsCount
in interfaceSearchResponseOrBuilder
-
getInvalidConditionBoostSpecs
public SearchRequest.BoostSpec.ConditionBoostSpec getInvalidConditionBoostSpecs(int index)
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
- Specified by:
getInvalidConditionBoostSpecs
in interfaceSearchResponseOrBuilder
-
getInvalidConditionBoostSpecsOrBuilder
public SearchRequest.BoostSpec.ConditionBoostSpecOrBuilder getInvalidConditionBoostSpecsOrBuilder(int index)
The invalid [SearchRequest.BoostSpec.condition_boost_specs][google.cloud.retail.v2beta.SearchRequest.BoostSpec.condition_boost_specs] that are not applied during serving.
repeated .google.cloud.retail.v2beta.SearchRequest.BoostSpec.ConditionBoostSpec invalid_condition_boost_specs = 14;
- Specified by:
getInvalidConditionBoostSpecsOrBuilder
in interfaceSearchResponseOrBuilder
-
getExperimentInfoList
public List<ExperimentInfo> getExperimentInfoList()
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2beta.ExperimentInfo experiment_info = 17;
- Specified by:
getExperimentInfoList
in interfaceSearchResponseOrBuilder
-
getExperimentInfoOrBuilderList
public List<? extends ExperimentInfoOrBuilder> getExperimentInfoOrBuilderList()
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2beta.ExperimentInfo experiment_info = 17;
- Specified by:
getExperimentInfoOrBuilderList
in interfaceSearchResponseOrBuilder
-
getExperimentInfoCount
public int getExperimentInfoCount()
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2beta.ExperimentInfo experiment_info = 17;
- Specified by:
getExperimentInfoCount
in interfaceSearchResponseOrBuilder
-
getExperimentInfo
public ExperimentInfo getExperimentInfo(int index)
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2beta.ExperimentInfo experiment_info = 17;
- Specified by:
getExperimentInfo
in interfaceSearchResponseOrBuilder
-
getExperimentInfoOrBuilder
public ExperimentInfoOrBuilder getExperimentInfoOrBuilder(int index)
Metadata related to A/B testing [Experiment][] associated with this response. Only exists when an experiment is triggered.
repeated .google.cloud.retail.v2beta.ExperimentInfo experiment_info = 17;
- Specified by:
getExperimentInfoOrBuilder
in interfaceSearchResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SearchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SearchResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SearchResponse.Builder newBuilder()
-
newBuilder
public static SearchResponse.Builder newBuilder(SearchResponse prototype)
-
toBuilder
public SearchResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SearchResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SearchResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SearchResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<SearchResponse> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SearchResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-