public static final class GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder> implements GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilder
Grounding info for a claim in the candidate and its support.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportgetAllFields, 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<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.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<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.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<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.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<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.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<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder mergeFrom(GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.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<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>IOExceptionpublic String getClaimText()
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;getClaimText in interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilderpublic com.google.protobuf.ByteString getClaimTextBytes()
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;getClaimTextBytes in interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilderpublic GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setClaimText(String value)
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;value - The claimText to set.public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearClaimText()
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setClaimTextBytes(com.google.protobuf.ByteString value)
Text for the claim in the candidate. Always provided when a support is found.
string claim_text = 1;value - The bytes for claimText to set.public List<Integer> getSupportChunkIndicesList()
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;getSupportChunkIndicesList in interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilderpublic int getSupportChunkIndicesCount()
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;getSupportChunkIndicesCount in interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilderpublic int getSupportChunkIndices(int index)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;getSupportChunkIndices in interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilderindex - The index of the element to return.public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setSupportChunkIndices(int index, int value)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;index - The index to set the value at.value - The supportChunkIndices to set.public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder addSupportChunkIndices(int value)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;value - The supportChunkIndices to add.public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder addAllSupportChunkIndices(Iterable<? extends Integer> values)
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;values - The supportChunkIndices to add.public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearSupportChunkIndices()
A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
repeated int32 support_chunk_indices = 3;public boolean hasSupportScore()
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;hasSupportScore in interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilderpublic float getSupportScore()
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;getSupportScore in interface GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupportOrBuilderpublic GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setSupportScore(float value)
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;value - The supportScore to set.public GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder clearSupportScore()
A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
optional float support_score = 2;public final GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>public final GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport.Builder>Copyright © 2025 Google LLC. All rights reserved.