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

ExposureInformation.ExposureInformationBuilder

public static final class ExposureInformation.ExposureInformationBuilder extends Object

A builder for ExposureInformation.

Public Constructor Summary

Public Method Summary

ExposureInformation
build()
Builds an instance of ExposureInformation.
ExposureInformation.ExposureInformationBuilder
setAttenuationDurations(int[] attenuationDurations)
Sets the attenuation durations.
ExposureInformation.ExposureInformationBuilder
setAttenuationValue(int attenuationValue)
Sets the attenuation value.
ExposureInformation.ExposureInformationBuilder
setDateMillisSinceEpoch(long dateMillisSinceEpoch)
Sets the date in milliseconds since epoch.
ExposureInformation.ExposureInformationBuilder
setDurationMinutes(int durationMinutes)
Sets the duration in minutes.
ExposureInformation.ExposureInformationBuilder
setTotalRiskScore(int totalRiskScore)
Sets the total risk score.
ExposureInformation.ExposureInformationBuilder
setTransmissionRiskLevel(int transmissionRiskLevel)
Sets the transmission risk level.

Inherited Method Summary

Public Constructors

public ExposureInformationBuilder ()

Public Methods

public ExposureInformation build ()

Builds an instance of ExposureInformation.

public ExposureInformation.ExposureInformationBuilder setAttenuationDurations (int[] attenuationDurations)

Sets the attenuation durations. See ExposureInformation.getAttenuationDurationsInMinutes().

public ExposureInformation.ExposureInformationBuilder setAttenuationValue (int attenuationValue)

Sets the attenuation value. See ExposureInformation.getAttenuationValue().

public ExposureInformation.ExposureInformationBuilder setDateMillisSinceEpoch (long dateMillisSinceEpoch)

Sets the date in milliseconds since epoch. See ExposureInformation.getDateMillisSinceEpoch().

public ExposureInformation.ExposureInformationBuilder setDurationMinutes (int durationMinutes)

Sets the duration in minutes. See ExposureInformation.getDurationMinutes().

public ExposureInformation.ExposureInformationBuilder setTotalRiskScore (int totalRiskScore)

Sets the total risk score. See ExposureInformation.getTotalRiskScore().

public ExposureInformation.ExposureInformationBuilder setTransmissionRiskLevel (int transmissionRiskLevel)

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