Class AssistantGroundedContent.TextGroundingMetadata.Builder (0.81.0)

public static final class AssistantGroundedContent.TextGroundingMetadata.Builder extends GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Builder> implements AssistantGroundedContent.TextGroundingMetadataOrBuilder

Grounding details for text sources.

Protobuf type google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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>
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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>
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameter
Name Description
value AssistantGroundedContent.TextGroundingMetadata.Reference
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameter
Name Description
builderForValue AssistantGroundedContent.TextGroundingMetadata.Reference.Builder
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
value AssistantGroundedContent.TextGroundingMetadata.Reference
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
builderForValue AssistantGroundedContent.TextGroundingMetadata.Reference.Builder
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

addReferencesBuilder()

public AssistantGroundedContent.TextGroundingMetadata.Reference.Builder addReferencesBuilder()

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder

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;

Parameter
Name Description
value AssistantGroundedContent.TextGroundingMetadata.Segment
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameter
Name Description
builderForValue AssistantGroundedContent.TextGroundingMetadata.Segment.Builder
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
value AssistantGroundedContent.TextGroundingMetadata.Segment
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
builderForValue AssistantGroundedContent.TextGroundingMetadata.Segment.Builder
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

addSegmentsBuilder()

public AssistantGroundedContent.TextGroundingMetadata.Segment.Builder addSegmentsBuilder()

Grounding information for parts of the text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;

Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Segment.Builder

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Segment.Builder

build()

public AssistantGroundedContent.TextGroundingMetadata build()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata

buildPartial()

public AssistantGroundedContent.TextGroundingMetadata buildPartial()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata

clear()

public AssistantGroundedContent.TextGroundingMetadata.Builder clear()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder
Overrides

clearReferences()

public AssistantGroundedContent.TextGroundingMetadata.Builder clearReferences()

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

clearSegments()

public AssistantGroundedContent.TextGroundingMetadata.Builder clearSegments()

Grounding information for parts of the text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4;

Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

getDefaultInstanceForType()

public AssistantGroundedContent.TextGroundingMetadata getDefaultInstanceForType()
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Reference

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Reference.Builder

getReferencesBuilderList()

public List<AssistantGroundedContent.TextGroundingMetadata.Reference.Builder> getReferencesBuilderList()

References for the grounded text.

repeated .google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<Reference>

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.ReferenceOrBuilder

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Segment

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Segment.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<Segment>

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.SegmentOrBuilder

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssistantGroundedContent.TextGroundingMetadata other)

public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(AssistantGroundedContent.TextGroundingMetadata other)
Parameter
Name Description
other AssistantGroundedContent.TextGroundingMetadata
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssistantGroundedContent.TextGroundingMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder
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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
value AssistantGroundedContent.TextGroundingMetadata.Reference
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
builderForValue AssistantGroundedContent.TextGroundingMetadata.Reference.Builder
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
value AssistantGroundedContent.TextGroundingMetadata.Segment
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder

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;

Parameters
Name Description
index int
builderForValue AssistantGroundedContent.TextGroundingMetadata.Segment.Builder
Returns
Type Description
AssistantGroundedContent.TextGroundingMetadata.Builder