public static interface Answer.GroundingSupportOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
long |
getEndIndex()
Required.
|
boolean |
getGroundingCheckRequired()
Indicates that this claim required grounding check.
|
double |
getGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific
claim by the references.
|
Answer.CitationSource |
getSources(int index)
Optional.
|
int |
getSourcesCount()
Optional.
|
List<Answer.CitationSource> |
getSourcesList()
Optional.
|
Answer.CitationSourceOrBuilder |
getSourcesOrBuilder(int index)
Optional.
|
List<? extends Answer.CitationSourceOrBuilder> |
getSourcesOrBuilderList()
Optional.
|
long |
getStartIndex()
Required.
|
boolean |
hasGroundingCheckRequired()
Indicates that this claim required grounding check.
|
boolean |
hasGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific
claim by the references.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoflong getStartIndex()
Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED];long getEndIndex()
Required. End of the claim, exclusive.
int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED];boolean hasGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks.
optional double grounding_score = 3;double getGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks.
optional double grounding_score = 3;boolean hasGroundingCheckRequired()
Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore `grounding_score`, `sources` is not returned.
optional bool grounding_check_required = 4;boolean getGroundingCheckRequired()
Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore `grounding_score`, `sources` is not returned.
optional bool grounding_check_required = 4;List<Answer.CitationSource> getSourcesList()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
Answer.CitationSource getSources(int index)
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
int getSourcesCount()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2026 Google LLC. All rights reserved.