public final class Message extends com.google.protobuf.GeneratedMessage implements MessageOrBuilder
A scheduled message.Protobuf type
satori.api.Message
Modifier and Type | Class and Description |
---|---|
static class |
Message.Builder
A scheduled message.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
CONSUME_TIME_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
IMAGE_URL_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
READ_TIME_FIELD_NUMBER |
static int |
SCHEDULE_ID_FIELD_NUMBER |
static int |
SEND_TIME_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsMetadata(java.lang.String key)
A key-value pairs of metadata.
|
boolean |
equals(java.lang.Object obj) |
long |
getConsumeTime()
The time the message was consumed by the identity.
|
long |
getCreateTime()
The time the message was created.
|
static Message |
getDefaultInstance() |
Message |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getId()
The message's unique identifier.
|
com.google.protobuf.ByteString |
getIdBytes()
The message's unique identifier.
|
java.lang.String |
getImageUrl()
The message's image url.
|
com.google.protobuf.ByteString |
getImageUrlBytes()
The message's image url.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
A key-value pairs of metadata.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadataMap()
A key-value pairs of metadata.
|
java.lang.String |
getMetadataOrDefault(java.lang.String key,
java.lang.String defaultValue)
A key-value pairs of metadata.
|
java.lang.String |
getMetadataOrThrow(java.lang.String key)
A key-value pairs of metadata.
|
com.google.protobuf.Parser<Message> |
getParserForType() |
long |
getReadTime()
The time the message was read by the client.
|
java.lang.String |
getScheduleId()
The identifier of the schedule.
|
com.google.protobuf.ByteString |
getScheduleIdBytes()
The identifier of the schedule.
|
long |
getSendTime()
The send time for the message.
|
int |
getSerializedSize() |
java.lang.String |
getText()
The message's text.
|
com.google.protobuf.ByteString |
getTextBytes()
The message's text.
|
java.lang.String |
getTitle()
The message's title.
|
com.google.protobuf.ByteString |
getTitleBytes()
The message's title.
|
long |
getUpdateTime()
The time the message was updated.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Message.Builder |
newBuilder() |
static Message.Builder |
newBuilder(Message prototype) |
Message.Builder |
newBuilderForType() |
protected Message.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Message |
parseDelimitedFrom(java.io.InputStream input) |
static Message |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(byte[] data) |
static Message |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(java.nio.ByteBuffer data) |
static Message |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(com.google.protobuf.ByteString data) |
static Message |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Message |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Message |
parseFrom(java.io.InputStream input) |
static Message |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Message> |
parser() |
Message.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int SCHEDULE_ID_FIELD_NUMBER
public static final int SEND_TIME_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
public static final int CONSUME_TIME_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int IMAGE_URL_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection
in class com.google.protobuf.GeneratedMessage
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public java.lang.String getScheduleId()
The identifier of the schedule.
string schedule_id = 1 [json_name = "scheduleId"];
public com.google.protobuf.ByteString getScheduleIdBytes()
The identifier of the schedule.
string schedule_id = 1 [json_name = "scheduleId"];
public long getSendTime()
The send time for the message.
int64 send_time = 2 [json_name = "sendTime"];
public int getMetadataCount()
MessageOrBuilder
A key-value pairs of metadata.
map<string, string> metadata = 3 [json_name = "metadata"];
public boolean containsMetadata(java.lang.String key)
A key-value pairs of metadata.
map<string, string> metadata = 3 [json_name = "metadata"];
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadataMap()
instead.public java.util.Map<java.lang.String,java.lang.String> getMetadataMap()
A key-value pairs of metadata.
map<string, string> metadata = 3 [json_name = "metadata"];
public java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue)
A key-value pairs of metadata.
map<string, string> metadata = 3 [json_name = "metadata"];
public java.lang.String getMetadataOrThrow(java.lang.String key)
A key-value pairs of metadata.
map<string, string> metadata = 3 [json_name = "metadata"];
public long getCreateTime()
The time the message was created.
int64 create_time = 4 [json_name = "createTime"];
public long getUpdateTime()
The time the message was updated.
int64 update_time = 5 [json_name = "updateTime"];
public long getReadTime()
The time the message was read by the client.
int64 read_time = 6 [json_name = "readTime"];
public long getConsumeTime()
The time the message was consumed by the identity.
int64 consume_time = 7 [json_name = "consumeTime"];
public java.lang.String getText()
The message's text.
string text = 8 [json_name = "text"];
public com.google.protobuf.ByteString getTextBytes()
The message's text.
string text = 8 [json_name = "text"];
public java.lang.String getId()
The message's unique identifier.
string id = 9 [json_name = "id"];
public com.google.protobuf.ByteString getIdBytes()
The message's unique identifier.
string id = 9 [json_name = "id"];
public java.lang.String getTitle()
The message's title.
string title = 10 [json_name = "title"];
public com.google.protobuf.ByteString getTitleBytes()
The message's title.
string title = 10 [json_name = "title"];
public java.lang.String getImageUrl()
The message's image url.
string image_url = 11 [json_name = "imageUrl"];
public com.google.protobuf.ByteString getImageUrlBytes()
The message's image url.
string image_url = 11 [json_name = "imageUrl"];
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Message parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Message parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Message parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Message parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Message parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Message parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Message parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Message parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Message parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Message parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Message.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Message.Builder newBuilder()
public static Message.Builder newBuilder(Message prototype)
public Message.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Message.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static Message getDefaultInstance()
public static com.google.protobuf.Parser<Message> parser()
public com.google.protobuf.Parser<Message> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public Message getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder