Class AssistantGroundedContent.TextGroundingMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder>
com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Builder
- All Implemented Interfaces:
AssistantGroundedContent.TextGroundingMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AssistantGroundedContent.TextGroundingMetadata
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.TextGroundingMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllReferences(Iterable<? extends AssistantGroundedContent.TextGroundingMetadata.Reference> values) References for the grounded text.addAllSegments(Iterable<? extends AssistantGroundedContent.TextGroundingMetadata.Segment> values) Grounding information for parts of the text.addReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference value) References for the grounded text.addReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue) References for the grounded text.References for the grounded text.References for the grounded text.References for the grounded text.addReferencesBuilder(int index) References for the grounded text.addSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment value) Grounding information for parts of the text.addSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue) Grounding information for parts of the text.Grounding information for parts of the text.Grounding information for parts of the text.Grounding information for parts of the text.addSegmentsBuilder(int index) Grounding information for parts of the text.build()clear()References for the grounded text.Grounding information for parts of the text.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetReferences(int index) References for the grounded text.getReferencesBuilder(int index) References for the grounded text.References for the grounded text.intReferences for the grounded text.References for the grounded text.getReferencesOrBuilder(int index) References for the grounded text.References for the grounded text.getSegments(int index) Grounding information for parts of the text.getSegmentsBuilder(int index) Grounding information for parts of the text.Grounding information for parts of the text.intGrounding information for parts of the text.Grounding information for parts of the text.getSegmentsOrBuilder(int index) Grounding information for parts of the text.Grounding information for parts of the text.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeReferences(int index) References for the grounded text.removeSegments(int index) Grounding information for parts of the text.setReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference value) References for the grounded text.setReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue) References for the grounded text.setSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment value) Grounding information for parts of the text.setSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue) Grounding information for parts of the text.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<AssistantGroundedContent.TextGroundingMetadata.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<AssistantGroundedContent.TextGroundingMetadata.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<AssistantGroundedContent.TextGroundingMetadata.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
public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder>
-
mergeFrom
public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(AssistantGroundedContent.TextGroundingMetadata other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder>
-
mergeFrom
public AssistantGroundedContent.TextGroundingMetadata.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<AssistantGroundedContent.TextGroundingMetadata.Builder>- Throws:
IOException
-
getSegmentsList
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;- Specified by:
getSegmentsListin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
getSegmentsCount
public int getSegmentsCount()Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;- Specified by:
getSegmentsCountin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
getSegments
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;- Specified by:
getSegmentsin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
setSegments
public 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; -
setSegments
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; -
addSegments
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; -
addSegments
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; -
addSegments
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; -
addSegments
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; -
addAllSegments
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; -
clearSegments
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; -
removeSegments
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; -
getSegmentsBuilder
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; -
getSegmentsOrBuilder
public AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder getSegmentsOrBuilder(int index) Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;- Specified by:
getSegmentsOrBuilderin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
getSegmentsOrBuilderList
public List<? extends AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder> getSegmentsOrBuilderList()Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;- Specified by:
getSegmentsOrBuilderListin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
addSegmentsBuilder
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; -
addSegmentsBuilder
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; -
getSegmentsBuilderList
public List<AssistantGroundedContent.TextGroundingMetadata.Segment.Builder> getSegmentsBuilderList()Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; -
getReferencesList
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;- Specified by:
getReferencesListin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
getReferencesCount
public int getReferencesCount()References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;- Specified by:
getReferencesCountin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
getReferences
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;- Specified by:
getReferencesin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
setReferences
public 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; -
setReferences
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; -
addReferences
public AssistantGroundedContent.TextGroundingMetadata.Builder addReferences(AssistantGroundedContent.TextGroundingMetadata.Reference value) References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; -
addReferences
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; -
addReferences
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; -
addReferences
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; -
addAllReferences
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; -
clearReferences
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; -
removeReferences
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; -
getReferencesBuilder
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder getReferencesBuilder(int index) References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; -
getReferencesOrBuilder
public AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder getReferencesOrBuilder(int index) References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;- Specified by:
getReferencesOrBuilderin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
getReferencesOrBuilderList
public List<? extends AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder> getReferencesOrBuilderList()References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;- Specified by:
getReferencesOrBuilderListin interfaceAssistantGroundedContent.TextGroundingMetadataOrBuilder
-
addReferencesBuilder
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; -
addReferencesBuilder
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder addReferencesBuilder(int index) References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; -
getReferencesBuilderList
public List<AssistantGroundedContent.TextGroundingMetadata.Reference.Builder> getReferencesBuilderList()References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
-