public static final class Answer.Citation.Builder extends GeneratedMessageV3.Builder<Answer.Citation.Builder> implements Answer.CitationOrBuilder
Citation info for a segment.
Protobuf type google.cloud.discoveryengine.v1beta.Answer.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 Answer.CitationSource> values)
public Answer.Citation.Builder addAllSources(Iterable<? extends Answer.CitationSource> values)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationSource>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Answer.Citation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSources(Answer.CitationSource value)
public Answer.Citation.Builder addSources(Answer.CitationSource value)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
addSources(Answer.CitationSource.Builder builderForValue)
public Answer.Citation.Builder addSources(Answer.CitationSource.Builder builderForValue)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
addSources(int index, Answer.CitationSource value)
public Answer.Citation.Builder addSources(int index, Answer.CitationSource value)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
addSources(int index, Answer.CitationSource.Builder builderForValue)
public Answer.Citation.Builder addSources(int index, Answer.CitationSource.Builder builderForValue)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
addSourcesBuilder()
public Answer.CitationSource.Builder addSourcesBuilder()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
addSourcesBuilder(int index)
public Answer.CitationSource.Builder addSourcesBuilder(int index)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Parameter |
Name |
Description |
index |
int
|
build()
public Answer.Citation build()
buildPartial()
public Answer.Citation buildPartial()
clear()
public Answer.Citation.Builder clear()
Overrides
clearEndIndex()
public Answer.Citation.Builder clearEndIndex()
End of the attributed segment, exclusive.
int64 end_index = 2;
clearField(Descriptors.FieldDescriptor field)
public Answer.Citation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Answer.Citation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSources()
public Answer.Citation.Builder clearSources()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
clearStartIndex()
public Answer.Citation.Builder clearStartIndex()
Index indicates the start of the segment, measured in bytes (UTF-8
unicode).
int64 start_index = 1;
clone()
public Answer.Citation.Builder clone()
Overrides
getDefaultInstanceForType()
public Answer.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 Answer.CitationSource getSources(int index)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Parameter |
Name |
Description |
index |
int
|
getSourcesBuilder(int index)
public Answer.CitationSource.Builder getSourcesBuilder(int index)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Parameter |
Name |
Description |
index |
int
|
getSourcesBuilderList()
public List<Answer.CitationSource.Builder> getSourcesBuilderList()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
getSourcesCount()
public int getSourcesCount()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Returns |
Type |
Description |
int |
|
getSourcesList()
public List<Answer.CitationSource> getSourcesList()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
getSourcesOrBuilder(int index)
public Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Parameter |
Name |
Description |
index |
int
|
getSourcesOrBuilderList()
public List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder> |
|
getStartIndex()
public long getStartIndex()
Index indicates the start of the segment, measured in bytes (UTF-8
unicode).
int64 start_index = 1;
Returns |
Type |
Description |
long |
The startIndex.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Answer.Citation other)
public Answer.Citation.Builder mergeFrom(Answer.Citation other)
public Answer.Citation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Answer.Citation.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Answer.Citation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeSources(int index)
public Answer.Citation.Builder removeSources(int index)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
Parameter |
Name |
Description |
index |
int
|
setEndIndex(long value)
public Answer.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 Answer.Citation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Answer.Citation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSources(int index, Answer.CitationSource value)
public Answer.Citation.Builder setSources(int index, Answer.CitationSource value)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
setSources(int index, Answer.CitationSource.Builder builderForValue)
public Answer.Citation.Builder setSources(int index, Answer.CitationSource.Builder builderForValue)
Citation sources for the attributed segment.
repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
setStartIndex(long value)
public Answer.Citation.Builder setStartIndex(long value)
Index indicates the start of the segment, measured in bytes (UTF-8
unicode).
int64 start_index = 1;
Parameter |
Name |
Description |
value |
long
The startIndex to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Answer.Citation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides