// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: igpsport/peripheral_hr.proto

package nodomain.freeyourgadget.gadgetbridge.proto.igpsport;

public final class PeripheralHr {
  private PeripheralHr() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * Protobuf enum {@code PERIPHERAL_HR_SERVICE}
   */
  public enum PERIPHERAL_HR_SERVICE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PHS_NSPECIFIED = 0;</code>
     */
    PHS_NSPECIFIED(0),
    /**
     * <code>PHS_HRM_WARN = 6;</code>
     */
    PHS_HRM_WARN(6),
    /**
     * <code>PHS_HRM_ZONE = 11;</code>
     */
    PHS_HRM_ZONE(11),
    /**
     * <code>PHS_SPORT_MODE = 16;</code>
     */
    PHS_SPORT_MODE(16),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PHS_NSPECIFIED = 0;</code>
     */
    public static final int PHS_NSPECIFIED_VALUE = 0;
    /**
     * <code>PHS_HRM_WARN = 6;</code>
     */
    public static final int PHS_HRM_WARN_VALUE = 6;
    /**
     * <code>PHS_HRM_ZONE = 11;</code>
     */
    public static final int PHS_HRM_ZONE_VALUE = 11;
    /**
     * <code>PHS_SPORT_MODE = 16;</code>
     */
    public static final int PHS_SPORT_MODE_VALUE = 16;


