public static final class GroundingSupport.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GroundingSupport.Builder> implements GroundingSupportOrBuilder
Grounding support.Protobuf type
google.cloud.aiplatform.v1beta1.GroundingSupport| Modifier and Type | Method and Description |
|---|---|
GroundingSupport.Builder |
addAllConfidenceScores(Iterable<? extends Float> values)
Confidence score of the support references.
|
GroundingSupport.Builder |
addAllGroundingChunkIndices(Iterable<? extends Integer> values)
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
GroundingSupport.Builder |
addConfidenceScores(float value)
Confidence score of the support references.
|
GroundingSupport.Builder |
addGroundingChunkIndices(int value)
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
GroundingSupport.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GroundingSupport |
build() |
GroundingSupport |
buildPartial() |
GroundingSupport.Builder |
clear() |
GroundingSupport.Builder |
clearConfidenceScores()
Confidence score of the support references.
|
GroundingSupport.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GroundingSupport.Builder |
clearGroundingChunkIndices()
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
GroundingSupport.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GroundingSupport.Builder |
clearSegment()
Segment of the content this support belongs to.
|
GroundingSupport.Builder |
clone() |
float |
getConfidenceScores(int index)
Confidence score of the support references.
|
int |
getConfidenceScoresCount()
Confidence score of the support references.
|
List<Float> |
getConfidenceScoresList()
Confidence score of the support references.
|
GroundingSupport |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getGroundingChunkIndices(int index)
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
int |
getGroundingChunkIndicesCount()
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
List<Integer> |
getGroundingChunkIndicesList()
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
Segment |
getSegment()
Segment of the content this support belongs to.
|
Segment.Builder |
getSegmentBuilder()
Segment of the content this support belongs to.
|
SegmentOrBuilder |
getSegmentOrBuilder()
Segment of the content this support belongs to.
|
boolean |
hasSegment()
Segment of the content this support belongs to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GroundingSupport.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GroundingSupport.Builder |
mergeFrom(GroundingSupport other) |
GroundingSupport.Builder |
mergeFrom(com.google.protobuf.Message other) |
GroundingSupport.Builder |
mergeSegment(Segment value)
Segment of the content this support belongs to.
|
GroundingSupport.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GroundingSupport.Builder |
setConfidenceScores(int index,
float value)
Confidence score of the support references.
|
GroundingSupport.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GroundingSupport.Builder |
setGroundingChunkIndices(int index,
int value)
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
GroundingSupport.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GroundingSupport.Builder |
setSegment(Segment.Builder builderForValue)
Segment of the content this support belongs to.
|
GroundingSupport.Builder |
setSegment(Segment value)
Segment of the content this support belongs to.
|
GroundingSupport.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<GroundingSupport.Builder>public 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<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<GroundingSupport.Builder>public GroundingSupport getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GroundingSupport build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GroundingSupport buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic 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<GroundingSupport.Builder>public 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<GroundingSupport.Builder>public GroundingSupport.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingSupport.Builder>public GroundingSupport.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingSupport.Builder>public 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<GroundingSupport.Builder>public 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<GroundingSupport.Builder>public GroundingSupport.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingSupport.Builder>public GroundingSupport.Builder mergeFrom(GroundingSupport other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingSupport.Builder>public 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<GroundingSupport.Builder>IOExceptionpublic boolean hasSegment()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;hasSegment in interface GroundingSupportOrBuilderpublic Segment getSegment()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;getSegment in interface GroundingSupportOrBuilderpublic GroundingSupport.Builder setSegment(Segment value)
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;public GroundingSupport.Builder setSegment(Segment.Builder builderForValue)
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;public GroundingSupport.Builder mergeSegment(Segment value)
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;public GroundingSupport.Builder clearSegment()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;public Segment.Builder getSegmentBuilder()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;public SegmentOrBuilder getSegmentOrBuilder()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;getSegmentOrBuilder in interface GroundingSupportOrBuilderpublic List<Integer> getGroundingChunkIndicesList()
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;getGroundingChunkIndicesList in interface GroundingSupportOrBuilderpublic int getGroundingChunkIndicesCount()
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;getGroundingChunkIndicesCount in interface GroundingSupportOrBuilderpublic int getGroundingChunkIndices(int index)
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;getGroundingChunkIndices in interface GroundingSupportOrBuilderindex - The index of the element to return.public GroundingSupport.Builder setGroundingChunkIndices(int index, int value)
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;index - The index to set the value at.value - The groundingChunkIndices to set.public GroundingSupport.Builder addGroundingChunkIndices(int value)
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;value - The groundingChunkIndices to add.public GroundingSupport.Builder addAllGroundingChunkIndices(Iterable<? extends Integer> values)
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;values - The groundingChunkIndices to add.public GroundingSupport.Builder clearGroundingChunkIndices()
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;public List<Float> getConfidenceScoresList()
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;getConfidenceScoresList in interface GroundingSupportOrBuilderpublic int getConfidenceScoresCount()
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;getConfidenceScoresCount in interface GroundingSupportOrBuilderpublic float getConfidenceScores(int index)
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;getConfidenceScores in interface GroundingSupportOrBuilderindex - The index of the element to return.public GroundingSupport.Builder setConfidenceScores(int index, float value)
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;index - The index to set the value at.value - The confidenceScores to set.public GroundingSupport.Builder addConfidenceScores(float value)
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;value - The confidenceScores to add.public GroundingSupport.Builder addAllConfidenceScores(Iterable<? extends Float> values)
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;values - The confidenceScores to add.public GroundingSupport.Builder clearConfidenceScores()
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;public final GroundingSupport.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingSupport.Builder>public final GroundingSupport.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingSupport.Builder>Copyright © 2025 Google LLC. All rights reserved.