public final class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec
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 |
|---|
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec |
clone() |
Integer |
getMaxExtractiveAnswerCount()
The maximum number of extractive answers returned in each search result.
|
Integer |
getMaxExtractiveSegmentCount()
The max number of extractive segments returned in each search result.
|
Integer |
getNumNextSegments()
Return at most `num_next_segments` segments after each selected segments.
|
Integer |
getNumPreviousSegments()
Specifies whether to also include the adjacent from each selected segments.
|
Boolean |
getReturnExtractiveSegmentScore()
Specifies whether to return the confidence score from the extractive segments in each search
result.
|
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec |
set(String fieldName,
Object value) |
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec |
setMaxExtractiveAnswerCount(Integer maxExtractiveAnswerCount)
The maximum number of extractive answers returned in each search result.
|
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec |
setMaxExtractiveSegmentCount(Integer maxExtractiveSegmentCount)
The max number of extractive segments returned in each search result.
|
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec |
setNumNextSegments(Integer numNextSegments)
Return at most `num_next_segments` segments after each selected segments.
|
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec |
setNumPreviousSegments(Integer numPreviousSegments)
Specifies whether to also include the adjacent from each selected segments.
|
GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec |
setReturnExtractiveSegmentScore(Boolean returnExtractiveSegmentScore)
Specifies whether to return the confidence score from the extractive segments in each search
result.
|
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 GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec()
public Integer getMaxExtractiveAnswerCount()
null for nonepublic GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec setMaxExtractiveAnswerCount(Integer maxExtractiveAnswerCount)
maxExtractiveAnswerCount - maxExtractiveAnswerCount or null for nonepublic Integer getMaxExtractiveSegmentCount()
null for nonepublic GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec setMaxExtractiveSegmentCount(Integer maxExtractiveSegmentCount)
maxExtractiveSegmentCount - maxExtractiveSegmentCount or null for nonepublic Integer getNumNextSegments()
null for nonepublic GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec setNumNextSegments(Integer numNextSegments)
numNextSegments - numNextSegments or null for nonepublic Integer getNumPreviousSegments()
null for nonepublic GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec setNumPreviousSegments(Integer numPreviousSegments)
numPreviousSegments - numPreviousSegments or null for nonepublic Boolean getReturnExtractiveSegmentScore()
null for nonepublic GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec setReturnExtractiveSegmentScore(Boolean returnExtractiveSegmentScore)
returnExtractiveSegmentScore - returnExtractiveSegmentScore or null for nonepublic GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.