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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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 |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.Summary.Citation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
addSourcesBuilder()
public SearchResponse.Summary.CitationSource.Builder addSourcesBuilder()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;
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 |
Name |
Description |
index |
int
|
build()
public SearchResponse.Summary.Citation build()
buildPartial()
public SearchResponse.Summary.Citation buildPartial()
clear()
public SearchResponse.Summary.Citation.Builder clear()
Overrides
clearEndIndex()
public SearchResponse.Summary.Citation.Builder clearEndIndex()
End of the attributed segment, exclusive.
int64 end_index = 2;
clearField(Descriptors.FieldDescriptor field)
public SearchResponse.Summary.Citation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse.Summary.Citation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSources()
public SearchResponse.Summary.Citation.Builder clearSources()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;
clearStartIndex()
public SearchResponse.Summary.Citation.Builder clearStartIndex()
Index indicates the start of the segment, measured in bytes/unicode.
int64 start_index = 1;
clone()
public SearchResponse.Summary.Citation.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchResponse.Summary.Citation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v1beta.SearchResponse.Summary.CitationSource sources = 3;
Parameter |
Name |
Description |
index |
int
|
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 |
Name |
Description |
index |
int
|
getSourcesBuilderList()
public List<SearchResponse.Summary.CitationSource.Builder> getSourcesBuilderList()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;
getSourcesCount()
public int getSourcesCount()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.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.v1beta.SearchResponse.Summary.CitationSource sources = 3;
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 |
Name |
Description |
index |
int
|
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 |
Type |
Description |
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 |
Type |
Description |
long |
The startIndex.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchResponse.Summary.Citation other)
public SearchResponse.Summary.Citation.Builder mergeFrom(SearchResponse.Summary.Citation other)
public SearchResponse.Summary.Citation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchResponse.Summary.Citation.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.Summary.Citation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
Name |
Description |
index |
int
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.Summary.Citation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResponse.Summary.Citation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.Summary.Citation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides