Class ExposureConfiguration.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ExposureConfiguration.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ExposureConfiguration.Builder>
      • internalGetFieldAccessorTable

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

        public ExposureConfiguration.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<ExposureConfiguration.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<ExposureConfiguration.Builder>
      • getDefaultInstanceForType

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

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

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

        public ExposureConfiguration.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<ExposureConfiguration.Builder>
      • clearField

        public ExposureConfiguration.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<ExposureConfiguration.Builder>
      • clearOneof

        public ExposureConfiguration.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<ExposureConfiguration.Builder>
      • setRepeatedField

        public ExposureConfiguration.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<ExposureConfiguration.Builder>
      • addRepeatedField

        public ExposureConfiguration.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<ExposureConfiguration.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExposureConfiguration.Builder>
      • mergeFrom

        public ExposureConfiguration.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<ExposureConfiguration.Builder>
        Throws:
        IOException
      • removeInfectiousnessForDaysSinceOnsetOfSymptoms

        public ExposureConfiguration.Builder removeInfectiousnessForDaysSinceOnsetOfSymptoms​(int key)
        map<int32, int32> infectiousnessForDaysSinceOnsetOfSymptoms = 1;
      • getMutableInfectiousnessForDaysSinceOnsetOfSymptoms

        @Deprecated
        public Map<Integer,​Integer> getMutableInfectiousnessForDaysSinceOnsetOfSymptoms()
        Deprecated.
        Use alternate mutation accessors instead.
      • putInfectiousnessForDaysSinceOnsetOfSymptoms

        public ExposureConfiguration.Builder putInfectiousnessForDaysSinceOnsetOfSymptoms​(int key,
                                                                                          int value)
        map<int32, int32> infectiousnessForDaysSinceOnsetOfSymptoms = 1;
      • putAllInfectiousnessForDaysSinceOnsetOfSymptoms

        public ExposureConfiguration.Builder putAllInfectiousnessForDaysSinceOnsetOfSymptoms​(Map<Integer,​Integer> values)
        map<int32, int32> infectiousnessForDaysSinceOnsetOfSymptoms = 1;
      • setReportTypeNoneMap

        public ExposureConfiguration.Builder setReportTypeNoneMap​(int value)
        int32 reportTypeNoneMap = 2;
        Parameters:
        value - The reportTypeNoneMap to set.
        Returns:
        This builder for chaining.
      • clearReportTypeNoneMap

        public ExposureConfiguration.Builder clearReportTypeNoneMap()
        int32 reportTypeNoneMap = 2;
        Returns:
        This builder for chaining.
      • getAttenuationDurationThresholds

        public int getAttenuationDurationThresholds​(int index)
        repeated int32 attenuationDurationThresholds = 3;
        Specified by:
        getAttenuationDurationThresholds in interface ExposureConfigurationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The attenuationDurationThresholds at the given index.
      • setAttenuationDurationThresholds

        public ExposureConfiguration.Builder setAttenuationDurationThresholds​(int index,
                                                                              int value)
        repeated int32 attenuationDurationThresholds = 3;
        Parameters:
        index - The index to set the value at.
        value - The attenuationDurationThresholds to set.
        Returns:
        This builder for chaining.
      • addAttenuationDurationThresholds

        public ExposureConfiguration.Builder addAttenuationDurationThresholds​(int value)
        repeated int32 attenuationDurationThresholds = 3;
        Parameters:
        value - The attenuationDurationThresholds to add.
        Returns:
        This builder for chaining.
      • addAllAttenuationDurationThresholds

        public ExposureConfiguration.Builder addAllAttenuationDurationThresholds​(Iterable<? extends Integer> values)
        repeated int32 attenuationDurationThresholds = 3;
        Parameters:
        values - The attenuationDurationThresholds to add.
        Returns:
        This builder for chaining.
      • clearAttenuationDurationThresholds

        public ExposureConfiguration.Builder clearAttenuationDurationThresholds()
        repeated int32 attenuationDurationThresholds = 3;
        Returns:
        This builder for chaining.
      • setImmediateDurationWeight

        public ExposureConfiguration.Builder setImmediateDurationWeight​(double value)
        double immediateDurationWeight = 4;
        Parameters:
        value - The immediateDurationWeight to set.
        Returns:
        This builder for chaining.
      • clearImmediateDurationWeight

        public ExposureConfiguration.Builder clearImmediateDurationWeight()
        double immediateDurationWeight = 4;
        Returns:
        This builder for chaining.
      • setMediumDurationWeight

        public ExposureConfiguration.Builder setMediumDurationWeight​(double value)
        double mediumDurationWeight = 5;
        Parameters:
        value - The mediumDurationWeight to set.
        Returns:
        This builder for chaining.
      • clearMediumDurationWeight

        public ExposureConfiguration.Builder clearMediumDurationWeight()
        double mediumDurationWeight = 5;
        Returns:
        This builder for chaining.
      • setNearDurationWeight

        public ExposureConfiguration.Builder setNearDurationWeight​(double value)
        double nearDurationWeight = 6;
        Parameters:
        value - The nearDurationWeight to set.
        Returns:
        This builder for chaining.
      • clearNearDurationWeight

        public ExposureConfiguration.Builder clearNearDurationWeight()
        double nearDurationWeight = 6;
        Returns:
        This builder for chaining.
      • setOtherDurationWeight

        public ExposureConfiguration.Builder setOtherDurationWeight​(double value)
        double otherDurationWeight = 7;
        Parameters:
        value - The otherDurationWeight to set.
        Returns:
        This builder for chaining.
      • clearOtherDurationWeight

        public ExposureConfiguration.Builder clearOtherDurationWeight()
        double otherDurationWeight = 7;
        Returns:
        This builder for chaining.
      • setDaysSinceLastExposureThreshold

        public ExposureConfiguration.Builder setDaysSinceLastExposureThreshold​(int value)
        int32 daysSinceLastExposureThreshold = 8;
        Parameters:
        value - The daysSinceLastExposureThreshold to set.
        Returns:
        This builder for chaining.
      • clearDaysSinceLastExposureThreshold

        public ExposureConfiguration.Builder clearDaysSinceLastExposureThreshold()
        int32 daysSinceLastExposureThreshold = 8;
        Returns:
        This builder for chaining.
      • setInfectiousnessStandardWeight

        public ExposureConfiguration.Builder setInfectiousnessStandardWeight​(double value)
        double infectiousnessStandardWeight = 9;
        Parameters:
        value - The infectiousnessStandardWeight to set.
        Returns:
        This builder for chaining.
      • clearInfectiousnessStandardWeight

        public ExposureConfiguration.Builder clearInfectiousnessStandardWeight()
        double infectiousnessStandardWeight = 9;
        Returns:
        This builder for chaining.
      • setInfectiousnessHighWeight

        public ExposureConfiguration.Builder setInfectiousnessHighWeight​(double value)
        double infectiousnessHighWeight = 10;
        Parameters:
        value - The infectiousnessHighWeight to set.
        Returns:
        This builder for chaining.
      • clearInfectiousnessHighWeight

        public ExposureConfiguration.Builder clearInfectiousnessHighWeight()
        double infectiousnessHighWeight = 10;
        Returns:
        This builder for chaining.
      • setReportTypeConfirmedTestWeight

        public ExposureConfiguration.Builder setReportTypeConfirmedTestWeight​(double value)
        double reportTypeConfirmedTestWeight = 11;
        Parameters:
        value - The reportTypeConfirmedTestWeight to set.
        Returns:
        This builder for chaining.
      • clearReportTypeConfirmedTestWeight

        public ExposureConfiguration.Builder clearReportTypeConfirmedTestWeight()
        double reportTypeConfirmedTestWeight = 11;
        Returns:
        This builder for chaining.
      • setReportTypeConfirmedClinicalDiagnosisWeight

        public ExposureConfiguration.Builder setReportTypeConfirmedClinicalDiagnosisWeight​(double value)
        double reportTypeConfirmedClinicalDiagnosisWeight = 12;
        Parameters:
        value - The reportTypeConfirmedClinicalDiagnosisWeight to set.
        Returns:
        This builder for chaining.
      • clearReportTypeConfirmedClinicalDiagnosisWeight

        public ExposureConfiguration.Builder clearReportTypeConfirmedClinicalDiagnosisWeight()
        double reportTypeConfirmedClinicalDiagnosisWeight = 12;
        Returns:
        This builder for chaining.
      • setReportTypeSelfReportedWeight

        public ExposureConfiguration.Builder setReportTypeSelfReportedWeight​(double value)
        double reportTypeSelfReportedWeight = 13;
        Parameters:
        value - The reportTypeSelfReportedWeight to set.
        Returns:
        This builder for chaining.
      • clearReportTypeSelfReportedWeight

        public ExposureConfiguration.Builder clearReportTypeSelfReportedWeight()
        double reportTypeSelfReportedWeight = 13;
        Returns:
        This builder for chaining.
      • setReportTypeRecursiveWeight

        public ExposureConfiguration.Builder setReportTypeRecursiveWeight​(double value)
        double reportTypeRecursiveWeight = 14;
        Parameters:
        value - The reportTypeRecursiveWeight to set.
        Returns:
        This builder for chaining.
      • clearReportTypeRecursiveWeight

        public ExposureConfiguration.Builder clearReportTypeRecursiveWeight()
        double reportTypeRecursiveWeight = 14;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ExposureConfiguration.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<ExposureConfiguration.Builder>
      • mergeUnknownFields

        public final ExposureConfiguration.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<ExposureConfiguration.Builder>