Class TemporaryExposureKey.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
- app.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey.Builder
-
- All Implemented Interfaces:
TemporaryExposureKeyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- TemporaryExposureKey
public static final class TemporaryExposureKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder> implements TemporaryExposureKeyOrBuilder
Protobuf typeapp.coronawarn.server.common.protocols.external.exposurenotification.TemporaryExposureKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TemporaryExposureKey.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TemporaryExposureKey
build()
TemporaryExposureKey
buildPartial()
TemporaryExposureKey.Builder
clear()
TemporaryExposureKey.Builder
clearDaysSinceOnsetOfSymptoms()
Number of days elapsed between symptom onset and the TEK being used.TemporaryExposureKey.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TemporaryExposureKey.Builder
clearKeyData()
Key of infected userTemporaryExposureKey.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TemporaryExposureKey.Builder
clearReportType()
Type of diagnosis associated with a key.TemporaryExposureKey.Builder
clearRollingPeriod()
Increments of 10 minutes describing how long a key is validTemporaryExposureKey.Builder
clearRollingStartIntervalNumber()
The interval number since epoch for which a key startsTemporaryExposureKey.Builder
clearTransmissionRiskLevel()
Varying risk associated with a key depending on diagnosis methodTemporaryExposureKey.Builder
clone()
int
getDaysSinceOnsetOfSymptoms()
Number of days elapsed between symptom onset and the TEK being used.TemporaryExposureKey
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getKeyData()
Key of infected userReportType
getReportType()
Type of diagnosis associated with a key.int
getRollingPeriod()
Increments of 10 minutes describing how long a key is validint
getRollingStartIntervalNumber()
The interval number since epoch for which a key startsint
getTransmissionRiskLevel()
Varying risk associated with a key depending on diagnosis methodboolean
hasDaysSinceOnsetOfSymptoms()
Number of days elapsed between symptom onset and the TEK being used.boolean
hasKeyData()
Key of infected userboolean
hasReportType()
Type of diagnosis associated with a key.boolean
hasRollingPeriod()
Increments of 10 minutes describing how long a key is validboolean
hasRollingStartIntervalNumber()
The interval number since epoch for which a key startsboolean
hasTransmissionRiskLevel()
Varying risk associated with a key depending on diagnosis methodprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TemporaryExposureKey.Builder
mergeFrom(TemporaryExposureKey other)
TemporaryExposureKey.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TemporaryExposureKey.Builder
mergeFrom(com.google.protobuf.Message other)
TemporaryExposureKey.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TemporaryExposureKey.Builder
setDaysSinceOnsetOfSymptoms(int value)
Number of days elapsed between symptom onset and the TEK being used.TemporaryExposureKey.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TemporaryExposureKey.Builder
setKeyData(com.google.protobuf.ByteString value)
Key of infected userTemporaryExposureKey.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TemporaryExposureKey.Builder
setReportType(ReportType value)
Type of diagnosis associated with a key.TemporaryExposureKey.Builder
setRollingPeriod(int value)
Increments of 10 minutes describing how long a key is validTemporaryExposureKey.Builder
setRollingStartIntervalNumber(int value)
The interval number since epoch for which a key startsTemporaryExposureKey.Builder
setTransmissionRiskLevel(int value)
Varying risk associated with a key depending on diagnosis methodTemporaryExposureKey.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
clear
public TemporaryExposureKey.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
getDefaultInstanceForType
public TemporaryExposureKey getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TemporaryExposureKey build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TemporaryExposureKey buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TemporaryExposureKey.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
setField
public TemporaryExposureKey.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
clearField
public TemporaryExposureKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
clearOneof
public TemporaryExposureKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
setRepeatedField
public TemporaryExposureKey.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
addRepeatedField
public TemporaryExposureKey.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
mergeFrom
public TemporaryExposureKey.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TemporaryExposureKey.Builder>
-
mergeFrom
public TemporaryExposureKey.Builder mergeFrom(TemporaryExposureKey other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
mergeFrom
public TemporaryExposureKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TemporaryExposureKey.Builder>
- Throws:
IOException
-
hasKeyData
public boolean hasKeyData()
Key of infected user
optional bytes key_data = 1;
- Specified by:
hasKeyData
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- Whether the keyData field is set.
-
getKeyData
public com.google.protobuf.ByteString getKeyData()
Key of infected user
optional bytes key_data = 1;
- Specified by:
getKeyData
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- The keyData.
-
setKeyData
public TemporaryExposureKey.Builder setKeyData(com.google.protobuf.ByteString value)
Key of infected user
optional bytes key_data = 1;
- Parameters:
value
- The keyData to set.- Returns:
- This builder for chaining.
-
clearKeyData
public TemporaryExposureKey.Builder clearKeyData()
Key of infected user
optional bytes key_data = 1;
- Returns:
- This builder for chaining.
-
hasTransmissionRiskLevel
public boolean hasTransmissionRiskLevel()
Varying risk associated with a key depending on diagnosis method
optional int32 transmission_risk_level = 2;
- Specified by:
hasTransmissionRiskLevel
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- Whether the transmissionRiskLevel field is set.
-
getTransmissionRiskLevel
public int getTransmissionRiskLevel()
Varying risk associated with a key depending on diagnosis method
optional int32 transmission_risk_level = 2;
- Specified by:
getTransmissionRiskLevel
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- The transmissionRiskLevel.
-
setTransmissionRiskLevel
public TemporaryExposureKey.Builder setTransmissionRiskLevel(int value)
Varying risk associated with a key depending on diagnosis method
optional int32 transmission_risk_level = 2;
- Parameters:
value
- The transmissionRiskLevel to set.- Returns:
- This builder for chaining.
-
clearTransmissionRiskLevel
public TemporaryExposureKey.Builder clearTransmissionRiskLevel()
Varying risk associated with a key depending on diagnosis method
optional int32 transmission_risk_level = 2;
- Returns:
- This builder for chaining.
-
hasRollingStartIntervalNumber
public boolean hasRollingStartIntervalNumber()
The interval number since epoch for which a key starts
optional int32 rolling_start_interval_number = 3;
- Specified by:
hasRollingStartIntervalNumber
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- Whether the rollingStartIntervalNumber field is set.
-
getRollingStartIntervalNumber
public int getRollingStartIntervalNumber()
The interval number since epoch for which a key starts
optional int32 rolling_start_interval_number = 3;
- Specified by:
getRollingStartIntervalNumber
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- The rollingStartIntervalNumber.
-
setRollingStartIntervalNumber
public TemporaryExposureKey.Builder setRollingStartIntervalNumber(int value)
The interval number since epoch for which a key starts
optional int32 rolling_start_interval_number = 3;
- Parameters:
value
- The rollingStartIntervalNumber to set.- Returns:
- This builder for chaining.
-
clearRollingStartIntervalNumber
public TemporaryExposureKey.Builder clearRollingStartIntervalNumber()
The interval number since epoch for which a key starts
optional int32 rolling_start_interval_number = 3;
- Returns:
- This builder for chaining.
-
hasRollingPeriod
public boolean hasRollingPeriod()
Increments of 10 minutes describing how long a key is valid
optional int32 rolling_period = 4 [default = 144];
- Specified by:
hasRollingPeriod
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- Whether the rollingPeriod field is set.
-
getRollingPeriod
public int getRollingPeriod()
Increments of 10 minutes describing how long a key is valid
optional int32 rolling_period = 4 [default = 144];
- Specified by:
getRollingPeriod
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- The rollingPeriod.
-
setRollingPeriod
public TemporaryExposureKey.Builder setRollingPeriod(int value)
Increments of 10 minutes describing how long a key is valid
optional int32 rolling_period = 4 [default = 144];
- Parameters:
value
- The rollingPeriod to set.- Returns:
- This builder for chaining.
-
clearRollingPeriod
public TemporaryExposureKey.Builder clearRollingPeriod()
Increments of 10 minutes describing how long a key is valid
optional int32 rolling_period = 4 [default = 144];
- Returns:
- This builder for chaining.
-
hasReportType
public boolean hasReportType()
Type of diagnosis associated with a key.
optional .app.coronawarn.server.common.protocols.external.exposurenotification.ReportType report_type = 5 [default = CONFIRMED_TEST];
- Specified by:
hasReportType
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- Whether the reportType field is set.
-
getReportType
public ReportType getReportType()
Type of diagnosis associated with a key.
optional .app.coronawarn.server.common.protocols.external.exposurenotification.ReportType report_type = 5 [default = CONFIRMED_TEST];
- Specified by:
getReportType
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- The reportType.
-
setReportType
public TemporaryExposureKey.Builder setReportType(ReportType value)
Type of diagnosis associated with a key.
optional .app.coronawarn.server.common.protocols.external.exposurenotification.ReportType report_type = 5 [default = CONFIRMED_TEST];
- Parameters:
value
- The reportType to set.- Returns:
- This builder for chaining.
-
clearReportType
public TemporaryExposureKey.Builder clearReportType()
Type of diagnosis associated with a key.
optional .app.coronawarn.server.common.protocols.external.exposurenotification.ReportType report_type = 5 [default = CONFIRMED_TEST];
- Returns:
- This builder for chaining.
-
hasDaysSinceOnsetOfSymptoms
public boolean hasDaysSinceOnsetOfSymptoms()
Number of days elapsed between symptom onset and the TEK being used. E.g. 2 means TEK is 2 days after onset of symptoms.
optional sint32 days_since_onset_of_symptoms = 6;
- Specified by:
hasDaysSinceOnsetOfSymptoms
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- Whether the daysSinceOnsetOfSymptoms field is set.
-
getDaysSinceOnsetOfSymptoms
public int getDaysSinceOnsetOfSymptoms()
Number of days elapsed between symptom onset and the TEK being used. E.g. 2 means TEK is 2 days after onset of symptoms.
optional sint32 days_since_onset_of_symptoms = 6;
- Specified by:
getDaysSinceOnsetOfSymptoms
in interfaceTemporaryExposureKeyOrBuilder
- Returns:
- The daysSinceOnsetOfSymptoms.
-
setDaysSinceOnsetOfSymptoms
public TemporaryExposureKey.Builder setDaysSinceOnsetOfSymptoms(int value)
Number of days elapsed between symptom onset and the TEK being used. E.g. 2 means TEK is 2 days after onset of symptoms.
optional sint32 days_since_onset_of_symptoms = 6;
- Parameters:
value
- The daysSinceOnsetOfSymptoms to set.- Returns:
- This builder for chaining.
-
clearDaysSinceOnsetOfSymptoms
public TemporaryExposureKey.Builder clearDaysSinceOnsetOfSymptoms()
Number of days elapsed between symptom onset and the TEK being used. E.g. 2 means TEK is 2 days after onset of symptoms.
optional sint32 days_since_onset_of_symptoms = 6;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final TemporaryExposureKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
mergeUnknownFields
public final TemporaryExposureKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
-
-