public static final class AssistantGroundedContent.TextGroundingMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder> implements AssistantGroundedContent.TextGroundingMetadataOrBuilder
Grounding details for text sources.Protobuf type
google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadataaddRepeatedField, 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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder>public AssistantGroundedContent.TextGroundingMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.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.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder>public AssistantGroundedContent.TextGroundingMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AssistantGroundedContent.TextGroundingMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AssistantGroundedContent.TextGroundingMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder>public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(AssistantGroundedContent.TextGroundingMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder>public AssistantGroundedContent.TextGroundingMetadata.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<AssistantGroundedContent.TextGroundingMetadata.Builder>IOExceptionpublic List<AssistantGroundedContent.TextGroundingMetadata.Segment> getSegmentsList()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
getSegmentsList in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic int getSegmentsCount()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
getSegmentsCount in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic AssistantGroundedContent.TextGroundingMetadata.Segment getSegments(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
getSegments in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic AssistantGroundedContent.TextGroundingMetadata.Builder setSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment value)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder setSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder addSegments(AssistantGroundedContent.TextGroundingMetadata.Segment value)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder addSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment value)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder addSegments(AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder addSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder addAllSegments(Iterable<? extends AssistantGroundedContent.TextGroundingMetadata.Segment> values)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder clearSegments()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Builder removeSegments(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Segment.Builder getSegmentsBuilder(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder getSegmentsOrBuilder(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
getSegmentsOrBuilder in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic List<? extends AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder> getSegmentsOrBuilderList()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
getSegmentsOrBuilderList in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic AssistantGroundedContent.TextGroundingMetadata.Segment.Builder addSegmentsBuilder()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public AssistantGroundedContent.TextGroundingMetadata.Segment.Builder addSegmentsBuilder(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public List<AssistantGroundedContent.TextGroundingMetadata.Segment.Builder> getSegmentsBuilderList()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
public List<AssistantGroundedContent.TextGroundingMetadata.Reference> getReferencesList()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
getReferencesList in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic int getReferencesCount()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
getReferencesCount in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic AssistantGroundedContent.TextGroundingMetadata.Reference getReferences(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
getReferences in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic AssistantGroundedContent.TextGroundingMetadata.Builder setReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference value)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder setReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder addReferences(AssistantGroundedContent.TextGroundingMetadata.Reference value)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder addReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference value)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder addReferences(AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder addReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder addAllReferences(Iterable<? extends AssistantGroundedContent.TextGroundingMetadata.Reference> values)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder clearReferences()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Builder removeReferences(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder getReferencesBuilder(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder getReferencesOrBuilder(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
getReferencesOrBuilder in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic List<? extends AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder> getReferencesOrBuilderList()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
getReferencesOrBuilderList in interface AssistantGroundedContent.TextGroundingMetadataOrBuilderpublic AssistantGroundedContent.TextGroundingMetadata.Reference.Builder addReferencesBuilder()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder addReferencesBuilder(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
public List<AssistantGroundedContent.TextGroundingMetadata.Reference.Builder> getReferencesBuilderList()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Copyright © 2026 Google LLC. All rights reserved.