public static interface Answer.AnswerCitationOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getEndIndex()
public abstract 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 abstract 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 |
|
getSourcesCount()
public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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. |