public static final class AssistantGroundedContent.TextGroundingMetadata.Builder extends GeneratedMessageV3.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder> implements AssistantGroundedContent.TextGroundingMetadataOrBuilder
Grounding details for text sources.
Protobuf type
google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllReferences(Iterable<? extends AssistantGroundedContent.TextGroundingMetadata.Reference> values)
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;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference>
|
addAllSegments(Iterable<? extends AssistantGroundedContent.TextGroundingMetadata.Segment> values)
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;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment>
|
addReferences(AssistantGroundedContent.TextGroundingMetadata.Reference value)
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(AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue)
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(int index, AssistantGroundedContent.TextGroundingMetadata.Reference value)
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(int index, AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue)
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;
addReferencesBuilder()
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder addReferencesBuilder()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
addReferencesBuilder(int index)
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder addReferencesBuilder(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AssistantGroundedContent.TextGroundingMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSegments(AssistantGroundedContent.TextGroundingMetadata.Segment value)
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(AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue)
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(int index, AssistantGroundedContent.TextGroundingMetadata.Segment value)
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(int index, AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue)
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;
addSegmentsBuilder()
public AssistantGroundedContent.TextGroundingMetadata.Segment.Builder addSegmentsBuilder()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
addSegmentsBuilder(int index)
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;
Parameter |
Name |
Description |
index |
int
|
build()
public AssistantGroundedContent.TextGroundingMetadata build()
buildPartial()
public AssistantGroundedContent.TextGroundingMetadata buildPartial()
clear()
public AssistantGroundedContent.TextGroundingMetadata.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AssistantGroundedContent.TextGroundingMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AssistantGroundedContent.TextGroundingMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearReferences()
public AssistantGroundedContent.TextGroundingMetadata.Builder clearReferences()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
clearSegments()
public AssistantGroundedContent.TextGroundingMetadata.Builder clearSegments()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
clone()
public AssistantGroundedContent.TextGroundingMetadata.Builder clone()
Overrides
getDefaultInstanceForType()
public AssistantGroundedContent.TextGroundingMetadata getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getReferences(int index)
public AssistantGroundedContent.TextGroundingMetadata.Reference getReferences(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Parameter |
Name |
Description |
index |
int
|
getReferencesBuilder(int index)
public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder getReferencesBuilder(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Parameter |
Name |
Description |
index |
int
|
getReferencesBuilderList()
public List<AssistantGroundedContent.TextGroundingMetadata.Reference.Builder> getReferencesBuilderList()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
getReferencesCount()
public int getReferencesCount()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Returns |
Type |
Description |
int |
|
getReferencesList()
public List<AssistantGroundedContent.TextGroundingMetadata.Reference> getReferencesList()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
getReferencesOrBuilder(int index)
public AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder getReferencesOrBuilder(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Parameter |
Name |
Description |
index |
int
|
getReferencesOrBuilderList()
public List<? extends AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder> getReferencesOrBuilderList()
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder> |
|
getSegments(int index)
public AssistantGroundedContent.TextGroundingMetadata.Segment getSegments(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
Parameter |
Name |
Description |
index |
int
|
getSegmentsBuilder(int index)
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;
Parameter |
Name |
Description |
index |
int
|
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;
getSegmentsCount()
public int getSegmentsCount()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
Returns |
Type |
Description |
int |
|
getSegmentsList()
public List<AssistantGroundedContent.TextGroundingMetadata.Segment> getSegmentsList()
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
getSegmentsOrBuilder(int index)
public AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder getSegmentsOrBuilder(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
Parameter |
Name |
Description |
index |
int
|
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;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AssistantGroundedContent.TextGroundingMetadata other)
public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(AssistantGroundedContent.TextGroundingMetadata other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AssistantGroundedContent.TextGroundingMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeReferences(int index)
public AssistantGroundedContent.TextGroundingMetadata.Builder removeReferences(int index)
References for the grounded text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;
Parameter |
Name |
Description |
index |
int
|
removeSegments(int index)
public AssistantGroundedContent.TextGroundingMetadata.Builder removeSegments(int index)
Grounding information for parts of the text.
repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public AssistantGroundedContent.TextGroundingMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setReferences(int index, AssistantGroundedContent.TextGroundingMetadata.Reference value)
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(int index, AssistantGroundedContent.TextGroundingMetadata.Reference.Builder builderForValue)
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AssistantGroundedContent.TextGroundingMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSegments(int index, AssistantGroundedContent.TextGroundingMetadata.Segment value)
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(int index, AssistantGroundedContent.TextGroundingMetadata.Segment.Builder builderForValue)
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final AssistantGroundedContent.TextGroundingMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides