Class QuotedMessageSnapshot (0.49.0)

public final class QuotedMessageSnapshot extends GeneratedMessage implements QuotedMessageSnapshotOrBuilder

Provides a snapshot of the content of the quoted message at the time of quoting or forwarding

Protobuf type google.chat.v1.QuotedMessageSnapshot

Static Fields

ANNOTATIONS_FIELD_NUMBER

public static final int ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

ATTACHMENTS_FIELD_NUMBER

public static final int ATTACHMENTS_FIELD_NUMBER
Field Value
Type Description
int

FORMATTED_TEXT_FIELD_NUMBER

public static final int FORMATTED_TEXT_FIELD_NUMBER
Field Value
Type Description
int

SENDER_FIELD_NUMBER

public static final int SENDER_FIELD_NUMBER
Field Value
Type Description
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QuotedMessageSnapshot getDefaultInstance()
Returns
Type Description
QuotedMessageSnapshot

getDescriptor()

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

newBuilder()

public static QuotedMessageSnapshot.Builder newBuilder()
Returns
Type Description
QuotedMessageSnapshot.Builder

newBuilder(QuotedMessageSnapshot prototype)

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

parseDelimitedFrom(InputStream input)

public static QuotedMessageSnapshot parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotedMessageSnapshot
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static QuotedMessageSnapshot parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QuotedMessageSnapshot
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static QuotedMessageSnapshot parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QuotedMessageSnapshot
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static QuotedMessageSnapshot parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QuotedMessageSnapshot
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static QuotedMessageSnapshot parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QuotedMessageSnapshot
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<QuotedMessageSnapshot> parser()
Returns
Type Description
Parser<QuotedMessageSnapshot>

Methods

equals(Object obj)

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

getAnnotations(int index)

public Annotation getAnnotations(int index)

Output only. Annotations parsed from the text body of the quoted message. Populated only for FORWARD quote type.

repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Annotation

getAnnotationsCount()

public int getAnnotationsCount()

Output only. Annotations parsed from the text body of the quoted message. Populated only for FORWARD quote type.

repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAnnotationsList()

public List<Annotation> getAnnotationsList()

Output only. Annotations parsed from the text body of the quoted message. Populated only for FORWARD quote type.

repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Annotation>

getAnnotationsOrBuilder(int index)

public AnnotationOrBuilder getAnnotationsOrBuilder(int index)

Output only. Annotations parsed from the text body of the quoted message. Populated only for FORWARD quote type.

repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AnnotationOrBuilder

getAnnotationsOrBuilderList()

public List<? extends AnnotationOrBuilder> getAnnotationsOrBuilderList()

Output only. Annotations parsed from the text body of the quoted message. Populated only for FORWARD quote type.

repeated .google.chat.v1.Annotation annotations = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.chat.v1.AnnotationOrBuilder>

getAttachments(int index)

public Attachment getAttachments(int index)

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Attachment

getAttachmentsCount()

public int getAttachmentsCount()

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAttachmentsList()

public List<Attachment> getAttachmentsList()

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Attachment>

getAttachmentsOrBuilder(int index)

public AttachmentOrBuilder getAttachmentsOrBuilder(int index)

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AttachmentOrBuilder

getAttachmentsOrBuilderList()

public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

repeated .google.chat.v1.Attachment attachments = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.chat.v1.AttachmentOrBuilder>

getDefaultInstanceForType()

public QuotedMessageSnapshot getDefaultInstanceForType()
Returns
Type Description
QuotedMessageSnapshot

getFormattedText()

public String getFormattedText()

Output only. Contains the quoted message text with markups added to support rich formatting like hyperlinks,custom emojis, markup, etc. Populated only for FORWARD quote type.

string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The formattedText.

getFormattedTextBytes()

public ByteString getFormattedTextBytes()

Output only. Contains the quoted message text with markups added to support rich formatting like hyperlinks,custom emojis, markup, etc. Populated only for FORWARD quote type.

string formatted_text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for formattedText.

getParserForType()

public Parser<QuotedMessageSnapshot> getParserForType()
Returns
Type Description
Parser<QuotedMessageSnapshot>
Overrides

getSender()

public String getSender()

Output only. The quoted message's author name. Populated for both REPLY & FORWARD quote types.

string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The sender.

getSenderBytes()

public ByteString getSenderBytes()

Output only. The quoted message's author name. Populated for both REPLY & FORWARD quote types.

string sender = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for sender.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getText()

public String getText()

Output only. Snapshot of the quoted message's text content.

string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Output only. Snapshot of the quoted message's text content.

string text = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for text.

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 QuotedMessageSnapshot.Builder newBuilderForType()
Returns
Type Description
QuotedMessageSnapshot.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public QuotedMessageSnapshot.Builder toBuilder()
Returns
Type Description
QuotedMessageSnapshot.Builder

writeTo(CodedOutputStream output)

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