Interface CitationAnchor.TextMessageCitationAnchorOrBuilder (0.21.0)

public static interface CitationAnchor.TextMessageCitationAnchorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndOffsetBytes()

public abstract int getEndOffsetBytes()

Output only. The offset, measured in UTF-8 bytes, within the part string where the citation ends (exclusive). Example: For the text "Hello, world" where "world" is cited, the start offset bytes (inclusive) is 7 and the end offset bytes (exclusive) is 12.

int32 end_offset_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The endOffsetBytes.

getPartIndex()

public abstract int getPartIndex()

Output only. The 0-based index of the part within the TextMessage.parts field.

int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The partIndex.

getSourceIds(int index)

public abstract String getSourceIds(int index)

Output only. The ids of the sources that are cited.

repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The sourceIds at the given index.

getSourceIdsBytes(int index)

public abstract ByteString getSourceIdsBytes(int index)

Output only. The ids of the sources that are cited.

repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the sourceIds at the given index.

getSourceIdsCount()

public abstract int getSourceIdsCount()

Output only. The ids of the sources that are cited.

repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of sourceIds.

getSourceIdsList()

public abstract List<String> getSourceIdsList()

Output only. The ids of the sources that are cited.

repeated string source_ids = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<String>

A list containing the sourceIds.

getStartOffsetBytes()

public abstract int getStartOffsetBytes()

Output only. The offset, measured in UTF-8 bytes, within the part string where the citation begins (inclusive). Example: For the text "Hello, world" where "world" is cited, the start offset bytes (inclusive) is 7 and the end offset bytes (exclusive) is 12.

int32 start_offset_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The startOffsetBytes.