Class SearchResponse.Summary.Citation.Builder (0.40.0)

public static final class SearchResponse.Summary.Citation.Builder extends GeneratedMessageV3.Builder<SearchResponse.Summary.Citation.Builder> implements SearchResponse.Summary.CitationOrBuilder

Citation info for a segment.

Protobuf type google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation

Static Methods

getDescriptor()

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

Methods

addAllSources(Iterable<? extends SearchResponse.Summary.CitationSource> values)

public SearchResponse.Summary.Citation.Builder addAllSources(Iterable<? extends SearchResponse.Summary.CitationSource> values)

Citation sources for the attributed segment.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationSource>
Returns
Type Description
SearchResponse.Summary.Citation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Summary.Citation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

addSources(SearchResponse.Summary.CitationSource value)

public SearchResponse.Summary.Citation.Builder addSources(SearchResponse.Summary.CitationSource value)

Citation sources for the attributed segment.

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

Parameter
Name Description
value SearchResponse.Summary.CitationSource
Returns
Type Description
SearchResponse.Summary.Citation.Builder

addSources(SearchResponse.Summary.CitationSource.Builder builderForValue)

public SearchResponse.Summary.Citation.Builder addSources(SearchResponse.Summary.CitationSource.Builder builderForValue)

Citation sources for the attributed segment.

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

Parameter
Name Description
builderForValue SearchResponse.Summary.CitationSource.Builder
Returns
Type Description
SearchResponse.Summary.Citation.Builder

addSources(int index, SearchResponse.Summary.CitationSource value)

public SearchResponse.Summary.Citation.Builder addSources(int index, SearchResponse.Summary.CitationSource value)

Citation sources for the attributed segment.

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

Parameters
Name Description
index int
value SearchResponse.Summary.CitationSource
Returns
Type Description
SearchResponse.Summary.Citation.Builder

addSources(int index, SearchResponse.Summary.CitationSource.Builder builderForValue)

public SearchResponse.Summary.Citation.Builder addSources(int index, SearchResponse.Summary.CitationSource.Builder builderForValue)

Citation sources for the attributed segment.

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

Parameters
Name Description
index int
builderForValue SearchResponse.Summary.CitationSource.Builder
Returns
Type Description
SearchResponse.Summary.Citation.Builder

addSourcesBuilder()

public SearchResponse.Summary.CitationSource.Builder addSourcesBuilder()

Citation sources for the attributed segment.

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

Returns
Type Description
SearchResponse.Summary.CitationSource.Builder

addSourcesBuilder(int index)

public SearchResponse.Summary.CitationSource.Builder addSourcesBuilder(int index)

Citation sources for the attributed segment.

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

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.CitationSource.Builder

build()

public SearchResponse.Summary.Citation build()
Returns
Type Description
SearchResponse.Summary.Citation

buildPartial()

public SearchResponse.Summary.Citation buildPartial()
Returns
Type Description
SearchResponse.Summary.Citation

clear()

public SearchResponse.Summary.Citation.Builder clear()
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

clearEndIndex()

public SearchResponse.Summary.Citation.Builder clearEndIndex()

End of the attributed segment, exclusive.

int64 end_index = 2;

Returns
Type Description
SearchResponse.Summary.Citation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SearchResponse.Summary.Citation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchResponse.Summary.Citation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

clearSources()

public SearchResponse.Summary.Citation.Builder clearSources()

Citation sources for the attributed segment.

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

Returns
Type Description
SearchResponse.Summary.Citation.Builder

clearStartIndex()

public SearchResponse.Summary.Citation.Builder clearStartIndex()

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

int64 start_index = 1;

Returns
Type Description
SearchResponse.Summary.Citation.Builder

This builder for chaining.

clone()

public SearchResponse.Summary.Citation.Builder clone()
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

getDefaultInstanceForType()

public SearchResponse.Summary.Citation getDefaultInstanceForType()
Returns
Type Description
SearchResponse.Summary.Citation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndIndex()

public long getEndIndex()

End of the attributed segment, exclusive.

int64 end_index = 2;

Returns
Type Description
long

The endIndex.

getSources(int index)

public SearchResponse.Summary.CitationSource getSources(int index)

Citation sources for the attributed segment.

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

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.CitationSource

getSourcesBuilder(int index)

public SearchResponse.Summary.CitationSource.Builder getSourcesBuilder(int index)

Citation sources for the attributed segment.

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

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.CitationSource.Builder

getSourcesBuilderList()

public List<SearchResponse.Summary.CitationSource.Builder> getSourcesBuilderList()

Citation sources for the attributed segment.

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

Returns
Type Description
List<Builder>

getSourcesCount()

public int getSourcesCount()

Citation sources for the attributed segment.

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

Returns
Type Description
int

getSourcesList()

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

Citation sources for the attributed segment.

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

Returns
Type Description
List<CitationSource>

getSourcesOrBuilder(int index)

public SearchResponse.Summary.CitationSourceOrBuilder getSourcesOrBuilder(int index)

Citation sources for the attributed segment.

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

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.CitationSourceOrBuilder

getSourcesOrBuilderList()

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

Citation sources for the attributed segment.

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

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationSourceOrBuilder>

getStartIndex()

public long getStartIndex()

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

int64 start_index = 1;

Returns
Type Description
long

The startIndex.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchResponse.Summary.Citation other)

public SearchResponse.Summary.Citation.Builder mergeFrom(SearchResponse.Summary.Citation other)
Parameter
Name Description
other SearchResponse.Summary.Citation
Returns
Type Description
SearchResponse.Summary.Citation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchResponse.Summary.Citation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchResponse.Summary.Citation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.Citation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

removeSources(int index)

public SearchResponse.Summary.Citation.Builder removeSources(int index)

Citation sources for the attributed segment.

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

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.Summary.Citation.Builder

setEndIndex(long value)

public SearchResponse.Summary.Citation.Builder setEndIndex(long value)

End of the attributed segment, exclusive.

int64 end_index = 2;

Parameter
Name Description
value long

The endIndex to set.

Returns
Type Description
SearchResponse.Summary.Citation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Summary.Citation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchResponse.Summary.Citation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides

setSources(int index, SearchResponse.Summary.CitationSource value)

public SearchResponse.Summary.Citation.Builder setSources(int index, SearchResponse.Summary.CitationSource value)

Citation sources for the attributed segment.

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

Parameters
Name Description
index int
value SearchResponse.Summary.CitationSource
Returns
Type Description
SearchResponse.Summary.Citation.Builder

setSources(int index, SearchResponse.Summary.CitationSource.Builder builderForValue)

public SearchResponse.Summary.Citation.Builder setSources(int index, SearchResponse.Summary.CitationSource.Builder builderForValue)

Citation sources for the attributed segment.

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

Parameters
Name Description
index int
builderForValue SearchResponse.Summary.CitationSource.Builder
Returns
Type Description
SearchResponse.Summary.Citation.Builder

setStartIndex(long value)

public SearchResponse.Summary.Citation.Builder setStartIndex(long value)

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

int64 start_index = 1;

Parameter
Name Description
value long

The startIndex to set.

Returns
Type Description
SearchResponse.Summary.Citation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.Citation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResponse.Summary.Citation.Builder
Overrides