public final class GoogleCloudDiscoveryengineV1RankRequest
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleCloudDiscoveryengineV1RankRequest() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudDiscoveryengineV1RankRequest |
clone() |
Boolean |
getIgnoreRecordDetailsInResponse()
If true, the response will contain only record ID and score.
|
String |
getModel()
The identifier of the model to use.
|
String |
getQuery()
The query to use.
|
List<GoogleCloudDiscoveryengineV1RankingRecord> |
getRecords()
Required.
|
Integer |
getTopN()
The number of results to return.
|
Map<String,String> |
getUserLabels()
The user labels applied to a resource must meet the following requirements: * Each resource can
have multiple labels, up to a maximum of 64.
|
GoogleCloudDiscoveryengineV1RankRequest |
set(String fieldName,
Object value) |
GoogleCloudDiscoveryengineV1RankRequest |
setIgnoreRecordDetailsInResponse(Boolean ignoreRecordDetailsInResponse)
If true, the response will contain only record ID and score.
|
GoogleCloudDiscoveryengineV1RankRequest |
setModel(String model)
The identifier of the model to use.
|
GoogleCloudDiscoveryengineV1RankRequest |
setQuery(String query)
The query to use.
|
GoogleCloudDiscoveryengineV1RankRequest |
setRecords(List<GoogleCloudDiscoveryengineV1RankingRecord> records)
Required.
|
GoogleCloudDiscoveryengineV1RankRequest |
setTopN(Integer topN)
The number of results to return.
|
GoogleCloudDiscoveryengineV1RankRequest |
setUserLabels(Map<String,String> userLabels)
The user labels applied to a resource must meet the following requirements: * Each resource can
have multiple labels, up to a maximum of 64.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic GoogleCloudDiscoveryengineV1RankRequest()
public Boolean getIgnoreRecordDetailsInResponse()
null for nonepublic GoogleCloudDiscoveryengineV1RankRequest setIgnoreRecordDetailsInResponse(Boolean ignoreRecordDetailsInResponse)
ignoreRecordDetailsInResponse - ignoreRecordDetailsInResponse or null for nonepublic String getModel()
null for nonepublic GoogleCloudDiscoveryengineV1RankRequest setModel(String model)
model - model or null for nonepublic String getQuery()
null for nonepublic GoogleCloudDiscoveryengineV1RankRequest setQuery(String query)
query - query or null for nonepublic List<GoogleCloudDiscoveryengineV1RankingRecord> getRecords()
null for nonepublic GoogleCloudDiscoveryengineV1RankRequest setRecords(List<GoogleCloudDiscoveryengineV1RankingRecord> records)
records - records or null for nonepublic Integer getTopN()
null for nonepublic GoogleCloudDiscoveryengineV1RankRequest setTopN(Integer topN)
topN - topN or null for nonepublic Map<String,String> getUserLabels()
null for nonepublic GoogleCloudDiscoveryengineV1RankRequest setUserLabels(Map<String,String> userLabels)
userLabels - userLabels or null for nonepublic GoogleCloudDiscoveryengineV1RankRequest set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleCloudDiscoveryengineV1RankRequest clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.