Interface Answer.CitationOrBuilder (0.40.0)

public static interface Answer.CitationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndIndex()

public abstract long getEndIndex()

End of the attributed segment, exclusive.

int64 end_index = 2;

Returns
Type Description
long

The endIndex.

getSources(int index)

public abstract Answer.CitationSource getSources(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
index int
Returns
Type Description
Answer.CitationSource

getSourcesCount()

public abstract int getSourcesCount()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
int

getSourcesList()

public abstract List<Answer.CitationSource> getSourcesList()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
List<CitationSource>

getSourcesOrBuilder(int index)

public abstract Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
index int
Returns
Type Description
Answer.CitationSourceOrBuilder

getSourcesOrBuilderList()

public abstract List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.Answer.CitationSourceOrBuilder>

getStartIndex()

public abstract long getStartIndex()

Index indicates the start of the segment, measured in bytes (UTF-8 unicode).

int64 start_index = 1;

Returns
Type Description
long

The startIndex.