public static final class CheckGroundingResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder> implements CheckGroundingResponseOrBuilder
Response message for the [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1alpha.GroundedGenerationService.CheckGrounding] method.Protobuf type
google.cloud.discoveryengine.v1alpha.CheckGroundingResponse| Modifier and Type | Method and Description |
|---|---|
CheckGroundingResponse.Builder |
addAllCitedChunks(Iterable<? extends FactChunk> values)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addAllClaims(Iterable<? extends CheckGroundingResponse.Claim> values)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addCitedChunks(FactChunk.Builder builderForValue)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addCitedChunks(FactChunk value)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addCitedChunks(int index,
FactChunk.Builder builderForValue)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addCitedChunks(int index,
FactChunk value)
List of facts cited across all claims in the answer candidate.
|
FactChunk.Builder |
addCitedChunksBuilder()
List of facts cited across all claims in the answer candidate.
|
FactChunk.Builder |
addCitedChunksBuilder(int index)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addClaims(CheckGroundingResponse.Claim.Builder builderForValue)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addClaims(CheckGroundingResponse.Claim value)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addClaims(int index,
CheckGroundingResponse.Claim.Builder builderForValue)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addClaims(int index,
CheckGroundingResponse.Claim value)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Claim.Builder |
addClaimsBuilder()
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Claim.Builder |
addClaimsBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CheckGroundingResponse |
build() |
CheckGroundingResponse |
buildPartial() |
CheckGroundingResponse.Builder |
clear() |
CheckGroundingResponse.Builder |
clearCitedChunks()
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
clearClaims()
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CheckGroundingResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CheckGroundingResponse.Builder |
clearSupportScore()
The support score for the input answer candidate.
|
CheckGroundingResponse.Builder |
clone() |
FactChunk |
getCitedChunks(int index)
List of facts cited across all claims in the answer candidate.
|
FactChunk.Builder |
getCitedChunksBuilder(int index)
List of facts cited across all claims in the answer candidate.
|
List<FactChunk.Builder> |
getCitedChunksBuilderList()
List of facts cited across all claims in the answer candidate.
|
int |
getCitedChunksCount()
List of facts cited across all claims in the answer candidate.
|
List<FactChunk> |
getCitedChunksList()
List of facts cited across all claims in the answer candidate.
|
FactChunkOrBuilder |
getCitedChunksOrBuilder(int index)
List of facts cited across all claims in the answer candidate.
|
List<? extends FactChunkOrBuilder> |
getCitedChunksOrBuilderList()
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Claim |
getClaims(int index)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Claim.Builder |
getClaimsBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
|
List<CheckGroundingResponse.Claim.Builder> |
getClaimsBuilderList()
Claim texts and citation info across all claims in the answer candidate.
|
int |
getClaimsCount()
Claim texts and citation info across all claims in the answer candidate.
|
List<CheckGroundingResponse.Claim> |
getClaimsList()
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.ClaimOrBuilder |
getClaimsOrBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
|
List<? extends CheckGroundingResponse.ClaimOrBuilder> |
getClaimsOrBuilderList()
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
float |
getSupportScore()
The support score for the input answer candidate.
|
boolean |
hasSupportScore()
The support score for the input answer candidate.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CheckGroundingResponse.Builder |
mergeFrom(CheckGroundingResponse other) |
CheckGroundingResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CheckGroundingResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
CheckGroundingResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CheckGroundingResponse.Builder |
removeCitedChunks(int index)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
removeClaims(int index)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
setCitedChunks(int index,
FactChunk.Builder builderForValue)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
setCitedChunks(int index,
FactChunk value)
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
setClaims(int index,
CheckGroundingResponse.Claim.Builder builderForValue)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
setClaims(int index,
CheckGroundingResponse.Claim value)
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CheckGroundingResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CheckGroundingResponse.Builder |
setSupportScore(float value)
The support score for the input answer candidate.
|
CheckGroundingResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CheckGroundingResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder mergeFrom(CheckGroundingResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public CheckGroundingResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckGroundingResponse.Builder>IOExceptionpublic boolean hasSupportScore()
The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
optional float support_score = 1;hasSupportScore in interface CheckGroundingResponseOrBuilderpublic float getSupportScore()
The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
optional float support_score = 1;getSupportScore in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.Builder setSupportScore(float value)
The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
optional float support_score = 1;value - The supportScore to set.public CheckGroundingResponse.Builder clearSupportScore()
The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
optional float support_score = 1;public List<FactChunk> getCitedChunksList()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;getCitedChunksList in interface CheckGroundingResponseOrBuilderpublic int getCitedChunksCount()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;getCitedChunksCount in interface CheckGroundingResponseOrBuilderpublic FactChunk getCitedChunks(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;getCitedChunks in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.Builder setCitedChunks(int index, FactChunk value)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder setCitedChunks(int index, FactChunk.Builder builderForValue)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder addCitedChunks(FactChunk value)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder addCitedChunks(int index, FactChunk value)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder addCitedChunks(FactChunk.Builder builderForValue)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder addCitedChunks(int index, FactChunk.Builder builderForValue)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder addAllCitedChunks(Iterable<? extends FactChunk> values)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder clearCitedChunks()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public CheckGroundingResponse.Builder removeCitedChunks(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public FactChunk.Builder getCitedChunksBuilder(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public FactChunkOrBuilder getCitedChunksOrBuilder(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;getCitedChunksOrBuilder in interface CheckGroundingResponseOrBuilderpublic List<? extends FactChunkOrBuilder> getCitedChunksOrBuilderList()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;getCitedChunksOrBuilderList in interface CheckGroundingResponseOrBuilderpublic FactChunk.Builder addCitedChunksBuilder()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public FactChunk.Builder addCitedChunksBuilder(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public List<FactChunk.Builder> getCitedChunksBuilderList()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1alpha.FactChunk cited_chunks = 3;public List<CheckGroundingResponse.Claim> getClaimsList()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
getClaimsList in interface CheckGroundingResponseOrBuilderpublic int getClaimsCount()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
getClaimsCount in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.Claim getClaims(int index)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
getClaims in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.Builder setClaims(int index, CheckGroundingResponse.Claim value)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder setClaims(int index, CheckGroundingResponse.Claim.Builder builderForValue)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder addClaims(CheckGroundingResponse.Claim value)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder addClaims(int index, CheckGroundingResponse.Claim value)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder addClaims(CheckGroundingResponse.Claim.Builder builderForValue)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder addClaims(int index, CheckGroundingResponse.Claim.Builder builderForValue)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder addAllClaims(Iterable<? extends CheckGroundingResponse.Claim> values)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder clearClaims()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Builder removeClaims(int index)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Claim.Builder getClaimsBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.ClaimOrBuilder getClaimsOrBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
getClaimsOrBuilder in interface CheckGroundingResponseOrBuilderpublic List<? extends CheckGroundingResponse.ClaimOrBuilder> getClaimsOrBuilderList()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
getClaimsOrBuilderList in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.Claim.Builder addClaimsBuilder()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public CheckGroundingResponse.Claim.Builder addClaimsBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public List<CheckGroundingResponse.Claim.Builder> getClaimsBuilderList()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim claims = 4;
public final CheckGroundingResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>public final CheckGroundingResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Builder>Copyright © 2024 Google LLC. All rights reserved.