Class CitationAnchor.TextMessageCitationAnchor (0.21.0)

public static final class CitationAnchor.TextMessageCitationAnchor extends GeneratedMessage implements CitationAnchor.TextMessageCitationAnchorOrBuilder

Citation anchor within a TextMessage.

Protobuf type google.cloud.geminidataanalytics.v1beta.CitationAnchor.TextMessageCitationAnchor

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CitationAnchor.TextMessageCitationAnchor

Static Fields

END_OFFSET_BYTES_FIELD_NUMBER

public static final int END_OFFSET_BYTES_FIELD_NUMBER
Field Value
Type Description
int

PART_INDEX_FIELD_NUMBER

public static final int PART_INDEX_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_IDS_FIELD_NUMBER

public static final int SOURCE_IDS_FIELD_NUMBER
Field Value
Type Description
int

START_OFFSET_BYTES_FIELD_NUMBER

public static final int START_OFFSET_BYTES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CitationAnchor.TextMessageCitationAnchor getDefaultInstance()
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor

getDescriptor()

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

newBuilder()

public static CitationAnchor.TextMessageCitationAnchor.Builder newBuilder()
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor.Builder

newBuilder(CitationAnchor.TextMessageCitationAnchor prototype)

public static CitationAnchor.TextMessageCitationAnchor.Builder newBuilder(CitationAnchor.TextMessageCitationAnchor prototype)
Parameter
Name Description
prototype CitationAnchor.TextMessageCitationAnchor
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor.Builder

parseDelimitedFrom(InputStream input)

public static CitationAnchor.TextMessageCitationAnchor parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CitationAnchor.TextMessageCitationAnchor parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CitationAnchor.TextMessageCitationAnchor parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CitationAnchor.TextMessageCitationAnchor> parser()
Returns
Type Description
Parser<TextMessageCitationAnchor>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CitationAnchor.TextMessageCitationAnchor getDefaultInstanceForType()
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor

getEndOffsetBytes()

public 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.

getParserForType()

public Parser<CitationAnchor.TextMessageCitationAnchor> getParserForType()
Returns
Type Description
Parser<TextMessageCitationAnchor>
Overrides

getPartIndex()

public 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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceIds(int index)

public 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 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 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 ProtocolStringList 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
ProtocolStringList

A list containing the sourceIds.

getStartOffsetBytes()

public 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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CitationAnchor.TextMessageCitationAnchor.Builder newBuilderForType()
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CitationAnchor.TextMessageCitationAnchor.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor.Builder
Overrides

toBuilder()

public CitationAnchor.TextMessageCitationAnchor.Builder toBuilder()
Returns
Type Description
CitationAnchor.TextMessageCitationAnchor.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException