public final class AlertData extends GeneratedMessageV3 implements AlertDataOrBuilder
The data within all Firebase Alerts.
Protobuf type google.events.firebase.firebasealerts.v1.AlertData
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AlertDataImplements
AlertDataOrBuilderStatic Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AlertData getDefaultInstance()
Returns | |
---|---|
Type | Description |
AlertData |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static AlertData.Builder newBuilder()
Returns | |
---|---|
Type | Description |
AlertData.Builder |
newBuilder(AlertData prototype)
public static AlertData.Builder newBuilder(AlertData prototype)
Parameter | |
---|---|
Name | Description |
prototype |
AlertData |
Returns | |
---|---|
Type | Description |
AlertData.Builder |
parseDelimitedFrom(InputStream input)
public static AlertData parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AlertData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static AlertData parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AlertData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AlertData parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AlertData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AlertData parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AlertData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static AlertData parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AlertData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AlertData parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AlertData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AlertData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AlertData> parser()
Returns | |
---|---|
Type | Description |
Parser<AlertData> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Time that the event has created
.google.protobuf.Timestamp create_time = 1;
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Time that the event has created
.google.protobuf.Timestamp create_time = 1;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public AlertData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AlertData |
getEndTime()
public Timestamp getEndTime()
Time that the event has ended. Optional, only present for alertsthat are ongoing
.google.protobuf.Timestamp end_time = 2;
Returns | |
---|---|
Type | Description |
Timestamp |
The endTime. |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
Time that the event has ended. Optional, only present for alertsthat are ongoing
.google.protobuf.Timestamp end_time = 2;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getParserForType()
public Parser<AlertData> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<AlertData> |
getPayload()
public Struct getPayload()
Payload of the event, which includes the details of the specific alert. It's a map of keys of String type and values of various types
.google.protobuf.Struct payload = 3;
Returns | |
---|---|
Type | Description |
Struct |
The payload. |
getPayloadOrBuilder()
public StructOrBuilder getPayloadOrBuilder()
Payload of the event, which includes the details of the specific alert. It's a map of keys of String type and values of various types
.google.protobuf.Struct payload = 3;
Returns | |
---|---|
Type | Description |
StructOrBuilder |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hasCreateTime()
public boolean hasCreateTime()
Time that the event has created
.google.protobuf.Timestamp create_time = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasEndTime()
public boolean hasEndTime()
Time that the event has ended. Optional, only present for alertsthat are ongoing
.google.protobuf.Timestamp end_time = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the endTime field is set. |
hasPayload()
public boolean hasPayload()
Payload of the event, which includes the details of the specific alert. It's a map of keys of String type and values of various types
.google.protobuf.Struct payload = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the payload field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public AlertData.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
AlertData.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AlertData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
AlertData.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public AlertData.Builder toBuilder()
Returns | |
---|---|
Type | Description |
AlertData.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |