Class AlertData.Builder (0.16.0)

public static final class AlertData.Builder extends GeneratedMessageV3.Builder<AlertData.Builder> implements AlertDataOrBuilder

The data within all Firebase Alerts.

Protobuf type google.events.firebase.firebasealerts.v1.AlertData

Implements

AlertDataOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertData.Builder
Overrides

build()

public AlertData build()
Returns
Type Description
AlertData

buildPartial()

public AlertData buildPartial()
Returns
Type Description
AlertData

clear()

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

clearCreateTime()

public AlertData.Builder clearCreateTime()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Returns
Type Description
AlertData.Builder

clearEndTime()

public AlertData.Builder clearEndTime()

Time that the event has ended. Optional, only present for alertsthat are ongoing

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
AlertData.Builder

clearField(Descriptors.FieldDescriptor field)

public AlertData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AlertData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AlertData.Builder
Overrides

clearPayload()

public AlertData.Builder clearPayload()

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

clone()

public AlertData.Builder clone()
Returns
Type Description
AlertData.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Returns
Type Description
Builder

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

getDescriptorForType()

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

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.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Time that the event has ended. Optional, only present for alertsthat are ongoing

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
Builder

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

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.

getPayloadBuilder()

public Struct.Builder getPayloadBuilder()

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
Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public AlertData.Builder mergeCreateTime(Timestamp value)

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
AlertData.Builder

mergeEndTime(Timestamp value)

public AlertData.Builder mergeEndTime(Timestamp value)

Time that the event has ended. Optional, only present for alertsthat are ongoing

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AlertData.Builder

mergeFrom(AlertData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePayload(Struct value)

public AlertData.Builder mergePayload(Struct value)

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;

Parameter
Name Description
value Struct
Returns
Type Description
AlertData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertData.Builder
Overrides

setCreateTime(Timestamp value)

public AlertData.Builder setCreateTime(Timestamp value)

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
AlertData.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AlertData.Builder setCreateTime(Timestamp.Builder builderForValue)

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AlertData.Builder

setEndTime(Timestamp value)

public AlertData.Builder setEndTime(Timestamp value)

Time that the event has ended. Optional, only present for alertsthat are ongoing

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AlertData.Builder

setEndTime(Timestamp.Builder builderForValue)

public AlertData.Builder setEndTime(Timestamp.Builder builderForValue)

Time that the event has ended. Optional, only present for alertsthat are ongoing

.google.protobuf.Timestamp end_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AlertData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AlertData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertData.Builder
Overrides

setPayload(Struct value)

public AlertData.Builder setPayload(Struct value)

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;

Parameter
Name Description
value Struct
Returns
Type Description
AlertData.Builder

setPayload(Struct.Builder builderForValue)

public AlertData.Builder setPayload(Struct.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AlertData.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlertData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AlertData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertData.Builder
Overrides