Class SearchResponse.Summary.Citation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Citation.Builder>
com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Citation.Builder
- All Implemented Interfaces:
SearchResponse.Summary.CitationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse.Summary.Citation
public static final class SearchResponse.Summary.Citation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Citation.Builder>
implements SearchResponse.Summary.CitationOrBuilder
Citation info for a segment.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Citation-
Method Summary
Modifier and TypeMethodDescriptionaddAllSources(Iterable<? extends SearchResponse.Summary.CitationSource> values) Citation sources for the attributed segment.addSources(int index, SearchResponse.Summary.CitationSource value) Citation sources for the attributed segment.addSources(int index, SearchResponse.Summary.CitationSource.Builder builderForValue) Citation sources for the attributed segment.Citation sources for the attributed segment.addSources(SearchResponse.Summary.CitationSource.Builder builderForValue) Citation sources for the attributed segment.Citation sources for the attributed segment.addSourcesBuilder(int index) Citation sources for the attributed segment.build()clear()End of the attributed segment, exclusive.Citation sources for the attributed segment.Index indicates the start of the segment, measured in bytes/unicode.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongEnd of the attributed segment, exclusive.getSources(int index) Citation sources for the attributed segment.getSourcesBuilder(int index) Citation sources for the attributed segment.Citation sources for the attributed segment.intCitation sources for the attributed segment.Citation sources for the attributed segment.getSourcesOrBuilder(int index) Citation sources for the attributed segment.Citation sources for the attributed segment.longIndex indicates the start of the segment, measured in bytes/unicode.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSources(int index) Citation sources for the attributed segment.setEndIndex(long value) End of the attributed segment, exclusive.setSources(int index, SearchResponse.Summary.CitationSource value) Citation sources for the attributed segment.setSources(int index, SearchResponse.Summary.CitationSource.Builder builderForValue) Citation sources for the attributed segment.setStartIndex(long value) Index indicates the start of the segment, measured in bytes/unicode.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Citation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Citation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Citation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.Summary.Citation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Citation.Builder>
-
mergeFrom
public SearchResponse.Summary.Citation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.Summary.Citation.Builder>- Throws:
IOException
-
getStartIndex
public long getStartIndex()Index indicates the start of the segment, measured in bytes/unicode.
int64 start_index = 1;- Specified by:
getStartIndexin interfaceSearchResponse.Summary.CitationOrBuilder- Returns:
- The startIndex.
-
setStartIndex
Index indicates the start of the segment, measured in bytes/unicode.
int64 start_index = 1;- Parameters:
value- The startIndex to set.- Returns:
- This builder for chaining.
-
clearStartIndex
Index indicates the start of the segment, measured in bytes/unicode.
int64 start_index = 1;- Returns:
- This builder for chaining.
-
getEndIndex
public long getEndIndex()End of the attributed segment, exclusive.
int64 end_index = 2;- Specified by:
getEndIndexin interfaceSearchResponse.Summary.CitationOrBuilder- Returns:
- The endIndex.
-
setEndIndex
End of the attributed segment, exclusive.
int64 end_index = 2;- Parameters:
value- The endIndex to set.- Returns:
- This builder for chaining.
-
clearEndIndex
End of the attributed segment, exclusive.
int64 end_index = 2;- Returns:
- This builder for chaining.
-
getSourcesList
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;- Specified by:
getSourcesListin interfaceSearchResponse.Summary.CitationOrBuilder
-
getSourcesCount
public int getSourcesCount()Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;- Specified by:
getSourcesCountin interfaceSearchResponse.Summary.CitationOrBuilder
-
getSources
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;- Specified by:
getSourcesin interfaceSearchResponse.Summary.CitationOrBuilder
-
setSources
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
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; -
addSources
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
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
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
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; -
addAllSources
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; -
clearSources
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3; -
removeSources
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3; -
getSourcesBuilder
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3; -
getSourcesOrBuilder
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;- Specified by:
getSourcesOrBuilderin interfaceSearchResponse.Summary.CitationOrBuilder
-
getSourcesOrBuilderList
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;- Specified by:
getSourcesOrBuilderListin interfaceSearchResponse.Summary.CitationOrBuilder
-
addSourcesBuilder
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3; -
addSourcesBuilder
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3; -
getSourcesBuilderList
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource sources = 3;
-