Class Answer.Citation.Builder (0.42.0)

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.v1alpha.Answer.Citation

Static Methods

getDescriptor()

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

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.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1alpha.Answer.CitationSource>
Returns
Type Description
Answer.Citation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSources(Answer.CitationSource value)

public Answer.Citation.Builder addSources(Answer.CitationSource value)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
value Answer.CitationSource
Returns
Type Description
Answer.Citation.Builder

addSources(Answer.CitationSource.Builder builderForValue)

public Answer.Citation.Builder addSources(Answer.CitationSource.Builder builderForValue)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
builderForValue Answer.CitationSource.Builder
Returns
Type Description
Answer.Citation.Builder

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.v1alpha.Answer.CitationSource sources = 3;

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

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.v1alpha.Answer.CitationSource sources = 3;

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

addSourcesBuilder()

public Answer.CitationSource.Builder addSourcesBuilder()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
Answer.CitationSource.Builder

addSourcesBuilder(int index)

public Answer.CitationSource.Builder addSourcesBuilder(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
index int
Returns
Type Description
Answer.CitationSource.Builder

build()

public Answer.Citation build()
Returns
Type Description
Answer.Citation

buildPartial()

public Answer.Citation buildPartial()
Returns
Type Description
Answer.Citation

clear()

public Answer.Citation.Builder clear()
Returns
Type Description
Answer.Citation.Builder
Overrides

clearEndIndex()

public Answer.Citation.Builder clearEndIndex()

End of the attributed segment, exclusive.

int64 end_index = 2;

Returns
Type Description
Answer.Citation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSources()

public Answer.Citation.Builder clearSources()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
Answer.Citation.Builder

clearStartIndex()

public Answer.Citation.Builder clearStartIndex()

Index indicates the start of the segment, measured in bytes (UTF-8 unicode).

int64 start_index = 1;

Returns
Type Description
Answer.Citation.Builder

This builder for chaining.

clone()

public Answer.Citation.Builder clone()
Returns
Type Description
Answer.Citation.Builder
Overrides

getDefaultInstanceForType()

public Answer.Citation getDefaultInstanceForType()
Returns
Type Description
Answer.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 Answer.CitationSource getSources(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
index int
Returns
Type Description
Answer.CitationSource

getSourcesBuilder(int index)

public Answer.CitationSource.Builder getSourcesBuilder(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
index int
Returns
Type Description
Answer.CitationSource.Builder

getSourcesBuilderList()

public List<Answer.CitationSource.Builder> getSourcesBuilderList()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
List<Builder>

getSourcesCount()

public int getSourcesCount()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
int

getSourcesList()

public List<Answer.CitationSource> getSourcesList()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
List<CitationSource>

getSourcesOrBuilder(int index)

public Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
index int
Returns
Type Description
Answer.CitationSourceOrBuilder

getSourcesOrBuilderList()

public List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Answer.Citation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSources(int index)

public Answer.Citation.Builder removeSources(int index)

Citation sources for the attributed segment.

repeated .google.cloud.discoveryengine.v1alpha.Answer.CitationSource sources = 3;

Parameter
Name Description
index int
Returns
Type Description
Answer.Citation.Builder

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.

Returns
Type Description
Answer.Citation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Answer.Citation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Answer.Citation.Builder
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.v1alpha.Answer.CitationSource sources = 3;

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

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.v1alpha.Answer.CitationSource sources = 3;

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

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.

Returns
Type Description
Answer.Citation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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