Class TemporaryExposureKey.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • clear

        public TemporaryExposureKey.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • getDefaultInstanceForType

        public TemporaryExposureKey getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TemporaryExposureKey build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TemporaryExposureKey buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TemporaryExposureKey.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • setField

        public TemporaryExposureKey.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • clearField

        public TemporaryExposureKey.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • clearOneof

        public TemporaryExposureKey.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • addRepeatedField

        public TemporaryExposureKey.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface TemporaryExposureKeyOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>
      • mergeUnknownFields

        public final TemporaryExposureKey.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TemporaryExposureKey.Builder>