Google is committed to advancing racial equity for Black communities. See how.

TemporaryExposureKey.TemporaryExposureKeyBuilder

public static final class TemporaryExposureKey.TemporaryExposureKeyBuilder extends Object

A builder for TemporaryExposureKey.

Public Constructor Summary

Public Method Summary

TemporaryExposureKey
build()
Builds an instance of TemporaryExposureKey.
TemporaryExposureKey.TemporaryExposureKeyBuilder
setDaysSinceOnsetOfSymptoms(int daysSinceOnsetOfSymptoms)
Sets the number of days since the onset of symptoms.
TemporaryExposureKey.TemporaryExposureKeyBuilder
setKeyData(byte[] keyData)
Sets the Temporary Exposure Key data.
TemporaryExposureKey.TemporaryExposureKeyBuilder
setReportType(int reportType)
Sets the key's report type.
TemporaryExposureKey.TemporaryExposureKeyBuilder
setRollingPeriod(int rollingPeriod)
Sets the rolling period which this key is valid for.
TemporaryExposureKey.TemporaryExposureKeyBuilder
setRollingStartIntervalNumber(int rollingStartIntervalNumber)
Sets the rolling start interval number.
TemporaryExposureKey.TemporaryExposureKeyBuilder
setTransmissionRiskLevel(int transmissionRiskLevel)
Sets the transmission risk level.

Inherited Method Summary

Public Constructors

public TemporaryExposureKeyBuilder ()

Public Methods

public TemporaryExposureKey build ()

Builds an instance of TemporaryExposureKey.

public TemporaryExposureKey.TemporaryExposureKeyBuilder setDaysSinceOnsetOfSymptoms (int daysSinceOnsetOfSymptoms)

Sets the number of days since the onset of symptoms. See TemporaryExposureKey.getDaysSinceOnsetOfSymptoms().

public TemporaryExposureKey.TemporaryExposureKeyBuilder setKeyData (byte[] keyData)

Sets the Temporary Exposure Key data. See TemporaryExposureKey.getKeyData().

public TemporaryExposureKey.TemporaryExposureKeyBuilder setReportType (int reportType)

Sets the key's report type. See TemporaryExposureKey.getReportType().

public TemporaryExposureKey.TemporaryExposureKeyBuilder setRollingPeriod (int rollingPeriod)

Sets the rolling period which this key is valid for. See TemporaryExposureKey.getRollingPeriod().

public TemporaryExposureKey.TemporaryExposureKeyBuilder setRollingStartIntervalNumber (int rollingStartIntervalNumber)

Sets the rolling start interval number. See TemporaryExposureKey.getRollingStartIntervalNumber().

public TemporaryExposureKey.TemporaryExposureKeyBuilder setTransmissionRiskLevel (int transmissionRiskLevel)

Sets the transmission risk level. See TemporaryExposureKey.getTransmissionRiskLevel().