Package com.google.cloud.aiplatform.v1
Class GroundingSupport.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GroundingSupport.Builder>
com.google.cloud.aiplatform.v1.GroundingSupport.Builder
- All Implemented Interfaces:
GroundingSupportOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GroundingSupport
public static final class GroundingSupport.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GroundingSupport.Builder>
implements GroundingSupportOrBuilder
Grounding support.Protobuf type
google.cloud.aiplatform.v1.GroundingSupport-
Method Summary
Modifier and TypeMethodDescriptionaddAllConfidenceScores(Iterable<? extends Float> values) Confidence score of the support references.addAllGroundingChunkIndices(Iterable<? extends Integer> values) A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.addConfidenceScores(float value) Confidence score of the support references.addGroundingChunkIndices(int value) A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.build()clear()Confidence score of the support references.A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.Segment of the content this support belongs to.floatgetConfidenceScores(int index) Confidence score of the support references.intConfidence score of the support references.Confidence score of the support references.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetGroundingChunkIndices(int index) A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.intA list of indices (into 'grounding_chunk') specifying the citations associated with the claim.A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.Segment of the content this support belongs to.Segment of the content this support belongs to.Segment of the content this support belongs to.booleanSegment of the content this support belongs to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GroundingSupport other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSegment(Segment value) Segment of the content this support belongs to.setConfidenceScores(int index, float value) Confidence score of the support references.setGroundingChunkIndices(int index, int value) A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.setSegment(Segment value) Segment of the content this support belongs to.setSegment(Segment.Builder builderForValue) Segment of the content this support belongs to.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GroundingSupport.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GroundingSupport.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GroundingSupport.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GroundingSupport.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GroundingSupport.Builder>
-
mergeFrom
public GroundingSupport.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GroundingSupport.Builder>- Throws:
IOException
-
hasSegment
public boolean hasSegment()Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1;- Specified by:
hasSegmentin interfaceGroundingSupportOrBuilder- Returns:
- Whether the segment field is set.
-
getSegment
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1;- Specified by:
getSegmentin interfaceGroundingSupportOrBuilder- Returns:
- The segment.
-
setSegment
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1; -
setSegment
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1; -
mergeSegment
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1; -
clearSegment
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1; -
getSegmentBuilder
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1; -
getSegmentOrBuilder
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1.Segment segment = 1;- Specified by:
getSegmentOrBuilderin interfaceGroundingSupportOrBuilder
-
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;- Specified by:
getGroundingChunkIndicesListin interfaceGroundingSupportOrBuilder- Returns:
- A list containing the groundingChunkIndices.
-
getGroundingChunkIndicesCount
public 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;- Specified by:
getGroundingChunkIndicesCountin interfaceGroundingSupportOrBuilder- Returns:
- The count of groundingChunkIndices.
-
getGroundingChunkIndices
public 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;- Specified by:
getGroundingChunkIndicesin interfaceGroundingSupportOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The groundingChunkIndices at the given index.
-
setGroundingChunkIndices
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;- Parameters:
index- The index to set the value at.value- The groundingChunkIndices to set.- Returns:
- This builder for chaining.
-
addGroundingChunkIndices
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;- Parameters:
value- The groundingChunkIndices to add.- Returns:
- This builder for chaining.
-
addAllGroundingChunkIndices
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;- Parameters:
values- The groundingChunkIndices to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getConfidenceScoresListin interfaceGroundingSupportOrBuilder- Returns:
- A list containing the confidenceScores.
-
getConfidenceScoresCount
public 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;- Specified by:
getConfidenceScoresCountin interfaceGroundingSupportOrBuilder- Returns:
- The count of confidenceScores.
-
getConfidenceScores
public 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;- Specified by:
getConfidenceScoresin interfaceGroundingSupportOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The confidenceScores at the given index.
-
setConfidenceScores
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;- Parameters:
index- The index to set the value at.value- The confidenceScores to set.- Returns:
- This builder for chaining.
-
addConfidenceScores
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;- Parameters:
value- The confidenceScores to add.- Returns:
- This builder for chaining.
-
addAllConfidenceScores
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;- Parameters:
values- The confidenceScores to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-