    @java.lang.Override
    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PERIPHERAL_HR_SERVICE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_HR_SERVICE forNumber(int value) {
      switch (value) {
        case 0: return PHS_NSPECIFIED;
        case 6: return PHS_HRM_WARN;
        case 11: return PHS_HRM_ZONE;
        case 16: return PHS_SPORT_MODE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_SERVICE>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PERIPHERAL_HR_SERVICE> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_SERVICE>() {
            @java.lang.Override
            public PERIPHERAL_HR_SERVICE findValueByNumber(int number) {
              return PERIPHERAL_HR_SERVICE.forNumber(number);
            }
          };

    public static com.google.protobuf.Internal.EnumVerifier 
        internalGetVerifier() {
      return PERIPHERAL_HR_SERVICEVerifier.INSTANCE;
    }

    private static final class PERIPHERAL_HR_SERVICEVerifier implements 
         com.google.protobuf.Internal.EnumVerifier { 
            static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new PERIPHERAL_HR_SERVICEVerifier();
            @java.lang.Override
            public boolean isInRange(int number) {
              return PERIPHERAL_HR_SERVICE.forNumber(number) != null;
            }
          };

    private final int value;

    private PERIPHERAL_HR_SERVICE(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_HR_SERVICE)
  }

  /**
   * Protobuf enum {@code PERIPHERAL_HR_OPERATE}
   */
  public enum PERIPHERAL_HR_OPERATE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PHO_NSPECIFIED = 0;</code>
     */
    PHO_NSPECIFIED(0),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PHO_NSPECIFIED = 0;</code>
     */
    public static final int PHO_NSPECIFIED_VALUE = 0;


    @java.lang.Override
    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PERIPHERAL_HR_OPERATE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_HR_OPERATE forNumber(int value) {
      switch (value) {
        case 0: return PHO_NSPECIFIED;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_OPERATE>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PERIPHERAL_HR_OPERATE> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_OPERATE>() {
            @java.lang.Override
            public PERIPHERAL_HR_OPERATE findValueByNumber(int number) {
              return PERIPHERAL_HR_OPERATE.forNumber(number);
            }
          };

    public static com.google.protobuf.Internal.EnumVerifier 
        internalGetVerifier() {
      return PERIPHERAL_HR_OPERATEVerifier.INSTANCE;
    }

    private static final class PERIPHERAL_HR_OPERATEVerifier implements 
         com.google.protobuf.Internal.EnumVerifier { 
            static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new PERIPHERAL_HR_OPERATEVerifier();
            @java.lang.Override
            public boolean isInRange(int number) {
              return PERIPHERAL_HR_OPERATE.forNumber(number) != null;
            }
          };

    private final int value;

    private PERIPHERAL_HR_OPERATE(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_HR_OPERATE)
  }

  /**
   * Protobuf enum {@code PERIPHERAL_HR_WARN_TYPE}
   */
  public enum PERIPHERAL_HR_WARN_TYPE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PHW_UNSPECIFIED = 0;</code>
     */
    PHW_UNSPECIFIED(0),
    /**
     * <code>PHW_CUSTOM = 1;</code>
     */
    PHW_CUSTOM(1),
    /**
     * <code>PHW_ZONE = 2;</code>
     */
    PHW_ZONE(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PHW_UNSPECIFIED = 0;</code>
     */
    public static final int PHW_UNSPECIFIED_VALUE = 0;
    /**
     * <code>PHW_CUSTOM = 1;</code>
     */
    public static final int PHW_CUSTOM_VALUE = 1;
    /**
     * <code>PHW_ZONE = 2;</code>
     */
    public static final int PHW_ZONE_VALUE = 2;


    @java.lang.Override
    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PERIPHERAL_HR_WARN_TYPE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_HR_WARN_TYPE forNumber(int value) {
      switch (value) {
        case 0: return PHW_UNSPECIFIED;
        case 1: return PHW_CUSTOM;
        case 2: return PHW_ZONE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_WARN_TYPE>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PERIPHERAL_HR_WARN_TYPE> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_WARN_TYPE>() {
            @java.lang.Override
            public PERIPHERAL_HR_WARN_TYPE findValueByNumber(int number) {
              return PERIPHERAL_HR_WARN_TYPE.forNumber(number);
            }
          };

    public static com.google.protobuf.Internal.EnumVerifier 
        internalGetVerifier() {
      return PERIPHERAL_HR_WARN_TYPEVerifier.INSTANCE;
    }

    private static final class PERIPHERAL_HR_WARN_TYPEVerifier implements 
         com.google.protobuf.Internal.EnumVerifier { 
            static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new PERIPHERAL_HR_WARN_TYPEVerifier();
            @java.lang.Override
            public boolean isInRange(int number) {
              return PERIPHERAL_HR_WARN_TYPE.forNumber(number) != null;
            }
          };

    private final int value;

    private PERIPHERAL_HR_WARN_TYPE(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_HR_WARN_TYPE)
  }

  /**
   * Protobuf enum {@code PERIPHERAL_HR_SPORT_MODE_TYPE}
   */
  public enum PERIPHERAL_HR_SPORT_MODE_TYPE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PHSM_UNSPECIFIED = 0;</code>
     */
    PHSM_UNSPECIFIED(0),
    /**
     * <code>PHSM_DEFAULT = 1;</code>
     */
    PHSM_DEFAULT(1),
    /**
     * <code>PHSM_RUN = 2;</code>
     */
    PHSM_RUN(2),
    /**
     * <code>PHSM_BIKE = 3;</code>
     */
    PHSM_BIKE(3),
    /**
     * <code>PHSM_FITNESS = 4;</code>
     */
    PHSM_FITNESS(4),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PHSM_UNSPECIFIED = 0;</code>
     */
    public static final int PHSM_UNSPECIFIED_VALUE = 0;
    /**
     * <code>PHSM_DEFAULT = 1;</code>
     */
    public static final int PHSM_DEFAULT_VALUE = 1;
    /**
     * <code>PHSM_RUN = 2;</code>
     */
    public static final int PHSM_RUN_VALUE = 2;
    /**
     * <code>PHSM_BIKE = 3;</code>
     */
    public static final int PHSM_BIKE_VALUE = 3;
    /**
     * <code>PHSM_FITNESS = 4;</code>
     */
    public static final int PHSM_FITNESS_VALUE = 4;


    @java.lang.Override
    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PERIPHERAL_HR_SPORT_MODE_TYPE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_HR_SPORT_MODE_TYPE forNumber(int value) {
      switch (value) {
        case 0: return PHSM_UNSPECIFIED;
        case 1: return PHSM_DEFAULT;
        case 2: return PHSM_RUN;
        case 3: return PHSM_BIKE;
        case 4: return PHSM_FITNESS;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_SPORT_MODE_TYPE>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PERIPHERAL_HR_SPORT_MODE_TYPE> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<PERIPHERAL_HR_SPORT_MODE_TYPE>() {
            @java.lang.Override
            public PERIPHERAL_HR_SPORT_MODE_TYPE findValueByNumber(int number) {
              return PERIPHERAL_HR_SPORT_MODE_TYPE.forNumber(number);
            }
          };

    public static com.google.protobuf.Internal.EnumVerifier 
        internalGetVerifier() {
      return PERIPHERAL_HR_SPORT_MODE_TYPEVerifier.INSTANCE;
    }

    private static final class PERIPHERAL_HR_SPORT_MODE_TYPEVerifier implements 
         com.google.protobuf.Internal.EnumVerifier { 
            static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new PERIPHERAL_HR_SPORT_MODE_TYPEVerifier();
            @java.lang.Override
            public boolean isInRange(int number) {
              return PERIPHERAL_HR_SPORT_MODE_TYPE.forNumber(number) != null;
            }
          };

    private final int value;

    private PERIPHERAL_HR_SPORT_MODE_TYPE(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_HR_SPORT_MODE_TYPE)
  }

  public interface peripheral_hr_data_warnOrBuilder extends
      // @@protoc_insertion_point(interface_extends:peripheral_hr_data_warn)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>bool warn_switch = 1;</code>
     * @return The warnSwitch.
     */
    boolean getWarnSwitch();

    /**
     * <code>bool high_switch = 2;</code>
     * @return The highSwitch.
     */
    boolean getHighSwitch();

    /**
     * <code>bool low_switch = 3;</code>
     * @return The lowSwitch.
     */
    boolean getLowSwitch();

    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
     * @return The enum numeric value on the wire for highWarnType.
     */
    int getHighWarnTypeValue();
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
     * @return The highWarnType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE getHighWarnType();

    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
     * @return The enum numeric value on the wire for lowWarnType.
     */
    int getLowWarnTypeValue();
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
     * @return The lowWarnType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE getLowWarnType();

    /**
     * <code>int64 high_value = 6;</code>
     * @return The highValue.
     */
    long getHighValue();

    /**
     * <code>int64 low_value = 7;</code>
     * @return The lowValue.
     */
    long getLowValue();
  }
  /**
   * Protobuf type {@code peripheral_hr_data_warn}
   */
  public  static final class peripheral_hr_data_warn extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_hr_data_warn, peripheral_hr_data_warn.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_hr_data_warn)
      peripheral_hr_data_warnOrBuilder {
    private peripheral_hr_data_warn() {
    }
    public static final int WARN_SWITCH_FIELD_NUMBER = 1;
    private boolean warnSwitch_;
    /**
     * <code>bool warn_switch = 1;</code>
     * @return The warnSwitch.
     */
    @java.lang.Override
    public boolean getWarnSwitch() {
      return warnSwitch_;
    }
    /**
     * <code>bool warn_switch = 1;</code>
     * @param value The warnSwitch to set.
     */
    private void setWarnSwitch(boolean value) {
      
      warnSwitch_ = value;
    }
    /**
     * <code>bool warn_switch = 1;</code>
     */
    private void clearWarnSwitch() {
      
      warnSwitch_ = false;
    }

    public static final int HIGH_SWITCH_FIELD_NUMBER = 2;
    private boolean highSwitch_;
    /**
     * <code>bool high_switch = 2;</code>
     * @return The highSwitch.
     */
    @java.lang.Override
    public boolean getHighSwitch() {
      return highSwitch_;
    }
    /**
     * <code>bool high_switch = 2;</code>
     * @param value The highSwitch to set.
     */
    private void setHighSwitch(boolean value) {
      
      highSwitch_ = value;
    }
    /**
     * <code>bool high_switch = 2;</code>
     */
    private void clearHighSwitch() {
      
      highSwitch_ = false;
    }

    public static final int LOW_SWITCH_FIELD_NUMBER = 3;
    private boolean lowSwitch_;
    /**
     * <code>bool low_switch = 3;</code>
     * @return The lowSwitch.
     */
    @java.lang.Override
    public boolean getLowSwitch() {
      return lowSwitch_;
    }
    /**
     * <code>bool low_switch = 3;</code>
     * @param value The lowSwitch to set.
     */
    private void setLowSwitch(boolean value) {
      
      lowSwitch_ = value;
    }
    /**
     * <code>bool low_switch = 3;</code>
     */
    private void clearLowSwitch() {
      
      lowSwitch_ = false;
    }

    public static final int HIGH_WARN_TYPE_FIELD_NUMBER = 4;
    private int highWarnType_;
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
     * @return The enum numeric value on the wire for highWarnType.
     */
    @java.lang.Override
    public int getHighWarnTypeValue() {
      return highWarnType_;
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
     * @return The highWarnType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE getHighWarnType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE.forNumber(highWarnType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
     * @param value The enum numeric value on the wire for highWarnType to set.
     */
    private void setHighWarnTypeValue(int value) {
        highWarnType_ = value;
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
     * @param value The highWarnType to set.
     */
    private void setHighWarnType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE value) {
      highWarnType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
     */
    private void clearHighWarnType() {
      
      highWarnType_ = 0;
    }

    public static final int LOW_WARN_TYPE_FIELD_NUMBER = 5;
    private int lowWarnType_;
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
     * @return The enum numeric value on the wire for lowWarnType.
     */
    @java.lang.Override
    public int getLowWarnTypeValue() {
      return lowWarnType_;
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
     * @return The lowWarnType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE getLowWarnType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE.forNumber(lowWarnType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
     * @param value The enum numeric value on the wire for lowWarnType to set.
     */
    private void setLowWarnTypeValue(int value) {
        lowWarnType_ = value;
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
     * @param value The lowWarnType to set.
     */
    private void setLowWarnType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE value) {
      lowWarnType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
     */
    private void clearLowWarnType() {
      
      lowWarnType_ = 0;
    }

    public static final int HIGH_VALUE_FIELD_NUMBER = 6;
    private long highValue_;
    /**
     * <code>int64 high_value = 6;</code>
     * @return The highValue.
     */
    @java.lang.Override
    public long getHighValue() {
      return highValue_;
    }
    /**
     * <code>int64 high_value = 6;</code>
     * @param value The highValue to set.
     */
    private void setHighValue(long value) {
      
      highValue_ = value;
    }
    /**
     * <code>int64 high_value = 6;</code>
     */
    private void clearHighValue() {
      
      highValue_ = 0L;
    }

    public static final int LOW_VALUE_FIELD_NUMBER = 7;
    private long lowValue_;
    /**
     * <code>int64 low_value = 7;</code>
     * @return The lowValue.
     */
    @java.lang.Override
    public long getLowValue() {
      return lowValue_;
    }
    /**
     * <code>int64 low_value = 7;</code>
     * @param value The lowValue to set.
     */
    private void setLowValue(long value) {
      
      lowValue_ = value;
    }
    /**
     * <code>int64 low_value = 7;</code>
     */
    private void clearLowValue() {
      
      lowValue_ = 0L;
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code peripheral_hr_data_warn}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn, Builder> implements
        // @@protoc_insertion_point(builder_implements:peripheral_hr_data_warn)
        nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warnOrBuilder {
      // Construct using nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>bool warn_switch = 1;</code>
       * @return The warnSwitch.
       */
      @java.lang.Override
      public boolean getWarnSwitch() {
        return instance.getWarnSwitch();
      }
      /**
       * <code>bool warn_switch = 1;</code>
       * @param value The warnSwitch to set.
       * @return This builder for chaining.
       */
      public Builder setWarnSwitch(boolean value) {
        copyOnWrite();
        instance.setWarnSwitch(value);
        return this;
      }
      /**
       * <code>bool warn_switch = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearWarnSwitch() {
        copyOnWrite();
        instance.clearWarnSwitch();
        return this;
      }

      /**
       * <code>bool high_switch = 2;</code>
       * @return The highSwitch.
       */
      @java.lang.Override
      public boolean getHighSwitch() {
        return instance.getHighSwitch();
      }
      /**
       * <code>bool high_switch = 2;</code>
       * @param value The highSwitch to set.
       * @return This builder for chaining.
       */
      public Builder setHighSwitch(boolean value) {
        copyOnWrite();
        instance.setHighSwitch(value);
        return this;
      }
      /**
       * <code>bool high_switch = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearHighSwitch() {
        copyOnWrite();
        instance.clearHighSwitch();
        return this;
      }

      /**
       * <code>bool low_switch = 3;</code>
       * @return The lowSwitch.
       */
      @java.lang.Override
      public boolean getLowSwitch() {
        return instance.getLowSwitch();
      }
      /**
       * <code>bool low_switch = 3;</code>
       * @param value The lowSwitch to set.
       * @return This builder for chaining.
       */
      public Builder setLowSwitch(boolean value) {
        copyOnWrite();
        instance.setLowSwitch(value);
        return this;
      }
      /**
       * <code>bool low_switch = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearLowSwitch() {
        copyOnWrite();
        instance.clearLowSwitch();
        return this;
      }

      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
       * @return The enum numeric value on the wire for highWarnType.
       */
      @java.lang.Override
      public int getHighWarnTypeValue() {
        return instance.getHighWarnTypeValue();
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
       * @param value The highWarnType to set.
       * @return This builder for chaining.
       */
      public Builder setHighWarnTypeValue(int value) {
        copyOnWrite();
        instance.setHighWarnTypeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
       * @return The highWarnType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE getHighWarnType() {
        return instance.getHighWarnType();
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
       * @param value The enum numeric value on the wire for highWarnType to set.
       * @return This builder for chaining.
       */
      public Builder setHighWarnType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE value) {
        copyOnWrite();
        instance.setHighWarnType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE high_warn_type = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearHighWarnType() {
        copyOnWrite();
        instance.clearHighWarnType();
        return this;
      }

      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
       * @return The enum numeric value on the wire for lowWarnType.
       */
      @java.lang.Override
      public int getLowWarnTypeValue() {
        return instance.getLowWarnTypeValue();
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
       * @param value The lowWarnType to set.
       * @return This builder for chaining.
       */
      public Builder setLowWarnTypeValue(int value) {
        copyOnWrite();
        instance.setLowWarnTypeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
       * @return The lowWarnType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE getLowWarnType() {
        return instance.getLowWarnType();
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
       * @param value The enum numeric value on the wire for lowWarnType to set.
       * @return This builder for chaining.
       */
      public Builder setLowWarnType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_WARN_TYPE value) {
        copyOnWrite();
        instance.setLowWarnType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_WARN_TYPE low_warn_type = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearLowWarnType() {
        copyOnWrite();
        instance.clearLowWarnType();
        return this;
      }

      /**
       * <code>int64 high_value = 6;</code>
       * @return The highValue.
       */
      @java.lang.Override
      public long getHighValue() {
        return instance.getHighValue();
      }
      /**
       * <code>int64 high_value = 6;</code>
       * @param value The highValue to set.
       * @return This builder for chaining.
       */
      public Builder setHighValue(long value) {
        copyOnWrite();
        instance.setHighValue(value);
        return this;
      }
      /**
       * <code>int64 high_value = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearHighValue() {
        copyOnWrite();
        instance.clearHighValue();
        return this;
      }

      /**
       * <code>int64 low_value = 7;</code>
       * @return The lowValue.
       */
      @java.lang.Override
      public long getLowValue() {
        return instance.getLowValue();
      }
      /**
       * <code>int64 low_value = 7;</code>
       * @param value The lowValue to set.
       * @return This builder for chaining.
       */
      public Builder setLowValue(long value) {
        copyOnWrite();
        instance.setLowValue(value);
        return this;
      }
      /**
       * <code>int64 low_value = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearLowValue() {
        copyOnWrite();
        instance.clearLowValue();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:peripheral_hr_data_warn)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "warnSwitch_",
              "highSwitch_",
              "lowSwitch_",
              "highWarnType_",
              "lowWarnType_",
              "highValue_",
              "lowValue_",
            };
            java.lang.String info =
                "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0007\u0002\u0007" +
                "\u0003\u0007\u0004\f\u0005\f\u0006\u0002\u0007\u0002";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:peripheral_hr_data_warn)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn DEFAULT_INSTANCE;
    static {
      peripheral_hr_data_warn defaultInstance = new peripheral_hr_data_warn();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_hr_data_warn.class, defaultInstance);
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<peripheral_hr_data_warn> PARSER;

    public static com.google.protobuf.Parser<peripheral_hr_data_warn> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface peripheral_hr_data_zoneOrBuilder extends
      // @@protoc_insertion_point(interface_extends:peripheral_hr_data_zone)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>repeated int64 value = 1;</code>
     * @return A list containing the value.
     */
    java.util.List<java.lang.Long> getValueList();
    /**
     * <code>repeated int64 value = 1;</code>
     * @return The count of value.
     */
    int getValueCount();
    /**
     * <code>repeated int64 value = 1;</code>
     * @param index The index of the element to return.
     * @return The value at the given index.
     */
    long getValue(int index);
  }
  /**
   * Protobuf type {@code peripheral_hr_data_zone}
   */
  public  static final class peripheral_hr_data_zone extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_hr_data_zone, peripheral_hr_data_zone.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_hr_data_zone)
      peripheral_hr_data_zoneOrBuilder {
    private peripheral_hr_data_zone() {
      value_ = emptyLongList();
    }
    public static final int VALUE_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.LongList value_;
    /**
     * <code>repeated int64 value = 1;</code>
     * @return A list containing the value.
     */
    @java.lang.Override
    public java.util.List<java.lang.Long>
        getValueList() {
      return value_;
    }
    /**
     * <code>repeated int64 value = 1;</code>
     * @return The count of value.
     */
    @java.lang.Override
    public int getValueCount() {
      return value_.size();
    }
    /**
     * <code>repeated int64 value = 1;</code>
     * @param index The index of the element to return.
     * @return The value at the given index.
     */
    @java.lang.Override
    public long getValue(int index) {
      return value_.getLong(index);
    }
    private int valueMemoizedSerializedSize = -1;
    private void ensureValueIsMutable() {
      com.google.protobuf.Internal.LongList tmp = value_;
      if (!tmp.isModifiable()) {
        value_ =
            com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
       }
    }
    /**
     * <code>repeated int64 value = 1;</code>
     * @param index The index to set the value at.
     * @param value The value to set.
     */
    private void setValue(
        int index, long value) {
      ensureValueIsMutable();
      value_.setLong(index, value);
    }
    /**
     * <code>repeated int64 value = 1;</code>
     * @param value The value to add.
     */
    private void addValue(long value) {
      ensureValueIsMutable();
      value_.addLong(value);
    }
    /**
     * <code>repeated int64 value = 1;</code>
     * @param values The value to add.
     */
    private void addAllValue(
        java.lang.Iterable<? extends java.lang.Long> values) {
      ensureValueIsMutable();
      com.google.protobuf.AbstractMessageLite.addAll(
          values, value_);
    }
    /**
     * <code>repeated int64 value = 1;</code>
     */
    private void clearValue() {
      value_ = emptyLongList();
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code peripheral_hr_data_zone}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone, Builder> implements
        // @@protoc_insertion_point(builder_implements:peripheral_hr_data_zone)
        nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zoneOrBuilder {
      // Construct using nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>repeated int64 value = 1;</code>
       * @return A list containing the value.
       */
      @java.lang.Override
      public java.util.List<java.lang.Long>
          getValueList() {
        return java.util.Collections.unmodifiableList(
            instance.getValueList());
      }
      /**
       * <code>repeated int64 value = 1;</code>
       * @return The count of value.
       */
      @java.lang.Override
      public int getValueCount() {
        return instance.getValueCount();
      }
      /**
       * <code>repeated int64 value = 1;</code>
       * @param index The index of the element to return.
       * @return The value at the given index.
       */
      @java.lang.Override
      public long getValue(int index) {
        return instance.getValue(index);
      }
      /**
       * <code>repeated int64 value = 1;</code>
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(
          int index, long value) {
        copyOnWrite();
        instance.setValue(index, value);
        return this;
      }
      /**
       * <code>repeated int64 value = 1;</code>
       * @param value The value to add.
       * @return This builder for chaining.
       */
      public Builder addValue(long value) {
        copyOnWrite();
        instance.addValue(value);
        return this;
      }
      /**
       * <code>repeated int64 value = 1;</code>
       * @param values The value to add.
       * @return This builder for chaining.
       */
      public Builder addAllValue(
          java.lang.Iterable<? extends java.lang.Long> values) {
        copyOnWrite();
        instance.addAllValue(values);
        return this;
      }
      /**
       * <code>repeated int64 value = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        copyOnWrite();
        instance.clearValue();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:peripheral_hr_data_zone)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "value_",
            };
            java.lang.String info =
                "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001%";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:peripheral_hr_data_zone)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone DEFAULT_INSTANCE;
    static {
      peripheral_hr_data_zone defaultInstance = new peripheral_hr_data_zone();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_hr_data_zone.class, defaultInstance);
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<peripheral_hr_data_zone> PARSER;

    public static com.google.protobuf.Parser<peripheral_hr_data_zone> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface peripheral_hr_data_sport_modeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:peripheral_hr_data_sport_mode)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>bool key_switch = 1;</code>
     * @return The keySwitch.
     */
    boolean getKeySwitch();

    /**
     * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
     * @return The enum numeric value on the wire for mode.
     */
    int getModeValue();
    /**
     * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
     * @return The mode.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE getMode();
  }
  /**
   * Protobuf type {@code peripheral_hr_data_sport_mode}
   */
  public  static final class peripheral_hr_data_sport_mode extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_hr_data_sport_mode, peripheral_hr_data_sport_mode.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_hr_data_sport_mode)
      peripheral_hr_data_sport_modeOrBuilder {
    private peripheral_hr_data_sport_mode() {
    }
    public static final int KEY_SWITCH_FIELD_NUMBER = 1;
    private boolean keySwitch_;
    /**
     * <code>bool key_switch = 1;</code>
     * @return The keySwitch.
     */
    @java.lang.Override
    public boolean getKeySwitch() {
      return keySwitch_;
    }
    /**
     * <code>bool key_switch = 1;</code>
     * @param value The keySwitch to set.
     */
    private void setKeySwitch(boolean value) {
      
      keySwitch_ = value;
    }
    /**
     * <code>bool key_switch = 1;</code>
     */
    private void clearKeySwitch() {
      
      keySwitch_ = false;
    }

    public static final int MODE_FIELD_NUMBER = 2;
    private int mode_;
    /**
     * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
     * @return The enum numeric value on the wire for mode.
     */
    @java.lang.Override
    public int getModeValue() {
      return mode_;
    }
    /**
     * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
     * @return The mode.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE getMode() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE.forNumber(mode_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
     * @param value The enum numeric value on the wire for mode to set.
     */
    private void setModeValue(int value) {
        mode_ = value;
    }
    /**
     * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
     * @param value The mode to set.
     */
    private void setMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE value) {
      mode_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
     */
    private void clearMode() {
      
      mode_ = 0;
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code peripheral_hr_data_sport_mode}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode, Builder> implements
        // @@protoc_insertion_point(builder_implements:peripheral_hr_data_sport_mode)
        nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_modeOrBuilder {
      // Construct using nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>bool key_switch = 1;</code>
       * @return The keySwitch.
       */
      @java.lang.Override
      public boolean getKeySwitch() {
        return instance.getKeySwitch();
      }
      /**
       * <code>bool key_switch = 1;</code>
       * @param value The keySwitch to set.
       * @return This builder for chaining.
       */
      public Builder setKeySwitch(boolean value) {
        copyOnWrite();
        instance.setKeySwitch(value);
        return this;
      }
      /**
       * <code>bool key_switch = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearKeySwitch() {
        copyOnWrite();
        instance.clearKeySwitch();
        return this;
      }

      /**
       * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
       * @return The enum numeric value on the wire for mode.
       */
      @java.lang.Override
      public int getModeValue() {
        return instance.getModeValue();
      }
      /**
       * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
       * @param value The mode to set.
       * @return This builder for chaining.
       */
      public Builder setModeValue(int value) {
        copyOnWrite();
        instance.setModeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
       * @return The mode.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE getMode() {
        return instance.getMode();
      }
      /**
       * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
       * @param value The enum numeric value on the wire for mode to set.
       * @return This builder for chaining.
       */
      public Builder setMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SPORT_MODE_TYPE value) {
        copyOnWrite();
        instance.setMode(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_SPORT_MODE_TYPE mode = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMode() {
        copyOnWrite();
        instance.clearMode();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:peripheral_hr_data_sport_mode)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "keySwitch_",
              "mode_",
            };
            java.lang.String info =
                "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0007\u0002\f" +
                "";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:peripheral_hr_data_sport_mode)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode DEFAULT_INSTANCE;
    static {
      peripheral_hr_data_sport_mode defaultInstance = new peripheral_hr_data_sport_mode();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_hr_data_sport_mode.class, defaultInstance);
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<peripheral_hr_data_sport_mode> PARSER;

    public static com.google.protobuf.Parser<peripheral_hr_data_sport_mode> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface peripheral_hr_messageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:peripheral_hr_message)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
     * @return Whether the hrmWarn field is set.
     */
    boolean hasHrmWarn();
    /**
     * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
     * @return The hrmWarn.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn getHrmWarn();

    /**
     * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
     * @return Whether the hrZone field is set.
     */
    boolean hasHrZone();
    /**
     * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
     * @return The hrZone.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone getHrZone();

    /**
     * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
     * @return Whether the sportMode field is set.
     */
    boolean hasSportMode();
    /**
     * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
     * @return The sportMode.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode getSportMode();
  }
  /**
   * Protobuf type {@code peripheral_hr_message}
   */
  public  static final class peripheral_hr_message extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_hr_message, peripheral_hr_message.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_hr_message)
      peripheral_hr_messageOrBuilder {
    private peripheral_hr_message() {
    }
    public static final int HRM_WARN_FIELD_NUMBER = 6;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn hrmWarn_;
    /**
     * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
     */
    @java.lang.Override
    public boolean hasHrmWarn() {
      return hrmWarn_ != null;
    }
    /**
     * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn getHrmWarn() {
      return hrmWarn_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn.getDefaultInstance() : hrmWarn_;
    }
    /**
     * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
     */
    private void setHrmWarn(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn value) {
      value.getClass();
  hrmWarn_ = value;
      
      }
    /**
     * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeHrmWarn(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn value) {
      value.getClass();
  if (hrmWarn_ != null &&
          hrmWarn_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn.getDefaultInstance()) {
        hrmWarn_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn.newBuilder(hrmWarn_).mergeFrom(value).buildPartial();
      } else {
        hrmWarn_ = value;
      }
      
    }
    /**
     * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
     */
    private void clearHrmWarn() {  hrmWarn_ = null;
      
    }

    public static final int HR_ZONE_FIELD_NUMBER = 11;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone hrZone_;
    /**
     * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
     */
    @java.lang.Override
    public boolean hasHrZone() {
      return hrZone_ != null;
    }
    /**
     * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone getHrZone() {
      return hrZone_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone.getDefaultInstance() : hrZone_;
    }
    /**
     * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
     */
    private void setHrZone(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone value) {
      value.getClass();
  hrZone_ = value;
      
      }
    /**
     * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeHrZone(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone value) {
      value.getClass();
  if (hrZone_ != null &&
          hrZone_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone.getDefaultInstance()) {
        hrZone_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone.newBuilder(hrZone_).mergeFrom(value).buildPartial();
      } else {
        hrZone_ = value;
      }
      
    }
    /**
     * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
     */
    private void clearHrZone() {  hrZone_ = null;
      
    }

    public static final int SPORT_MODE_FIELD_NUMBER = 16;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode sportMode_;
    /**
     * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
     */
    @java.lang.Override
    public boolean hasSportMode() {
      return sportMode_ != null;
    }
    /**
     * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode getSportMode() {
      return sportMode_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode.getDefaultInstance() : sportMode_;
    }
    /**
     * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
     */
    private void setSportMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode value) {
      value.getClass();
  sportMode_ = value;
      
      }
    /**
     * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeSportMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode value) {
      value.getClass();
  if (sportMode_ != null &&
          sportMode_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode.getDefaultInstance()) {
        sportMode_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode.newBuilder(sportMode_).mergeFrom(value).buildPartial();
      } else {
        sportMode_ = value;
      }
      
    }
    /**
     * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
     */
    private void clearSportMode() {  sportMode_ = null;
      
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code peripheral_hr_message}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message, Builder> implements
        // @@protoc_insertion_point(builder_implements:peripheral_hr_message)
        nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_messageOrBuilder {
      // Construct using nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
       */
      @java.lang.Override
      public boolean hasHrmWarn() {
        return instance.hasHrmWarn();
      }
      /**
       * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn getHrmWarn() {
        return instance.getHrmWarn();
      }
      /**
       * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
       */
      public Builder setHrmWarn(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn value) {
        copyOnWrite();
        instance.setHrmWarn(value);
        return this;
        }
      /**
       * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
       */
      public Builder setHrmWarn(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn.Builder builderForValue) {
        copyOnWrite();
        instance.setHrmWarn(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
       */
      public Builder mergeHrmWarn(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_warn value) {
        copyOnWrite();
        instance.mergeHrmWarn(value);
        return this;
      }
      /**
       * <code>.peripheral_hr_data_warn hrm_warn = 6;</code>
       */
      public Builder clearHrmWarn() {  copyOnWrite();
        instance.clearHrmWarn();
        return this;
      }

      /**
       * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
       */
      @java.lang.Override
      public boolean hasHrZone() {
        return instance.hasHrZone();
      }
      /**
       * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone getHrZone() {
        return instance.getHrZone();
      }
      /**
       * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
       */
      public Builder setHrZone(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone value) {
        copyOnWrite();
        instance.setHrZone(value);
        return this;
        }
      /**
       * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
       */
      public Builder setHrZone(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone.Builder builderForValue) {
        copyOnWrite();
        instance.setHrZone(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
       */
      public Builder mergeHrZone(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_zone value) {
        copyOnWrite();
        instance.mergeHrZone(value);
        return this;
      }
      /**
       * <code>.peripheral_hr_data_zone hr_zone = 11;</code>
       */
      public Builder clearHrZone() {  copyOnWrite();
        instance.clearHrZone();
        return this;
      }

      /**
       * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
       */
      @java.lang.Override
      public boolean hasSportMode() {
        return instance.hasSportMode();
      }
      /**
       * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode getSportMode() {
        return instance.getSportMode();
      }
      /**
       * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
       */
      public Builder setSportMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode value) {
        copyOnWrite();
        instance.setSportMode(value);
        return this;
        }
      /**
       * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
       */
      public Builder setSportMode(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode.Builder builderForValue) {
        copyOnWrite();
        instance.setSportMode(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
       */
      public Builder mergeSportMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_data_sport_mode value) {
        copyOnWrite();
        instance.mergeSportMode(value);
        return this;
      }
      /**
       * <code>.peripheral_hr_data_sport_mode sport_mode = 16;</code>
       */
      public Builder clearSportMode() {  copyOnWrite();
        instance.clearSportMode();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:peripheral_hr_message)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "hrmWarn_",
              "hrZone_",
              "sportMode_",
            };
            java.lang.String info =
                "\u0000\u0003\u0000\u0000\u0006\u0010\u0003\u0000\u0000\u0000\u0006\t\u000b\t\u0010" +
                "\t";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:peripheral_hr_message)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message DEFAULT_INSTANCE;
    static {
      peripheral_hr_message defaultInstance = new peripheral_hr_message();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_hr_message.class, defaultInstance);
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<peripheral_hr_message> PARSER;

    public static com.google.protobuf.Parser<peripheral_hr_message> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public interface peripheral_hr_formatOrBuilder extends
      // @@protoc_insertion_point(interface_extends:peripheral_hr_format)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
     * @return The enum numeric value on the wire for serviceType.
     */
    int getServiceTypeValue();
    /**
     * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
     * @return The serviceType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE getServiceType();

    /**
     * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
     * @return The enum numeric value on the wire for operateType.
     */
    int getOperateTypeValue();
    /**
     * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
     * @return The operateType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE getOperateType();

    /**
     * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
     * @return The enum numeric value on the wire for subServiceType.
     */
    int getSubServiceTypeValue();
    /**
     * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
     * @return The subServiceType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE getSubServiceType();

    /**
     * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
     * @return The enum numeric value on the wire for subOperateType.
     */
    int getSubOperateTypeValue();
    /**
     * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
     * @return The subOperateType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE getSubOperateType();

    /**
     * <code>.peripheral_hr_message message = 5;</code>
     * @return Whether the message field is set.
     */
    boolean hasMessage();
    /**
     * <code>.peripheral_hr_message message = 5;</code>
     * @return The message.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message getMessage();
  }
  /**
   * Protobuf type {@code peripheral_hr_format}
   */
  public  static final class peripheral_hr_format extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_hr_format, peripheral_hr_format.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_hr_format)
      peripheral_hr_formatOrBuilder {
    private peripheral_hr_format() {
    }
    public static final int SERVICE_TYPE_FIELD_NUMBER = 1;
    private int serviceType_;
    /**
     * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
     * @return The enum numeric value on the wire for serviceType.
     */
    @java.lang.Override
    public int getServiceTypeValue() {
      return serviceType_;
    }
    /**
     * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
     * @return The serviceType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE getServiceType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE.forNumber(serviceType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
     * @param value The enum numeric value on the wire for serviceType to set.
     */
    private void setServiceTypeValue(int value) {
        serviceType_ = value;
    }
    /**
     * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
     * @param value The serviceType to set.
     */
    private void setServiceType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE value) {
      serviceType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
     */
    private void clearServiceType() {
      
      serviceType_ = 0;
    }

    public static final int OPERATE_TYPE_FIELD_NUMBER = 2;
    private int operateType_;
    /**
     * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
     * @return The enum numeric value on the wire for operateType.
     */
    @java.lang.Override
    public int getOperateTypeValue() {
      return operateType_;
    }
    /**
     * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
     * @return The operateType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE getOperateType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE.forNumber(operateType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
     * @param value The enum numeric value on the wire for operateType to set.
     */
    private void setOperateTypeValue(int value) {
        operateType_ = value;
    }
    /**
     * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
     * @param value The operateType to set.
     */
    private void setOperateType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE value) {
      operateType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
     */
    private void clearOperateType() {
      
      operateType_ = 0;
    }

    public static final int SUB_SERVICE_TYPE_FIELD_NUMBER = 3;
    private int subServiceType_;
    /**
     * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
     * @return The enum numeric value on the wire for subServiceType.
     */
    @java.lang.Override
    public int getSubServiceTypeValue() {
      return subServiceType_;
    }
    /**
     * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
     * @return The subServiceType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE getSubServiceType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE.forNumber(subServiceType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
     * @param value The enum numeric value on the wire for subServiceType to set.
     */
    private void setSubServiceTypeValue(int value) {
        subServiceType_ = value;
    }
    /**
     * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
     * @param value The subServiceType to set.
     */
    private void setSubServiceType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE value) {
      subServiceType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
     */
    private void clearSubServiceType() {
      
      subServiceType_ = 0;
    }

    public static final int SUB_OPERATE_TYPE_FIELD_NUMBER = 4;
    private int subOperateType_;
    /**
     * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
     * @return The enum numeric value on the wire for subOperateType.
     */
    @java.lang.Override
    public int getSubOperateTypeValue() {
      return subOperateType_;
    }
    /**
     * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
     * @return The subOperateType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE getSubOperateType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE.forNumber(subOperateType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
     * @param value The enum numeric value on the wire for subOperateType to set.
     */
    private void setSubOperateTypeValue(int value) {
        subOperateType_ = value;
    }
    /**
     * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
     * @param value The subOperateType to set.
     */
    private void setSubOperateType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE value) {
      subOperateType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
     */
    private void clearSubOperateType() {
      
      subOperateType_ = 0;
    }

    public static final int MESSAGE_FIELD_NUMBER = 5;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message message_;
    /**
     * <code>.peripheral_hr_message message = 5;</code>
     */
    @java.lang.Override
    public boolean hasMessage() {
      return message_ != null;
    }
    /**
     * <code>.peripheral_hr_message message = 5;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message getMessage() {
      return message_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message.getDefaultInstance() : message_;
    }
    /**
     * <code>.peripheral_hr_message message = 5;</code>
     */
    private void setMessage(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message value) {
      value.getClass();
  message_ = value;
      
      }
    /**
     * <code>.peripheral_hr_message message = 5;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeMessage(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message value) {
      value.getClass();
  if (message_ != null &&
          message_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message.getDefaultInstance()) {
        message_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message.newBuilder(message_).mergeFrom(value).buildPartial();
      } else {
        message_ = value;
      }
      
    }
    /**
     * <code>.peripheral_hr_message message = 5;</code>
     */
    private void clearMessage() {  message_ = null;
      
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code peripheral_hr_format}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format, Builder> implements
        // @@protoc_insertion_point(builder_implements:peripheral_hr_format)
        nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_formatOrBuilder {
      // Construct using nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
       * @return The enum numeric value on the wire for serviceType.
       */
      @java.lang.Override
      public int getServiceTypeValue() {
        return instance.getServiceTypeValue();
      }
      /**
       * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
       * @param value The serviceType to set.
       * @return This builder for chaining.
       */
      public Builder setServiceTypeValue(int value) {
        copyOnWrite();
        instance.setServiceTypeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
       * @return The serviceType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE getServiceType() {
        return instance.getServiceType();
      }
      /**
       * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
       * @param value The enum numeric value on the wire for serviceType to set.
       * @return This builder for chaining.
       */
      public Builder setServiceType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_SERVICE_TYPE value) {
        copyOnWrite();
        instance.setServiceType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_SERVICE_TYPE service_type = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearServiceType() {
        copyOnWrite();
        instance.clearServiceType();
        return this;
      }

      /**
       * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
       * @return The enum numeric value on the wire for operateType.
       */
      @java.lang.Override
      public int getOperateTypeValue() {
        return instance.getOperateTypeValue();
      }
      /**
       * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
       * @param value The operateType to set.
       * @return This builder for chaining.
       */
      public Builder setOperateTypeValue(int value) {
        copyOnWrite();
        instance.setOperateTypeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
       * @return The operateType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE getOperateType() {
        return instance.getOperateType();
      }
      /**
       * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
       * @param value The enum numeric value on the wire for operateType to set.
       * @return This builder for chaining.
       */
      public Builder setOperateType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralCommon.PERIPHERAL_OPERATE_TYPE value) {
        copyOnWrite();
        instance.setOperateType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_OPERATE_TYPE operate_type = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearOperateType() {
        copyOnWrite();
        instance.clearOperateType();
        return this;
      }

      /**
       * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
       * @return The enum numeric value on the wire for subServiceType.
       */
      @java.lang.Override
      public int getSubServiceTypeValue() {
        return instance.getSubServiceTypeValue();
      }
      /**
       * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
       * @param value The subServiceType to set.
       * @return This builder for chaining.
       */
      public Builder setSubServiceTypeValue(int value) {
        copyOnWrite();
        instance.setSubServiceTypeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
       * @return The subServiceType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE getSubServiceType() {
        return instance.getSubServiceType();
      }
      /**
       * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
       * @param value The enum numeric value on the wire for subServiceType to set.
       * @return This builder for chaining.
       */
      public Builder setSubServiceType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_SERVICE value) {
        copyOnWrite();
        instance.setSubServiceType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_SERVICE sub_service_type = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearSubServiceType() {
        copyOnWrite();
        instance.clearSubServiceType();
        return this;
      }

      /**
       * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
       * @return The enum numeric value on the wire for subOperateType.
       */
      @java.lang.Override
      public int getSubOperateTypeValue() {
        return instance.getSubOperateTypeValue();
      }
      /**
       * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
       * @param value The subOperateType to set.
       * @return This builder for chaining.
       */
      public Builder setSubOperateTypeValue(int value) {
        copyOnWrite();
        instance.setSubOperateTypeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
       * @return The subOperateType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE getSubOperateType() {
        return instance.getSubOperateType();
      }
      /**
       * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
       * @param value The enum numeric value on the wire for subOperateType to set.
       * @return This builder for chaining.
       */
      public Builder setSubOperateType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.PERIPHERAL_HR_OPERATE value) {
        copyOnWrite();
        instance.setSubOperateType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_HR_OPERATE sub_operate_type = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearSubOperateType() {
        copyOnWrite();
        instance.clearSubOperateType();
        return this;
      }

      /**
       * <code>.peripheral_hr_message message = 5;</code>
       */
      @java.lang.Override
      public boolean hasMessage() {
        return instance.hasMessage();
      }
      /**
       * <code>.peripheral_hr_message message = 5;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message getMessage() {
        return instance.getMessage();
      }
      /**
       * <code>.peripheral_hr_message message = 5;</code>
       */
      public Builder setMessage(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message value) {
        copyOnWrite();
        instance.setMessage(value);
        return this;
        }
      /**
       * <code>.peripheral_hr_message message = 5;</code>
       */
      public Builder setMessage(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message.Builder builderForValue) {
        copyOnWrite();
        instance.setMessage(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_hr_message message = 5;</code>
       */
      public Builder mergeMessage(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_message value) {
        copyOnWrite();
        instance.mergeMessage(value);
        return this;
      }
      /**
       * <code>.peripheral_hr_message message = 5;</code>
       */
      public Builder clearMessage() {  copyOnWrite();
        instance.clearMessage();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:peripheral_hr_format)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "serviceType_",
              "operateType_",
              "subServiceType_",
              "subOperateType_",
              "message_",
            };
            java.lang.String info =
                "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\f\u0002\f\u0003" +
                "\f\u0004\f\u0005\t";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format>(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:peripheral_hr_format)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format DEFAULT_INSTANCE;
    static {
      peripheral_hr_format defaultInstance = new peripheral_hr_format();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_hr_format.class, defaultInstance);
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralHr.peripheral_hr_format getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser<peripheral_hr_format> PARSER;

    public static com.google.protobuf.Parser<peripheral_hr_format> parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}
