Class AlertData.Builder (0.14.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlertData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlertData.Builder
Overrides

build()

public AlertData build()
Returns
TypeDescription
AlertData

buildPartial()

public AlertData buildPartial()
Returns
TypeDescription
AlertData

clear()

public AlertData.Builder clear()
Returns
TypeDescription
AlertData.Builder
Overrides

clearCreateTime()

public AlertData.Builder clearCreateTime()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

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

clearField(Descriptors.FieldDescriptor field)

public AlertData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AlertData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AlertData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AlertData.Builder

clone()

public AlertData.Builder clone()
Returns
TypeDescription
AlertData.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public AlertData getDefaultInstanceForType()
Returns
TypeDescription
AlertData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
StructOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the payload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public AlertData.Builder mergeCreateTime(Timestamp value)

Time that the event has created

.google.protobuf.Timestamp create_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
AlertData.Builder

mergeFrom(AlertData other)

public AlertData.Builder mergeFrom(AlertData other)
Parameter
NameDescription
otherAlertData
Returns
TypeDescription
AlertData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlertData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlertData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AlertData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
AlertData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlertData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AlertData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AlertData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AlertData.Builder

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

public AlertData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AlertData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AlertData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlertData.Builder
Overrides