Class SearchResponse.Summary.Citation.Builder (0.31.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.v1beta.SearchResponse.Summary.Citation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource>
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchResponse.Summary.Citation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameter
NameDescription
valueSearchResponse.Summary.CitationSource
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameter
NameDescription
builderForValueSearchResponse.Summary.CitationSource.Builder
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameters
NameDescription
indexint
valueSearchResponse.Summary.CitationSource
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameters
NameDescription
indexint
builderForValueSearchResponse.Summary.CitationSource.Builder
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

addSourcesBuilder()

public SearchResponse.Summary.CitationSource.Builder addSourcesBuilder()

Citation sources for the attributed segment.

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

Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.CitationSource.Builder

build()

public SearchResponse.Summary.Citation build()
Returns
TypeDescription
SearchResponse.Summary.Citation

buildPartial()

public SearchResponse.Summary.Citation buildPartial()
Returns
TypeDescription
SearchResponse.Summary.Citation

clear()

public SearchResponse.Summary.Citation.Builder clear()
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder
Overrides

clearEndIndex()

public SearchResponse.Summary.Citation.Builder clearEndIndex()

End of the attributed segment, exclusive.

int64 end_index = 2;

Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SearchResponse.Summary.Citation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchResponse.Summary.Citation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder
Overrides

clearSources()

public SearchResponse.Summary.Citation.Builder clearSources()

Citation sources for the attributed segment.

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

Returns
TypeDescription
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
TypeDescription
SearchResponse.Summary.Citation.Builder

This builder for chaining.

clone()

public SearchResponse.Summary.Citation.Builder clone()
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder
Overrides

getDefaultInstanceForType()

public SearchResponse.Summary.Citation getDefaultInstanceForType()
Returns
TypeDescription
SearchResponse.Summary.Citation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndIndex()

public long getEndIndex()

End of the attributed segment, exclusive.

int64 end_index = 2;

Returns
TypeDescription
long

The endIndex.

getSources(int index)

public SearchResponse.Summary.CitationSource getSources(int index)

Citation sources for the attributed segment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.CitationSource

getSourcesBuilder(int index)

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

Citation sources for the attributed segment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.CitationSource.Builder

getSourcesBuilderList()

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

Citation sources for the attributed segment.

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

Returns
TypeDescription
List<Builder>

getSourcesCount()

public int getSourcesCount()

Citation sources for the attributed segment.

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

Returns
TypeDescription
int

getSourcesList()

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

Citation sources for the attributed segment.

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

Returns
TypeDescription
List<CitationSource>

getSourcesOrBuilder(int index)

public SearchResponse.Summary.CitationSourceOrBuilder getSourcesOrBuilder(int index)

Citation sources for the attributed segment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.Summary.CitationSourceOrBuilder

getSourcesOrBuilderList()

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

Citation sources for the attributed segment.

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

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

getStartIndex()

public long getStartIndex()

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

int64 start_index = 1;

Returns
TypeDescription
long

The startIndex.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchResponse.Summary.Citation other)

public SearchResponse.Summary.Citation.Builder mergeFrom(SearchResponse.Summary.Citation other)
Parameter
NameDescription
otherSearchResponse.Summary.Citation
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchResponse.Summary.Citation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchResponse.Summary.Citation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.Citation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuelong

The endIndex to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameters
NameDescription
indexint
valueSearchResponse.Summary.CitationSource
Returns
TypeDescription
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;

Parameters
NameDescription
indexint
builderForValueSearchResponse.Summary.CitationSource.Builder
Returns
TypeDescription
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
NameDescription
valuelong

The startIndex to set.

Returns
TypeDescription
SearchResponse.Summary.Citation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.Summary.Citation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchResponse.Summary.Citation.Builder
Overrides