public final class QuotedMessageMetadata extends GeneratedMessage implements QuotedMessageMetadataOrBuilder
Information about a message that another message quotes.
When you create a message, you can quote messages within the same
thread, or quote a root message to create a new root message.
However, you can't quote a message reply from a different thread.
When you update a message, you can't add or replace the
quotedMessageMetadata field, but you can remove it.
For example usage, see Quote another
message.
Protobuf type google.chat.v1.QuotedMessageMetadata
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int FORWARDED_METADATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int LAST_UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int QUOTED_MESSAGE_SNAPSHOT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int QUOTE_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static QuotedMessageMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static QuotedMessageMetadata.Builder newBuilder()
public static QuotedMessageMetadata.Builder newBuilder(QuotedMessageMetadata prototype)
public static QuotedMessageMetadata parseDelimitedFrom(InputStream input)
public static QuotedMessageMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotedMessageMetadata parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static QuotedMessageMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QuotedMessageMetadata parseFrom(ByteString data)
public static QuotedMessageMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QuotedMessageMetadata parseFrom(CodedInputStream input)
public static QuotedMessageMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotedMessageMetadata parseFrom(InputStream input)
public static QuotedMessageMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotedMessageMetadata parseFrom(ByteBuffer data)
public static QuotedMessageMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<QuotedMessageMetadata> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public QuotedMessageMetadata getDefaultInstanceForType()
public ForwardedMetadata getForwardedMetadata()
Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.
.google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder()
Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.
.google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp getLastUpdateTime()
Required. The timestamp when the quoted message was created or when the
quoted message was last updated.
If the message was edited, use this field, last_update_time.
If the message was never edited, use create_time.
If last_update_time doesn't match the latest version of the quoted
message, the request fails.
.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Timestamp |
The lastUpdateTime.
|
public TimestampOrBuilder getLastUpdateTimeOrBuilder()
Required. The timestamp when the quoted message was created or when the
quoted message was last updated.
If the message was edited, use this field, last_update_time.
If the message was never edited, use create_time.
If last_update_time doesn't match the latest version of the quoted
message, the request fails.
.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED];
Required. Resource name of the message that is quoted.
Format: spaces/{space}/messages/{message}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Required. Resource name of the message that is quoted.
Format: spaces/{space}/messages/{message}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
public Parser<QuotedMessageMetadata> getParserForType()
Overrides
public QuotedMessageMetadata.QuoteType getQuoteType()
Optional. Specifies the quote type. If not set, defaults to REPLY in the
message read/write path for backward compatibility.
.google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
public int getQuoteTypeValue()
Optional. Specifies the quote type. If not set, defaults to REPLY in the
message read/write path for backward compatibility.
.google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for quoteType.
|
public QuotedMessageSnapshot getQuotedMessageSnapshot()
Output only. A snapshot of the quoted message's content.
.google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder()
Output only. A snapshot of the quoted message's content.
.google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public boolean hasForwardedMetadata()
Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.
.google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the forwardedMetadata field is set.
|
public boolean hasLastUpdateTime()
Required. The timestamp when the quoted message was created or when the
quoted message was last updated.
If the message was edited, use this field, last_update_time.
If the message was never edited, use create_time.
If last_update_time doesn't match the latest version of the quoted
message, the request fails.
.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the lastUpdateTime field is set.
|
public boolean hasQuotedMessageSnapshot()
Output only. A snapshot of the quoted message's content.
.google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the quotedMessageSnapshot field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public QuotedMessageMetadata.Builder newBuilderForType()
protected QuotedMessageMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public QuotedMessageMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides