Class KeyFigure.Builder

  • All Implemented Interfaces:
    KeyFigureOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    KeyFigure

    public static final class KeyFigure.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<KeyFigure.Builder>
    implements KeyFigureOrBuilder
    Protobuf type app.coronawarn.server.common.protocols.internal.stats.KeyFigure
    • 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<KeyFigure.Builder>
      • clear

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

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

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

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

        public KeyFigure.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<KeyFigure.Builder>
      • setField

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

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

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

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

        public KeyFigure.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<KeyFigure.Builder>
      • mergeFrom

        public KeyFigure.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyFigure.Builder>
      • isInitialized

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

        public KeyFigure.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<KeyFigure.Builder>
        Throws:
        IOException
      • getRankValue

        public int getRankValue()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Rank rank = 1;
        Specified by:
        getRankValue in interface KeyFigureOrBuilder
        Returns:
        The enum numeric value on the wire for rank.
      • setRankValue

        public KeyFigure.Builder setRankValue​(int value)
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Rank rank = 1;
        Parameters:
        value - The enum numeric value on the wire for rank to set.
        Returns:
        This builder for chaining.
      • getRank

        public KeyFigure.Rank getRank()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Rank rank = 1;
        Specified by:
        getRank in interface KeyFigureOrBuilder
        Returns:
        The rank.
      • setRank

        public KeyFigure.Builder setRank​(KeyFigure.Rank value)
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Rank rank = 1;
        Parameters:
        value - The rank to set.
        Returns:
        This builder for chaining.
      • clearRank

        public KeyFigure.Builder clearRank()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Rank rank = 1;
        Returns:
        This builder for chaining.
      • getValue

        public double getValue()
        double value = 2;
        Specified by:
        getValue in interface KeyFigureOrBuilder
        Returns:
        The value.
      • setValue

        public KeyFigure.Builder setValue​(double value)
        double value = 2;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public KeyFigure.Builder clearValue()
        double value = 2;
        Returns:
        This builder for chaining.
      • getDecimals

        public int getDecimals()
         zero by default; formatted as integer then
         
        int32 decimals = 3;
        Specified by:
        getDecimals in interface KeyFigureOrBuilder
        Returns:
        The decimals.
      • setDecimals

        public KeyFigure.Builder setDecimals​(int value)
         zero by default; formatted as integer then
         
        int32 decimals = 3;
        Parameters:
        value - The decimals to set.
        Returns:
        This builder for chaining.
      • clearDecimals

        public KeyFigure.Builder clearDecimals()
         zero by default; formatted as integer then
         
        int32 decimals = 3;
        Returns:
        This builder for chaining.
      • getTrendValue

        public int getTrendValue()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Trend trend = 4;
        Specified by:
        getTrendValue in interface KeyFigureOrBuilder
        Returns:
        The enum numeric value on the wire for trend.
      • setTrendValue

        public KeyFigure.Builder setTrendValue​(int value)
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Trend trend = 4;
        Parameters:
        value - The enum numeric value on the wire for trend to set.
        Returns:
        This builder for chaining.
      • getTrend

        public KeyFigure.Trend getTrend()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Trend trend = 4;
        Specified by:
        getTrend in interface KeyFigureOrBuilder
        Returns:
        The trend.
      • setTrend

        public KeyFigure.Builder setTrend​(KeyFigure.Trend value)
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Trend trend = 4;
        Parameters:
        value - The trend to set.
        Returns:
        This builder for chaining.
      • clearTrend

        public KeyFigure.Builder clearTrend()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.Trend trend = 4;
        Returns:
        This builder for chaining.
      • getTrendSemanticValue

        public int getTrendSemanticValue()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.TrendSemantic trendSemantic = 5;
        Specified by:
        getTrendSemanticValue in interface KeyFigureOrBuilder
        Returns:
        The enum numeric value on the wire for trendSemantic.
      • setTrendSemanticValue

        public KeyFigure.Builder setTrendSemanticValue​(int value)
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.TrendSemantic trendSemantic = 5;
        Parameters:
        value - The enum numeric value on the wire for trendSemantic to set.
        Returns:
        This builder for chaining.
      • setTrendSemantic

        public KeyFigure.Builder setTrendSemantic​(KeyFigure.TrendSemantic value)
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.TrendSemantic trendSemantic = 5;
        Parameters:
        value - The trendSemantic to set.
        Returns:
        This builder for chaining.
      • clearTrendSemantic

        public KeyFigure.Builder clearTrendSemantic()
        .app.coronawarn.server.common.protocols.internal.stats.KeyFigure.TrendSemantic trendSemantic = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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