Class QuotedMessageSnapshot.Builder (0.49.0)

public static final class QuotedMessageSnapshot.Builder extends GeneratedMessage.Builder<QuotedMessageSnapshot.Builder> 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 Methods

getDescriptor()

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

Methods

addAllAnnotations(Iterable<? extends Annotation> values)

public QuotedMessageSnapshot.Builder addAllAnnotations(Iterable<? extends Annotation> values)

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
values Iterable<? extends com.google.chat.v1.Annotation>
Returns
Type Description
QuotedMessageSnapshot.Builder

addAllAttachments(Iterable<? extends Attachment> values)

public QuotedMessageSnapshot.Builder addAllAttachments(Iterable<? extends Attachment> values)

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
values Iterable<? extends com.google.chat.v1.Attachment>
Returns
Type Description
QuotedMessageSnapshot.Builder

addAnnotations(Annotation value)

public QuotedMessageSnapshot.Builder addAnnotations(Annotation value)

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
value Annotation
Returns
Type Description
QuotedMessageSnapshot.Builder

addAnnotations(Annotation.Builder builderForValue)

public QuotedMessageSnapshot.Builder addAnnotations(Annotation.Builder builderForValue)

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
builderForValue Annotation.Builder
Returns
Type Description
QuotedMessageSnapshot.Builder

addAnnotations(int index, Annotation value)

public QuotedMessageSnapshot.Builder addAnnotations(int index, Annotation value)

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];

Parameters
Name Description
index int
value Annotation
Returns
Type Description
QuotedMessageSnapshot.Builder

addAnnotations(int index, Annotation.Builder builderForValue)

public QuotedMessageSnapshot.Builder addAnnotations(int index, Annotation.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Annotation.Builder
Returns
Type Description
QuotedMessageSnapshot.Builder

addAnnotationsBuilder()

public Annotation.Builder addAnnotationsBuilder()

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
Annotation.Builder

addAnnotationsBuilder(int index)

public Annotation.Builder addAnnotationsBuilder(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.Builder

addAttachments(Attachment value)

public QuotedMessageSnapshot.Builder addAttachments(Attachment value)

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
value Attachment
Returns
Type Description
QuotedMessageSnapshot.Builder

addAttachments(Attachment.Builder builderForValue)

public QuotedMessageSnapshot.Builder addAttachments(Attachment.Builder builderForValue)

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
builderForValue Attachment.Builder
Returns
Type Description
QuotedMessageSnapshot.Builder

addAttachments(int index, Attachment value)

public QuotedMessageSnapshot.Builder addAttachments(int index, Attachment value)

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];

Parameters
Name Description
index int
value Attachment
Returns
Type Description
QuotedMessageSnapshot.Builder

addAttachments(int index, Attachment.Builder builderForValue)

public QuotedMessageSnapshot.Builder addAttachments(int index, Attachment.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Attachment.Builder
Returns
Type Description
QuotedMessageSnapshot.Builder

addAttachmentsBuilder()

public Attachment.Builder addAttachmentsBuilder()

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
Attachment.Builder

addAttachmentsBuilder(int index)

public Attachment.Builder addAttachmentsBuilder(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.Builder

build()

public QuotedMessageSnapshot build()
Returns
Type Description
QuotedMessageSnapshot

buildPartial()

public QuotedMessageSnapshot buildPartial()
Returns
Type Description
QuotedMessageSnapshot

clear()

public QuotedMessageSnapshot.Builder clear()
Returns
Type Description
QuotedMessageSnapshot.Builder
Overrides

clearAnnotations()

public QuotedMessageSnapshot.Builder clearAnnotations()

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
QuotedMessageSnapshot.Builder

clearAttachments()

public QuotedMessageSnapshot.Builder clearAttachments()

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
QuotedMessageSnapshot.Builder

clearFormattedText()

public QuotedMessageSnapshot.Builder clearFormattedText()

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
QuotedMessageSnapshot.Builder

This builder for chaining.

clearSender()

public QuotedMessageSnapshot.Builder clearSender()

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
QuotedMessageSnapshot.Builder

This builder for chaining.

clearText()

public QuotedMessageSnapshot.Builder clearText()

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

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

Returns
Type Description
QuotedMessageSnapshot.Builder

This builder for chaining.

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

getAnnotationsBuilder(int index)

public Annotation.Builder getAnnotationsBuilder(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.Builder

getAnnotationsBuilderList()

public List<Annotation.Builder> getAnnotationsBuilderList()

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<Builder>

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

getAttachmentsBuilder(int index)

public Attachment.Builder getAttachmentsBuilder(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.Builder

getAttachmentsBuilderList()

public List<Attachment.Builder> getAttachmentsBuilderList()

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<Builder>

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QuotedMessageSnapshot other)

public QuotedMessageSnapshot.Builder mergeFrom(QuotedMessageSnapshot other)
Parameter
Name Description
other QuotedMessageSnapshot
Returns
Type Description
QuotedMessageSnapshot.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QuotedMessageSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QuotedMessageSnapshot.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QuotedMessageSnapshot.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QuotedMessageSnapshot.Builder
Overrides

removeAnnotations(int index)

public QuotedMessageSnapshot.Builder removeAnnotations(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
QuotedMessageSnapshot.Builder

removeAttachments(int index)

public QuotedMessageSnapshot.Builder removeAttachments(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
QuotedMessageSnapshot.Builder

setAnnotations(int index, Annotation value)

public QuotedMessageSnapshot.Builder setAnnotations(int index, Annotation value)

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];

Parameters
Name Description
index int
value Annotation
Returns
Type Description
QuotedMessageSnapshot.Builder

setAnnotations(int index, Annotation.Builder builderForValue)

public QuotedMessageSnapshot.Builder setAnnotations(int index, Annotation.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Annotation.Builder
Returns
Type Description
QuotedMessageSnapshot.Builder

setAttachments(int index, Attachment value)

public QuotedMessageSnapshot.Builder setAttachments(int index, Attachment value)

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];

Parameters
Name Description
index int
value Attachment
Returns
Type Description
QuotedMessageSnapshot.Builder

setAttachments(int index, Attachment.Builder builderForValue)

public QuotedMessageSnapshot.Builder setAttachments(int index, Attachment.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Attachment.Builder
Returns
Type Description
QuotedMessageSnapshot.Builder

setFormattedText(String value)

public QuotedMessageSnapshot.Builder setFormattedText(String value)

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];

Parameter
Name Description
value String

The formattedText to set.

Returns
Type Description
QuotedMessageSnapshot.Builder

This builder for chaining.

setFormattedTextBytes(ByteString value)

public QuotedMessageSnapshot.Builder setFormattedTextBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for formattedText to set.

Returns
Type Description
QuotedMessageSnapshot.Builder

This builder for chaining.

setSender(String value)

public QuotedMessageSnapshot.Builder setSender(String value)

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

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

Parameter
Name Description
value String

The sender to set.

Returns
Type Description
QuotedMessageSnapshot.Builder

This builder for chaining.

setSenderBytes(ByteString value)

public QuotedMessageSnapshot.Builder setSenderBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for sender to set.

Returns
Type Description
QuotedMessageSnapshot.Builder

This builder for chaining.

setText(String value)

public QuotedMessageSnapshot.Builder setText(String value)

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

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

Parameter
Name Description
value String

The text to set.

Returns
Type Description
QuotedMessageSnapshot.Builder

This builder for chaining.

setTextBytes(ByteString value)

public QuotedMessageSnapshot.Builder setTextBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
QuotedMessageSnapshot.Builder

This builder for chaining.