public static final class Answer.AnswerCitation.Builder extends GeneratedMessage.Builder<Answer.AnswerCitation.Builder> implements Answer.AnswerCitationOrBuilderCitation info for a segment.
Protobuf type google.developers.knowledge.v1.Answer.AnswerCitation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Answer.AnswerCitation.BuilderImplements
Answer.AnswerCitationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSources(Iterable<? extends Answer.CitationSource> values)
public Answer.AnswerCitation.Builder addAllSources(Iterable<? extends Answer.CitationSource> values)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.developers.knowledge.v1.Answer.CitationSource> |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
addSources(Answer.CitationSource value)
public Answer.AnswerCitation.Builder addSources(Answer.CitationSource value)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Answer.CitationSource |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
addSources(Answer.CitationSource.Builder builderForValue)
public Answer.AnswerCitation.Builder addSources(Answer.CitationSource.Builder builderForValue)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Answer.CitationSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
addSources(int index, Answer.CitationSource value)
public Answer.AnswerCitation.Builder addSources(int index, Answer.CitationSource value)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Answer.CitationSource |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
addSources(int index, Answer.CitationSource.Builder builderForValue)
public Answer.AnswerCitation.Builder addSources(int index, Answer.CitationSource.Builder builderForValue)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Answer.CitationSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
addSourcesBuilder()
public Answer.CitationSource.Builder addSourcesBuilder()Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Answer.CitationSource.Builder |
|
addSourcesBuilder(int index)
public Answer.CitationSource.Builder addSourcesBuilder(int index)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Answer.CitationSource.Builder |
|
build()
public Answer.AnswerCitation build()| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation |
|
buildPartial()
public Answer.AnswerCitation buildPartial()| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation |
|
clear()
public Answer.AnswerCitation.Builder clear()| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
clearEndIndex()
public Answer.AnswerCitation.Builder clearEndIndex()Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
This builder for chaining. |
clearSources()
public Answer.AnswerCitation.Builder clearSources()Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
clearStartIndex()
public Answer.AnswerCitation.Builder clearStartIndex()Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Answer.AnswerCitation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndIndex()
public int getEndIndex()Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The endIndex. |
getSources(int index)
public Answer.CitationSource getSources(int index)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Answer.CitationSource |
|
getSourcesBuilder(int index)
public Answer.CitationSource.Builder getSourcesBuilder(int index)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Answer.CitationSource.Builder |
|
getSourcesBuilderList()
public List<Answer.CitationSource.Builder> getSourcesBuilderList()Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSourcesCount()
public int getSourcesCount()Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSourcesList()
public List<Answer.CitationSource> getSourcesList()Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<CitationSource> |
|
getSourcesOrBuilder(int index)
public Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Answer.CitationSourceOrBuilder |
|
getSourcesOrBuilderList()
public List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.developers.knowledge.v1.Answer.CitationSourceOrBuilder> |
|
getStartIndex()
public int getStartIndex()Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The startIndex. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Answer.AnswerCitation other)
public Answer.AnswerCitation.Builder mergeFrom(Answer.AnswerCitation other)| Parameter | |
|---|---|
| Name | Description |
other |
Answer.AnswerCitation |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Answer.AnswerCitation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Answer.AnswerCitation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
removeSources(int index)
public Answer.AnswerCitation.Builder removeSources(int index)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
setEndIndex(int value)
public Answer.AnswerCitation.Builder setEndIndex(int value)Output only. Indicates the end of the segment, measured in bytes (UTF-8 unicode), exclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe endIndex to set. |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
This builder for chaining. |
setSources(int index, Answer.CitationSource value)
public Answer.AnswerCitation.Builder setSources(int index, Answer.CitationSource value)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Answer.CitationSource |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
setSources(int index, Answer.CitationSource.Builder builderForValue)
public Answer.AnswerCitation.Builder setSources(int index, Answer.CitationSource.Builder builderForValue)Output only. Contains citation sources for the attributed segment.
repeated .google.developers.knowledge.v1.Answer.CitationSource sources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Answer.CitationSource.Builder |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
|
setStartIndex(int value)
public Answer.AnswerCitation.Builder setStartIndex(int value)Output only. Indicates the start of the segment, measured in bytes (UTF-8 unicode), inclusive. If there are multi-byte characters, such as non-ASCII characters, the index measurement is longer than the string length.
int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe startIndex to set. |
| Returns | |
|---|---|
| Type | Description |
Answer.AnswerCitation.Builder |
This builder for chaining. |