Interface SearchResponse.Summary.CitationOrBuilder (0.36.0)

public static interface SearchResponse.Summary.CitationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndIndex()

public abstract long getEndIndex()

End of the attributed segment, exclusive.

int64 end_index = 2;

Returns
TypeDescription
long

The endIndex.

getSources(int index)

public abstract SearchResponse.Summary.CitationSource getSources(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.CitationSource sources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.CitationSource

getSourcesCount()

public abstract int getSourcesCount()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.CitationSource sources = 3;

Returns
TypeDescription
int

getSourcesList()

public abstract List<SearchResponse.Summary.CitationSource> getSourcesList()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.CitationSource sources = 3;

Returns
TypeDescription
List<CitationSource>

getSourcesOrBuilder(int index)

public abstract SearchResponse.Summary.CitationSourceOrBuilder getSourcesOrBuilder(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.CitationSource sources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.CitationSourceOrBuilder

getSourcesOrBuilderList()

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

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.CitationSource sources = 3;

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.CitationSourceOrBuilder>

getStartIndex()

public abstract long getStartIndex()

Index indicates the start of the segment, measured in bytes/unicode.

int64 start_index = 1;

Returns
TypeDescription
long

The startIndex.