- 0.56.0 (latest)
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static interface Answer.GroundingSupportOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getEndIndex()
public abstract long getEndIndex()
Required. End of the claim, exclusive.
int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
long |
The endIndex. |
getGroundingCheckRequired()
public abstract 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;
Returns | |
---|---|
Type | Description |
boolean |
The groundingCheckRequired. |
getGroundingScore()
public abstract 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;
Returns | |
---|---|
Type | Description |
double |
The groundingScore. |
getSources(int index)
public abstract 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];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Answer.CitationSource |
getSourcesCount()
public abstract int getSourcesCount()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getSourcesList()
public abstract List<Answer.CitationSource> getSourcesList()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<CitationSource> |
getSourcesOrBuilder(int index)
public abstract 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];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Answer.CitationSourceOrBuilder |
getSourcesOrBuilderList()
public abstract 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];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1.Answer.CitationSourceOrBuilder> |
getStartIndex()
public abstract long getStartIndex()
Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
long |
The startIndex. |
hasGroundingCheckRequired()
public abstract 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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the groundingCheckRequired field is set. |
hasGroundingScore()
public abstract 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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the groundingScore field is set. |