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

package nodomain.freeyourgadget.gadgetbridge.proto.igpsport;

public final class PeripheralLight {
  private PeripheralLight() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * Protobuf enum {@code PERIPHERAL_LIGHT_SERVICE}
   */
  public enum PERIPHERAL_LIGHT_SERVICE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PLS_NSPECIFIED = 0;</code>
     */
    PLS_NSPECIFIED(0),
    /**
     * <code>PLS_LIGHT_TYPE = 1;</code>
     */
    PLS_LIGHT_TYPE(1),
    /**
     * <code>PLS_LIGHT_MODE_SUP = 6;</code>
     */
    PLS_LIGHT_MODE_SUP(6),
    /**
     * <code>PLS_LIGHT_CURRENT = 7;</code>
     */
    PLS_LIGHT_CURRENT(7),
    /**
     * <code>PLS_LIGHT_CUSTOME = 8;</code>
     */
    PLS_LIGHT_CUSTOME(8),
    /**
     * <code>PLS_CUSTOME_SET = 9;</code>
     */
    PLS_CUSTOME_SET(9),
    /**
     * <code>PLS_LIGHT_AUTO_CONFIG = 14;</code>
     */
    PLS_LIGHT_AUTO_CONFIG(14),
    /**
     * <code>PLS_SLEEP_FOLLOW = 15;</code>
     */
    PLS_SLEEP_FOLLOW(15),
    /**
     * <code>PLS_AUTOLIGHT_FOLLOW = 16;</code>
     */
    PLS_AUTOLIGHT_FOLLOW(16),
    /**
     * <code>PLS_SYC_OFF = 17;</code>
     */
    PLS_SYC_OFF(17),
    /**
     * <code>PLS_REMAINING_TIME = 18;</code>
     */
    PLS_REMAINING_TIME(18),
    /**
     * <code>PLS_LIGHT_CFG_SUP = 19;</code>
     */
    PLS_LIGHT_CFG_SUP(19),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PLS_NSPECIFIED = 0;</code>
     */
    public static final int PLS_NSPECIFIED_VALUE = 0;
    /**
     * <code>PLS_LIGHT_TYPE = 1;</code>
     */
    public static final int PLS_LIGHT_TYPE_VALUE = 1;
    /**
     * <code>PLS_LIGHT_MODE_SUP = 6;</code>
     */
    public static final int PLS_LIGHT_MODE_SUP_VALUE = 6;
    /**
     * <code>PLS_LIGHT_CURRENT = 7;</code>
     */
    public static final int PLS_LIGHT_CURRENT_VALUE = 7;
    /**
     * <code>PLS_LIGHT_CUSTOME = 8;</code>
     */
    public static final int PLS_LIGHT_CUSTOME_VALUE = 8;
    /**
     * <code>PLS_CUSTOME_SET = 9;</code>
     */
    public static final int PLS_CUSTOME_SET_VALUE = 9;
    /**
     * <code>PLS_LIGHT_AUTO_CONFIG = 14;</code>
     */
    public static final int PLS_LIGHT_AUTO_CONFIG_VALUE = 14;
    /**
     * <code>PLS_SLEEP_FOLLOW = 15;</code>
     */
    public static final int PLS_SLEEP_FOLLOW_VALUE = 15;
    /**
     * <code>PLS_AUTOLIGHT_FOLLOW = 16;</code>
     */
    public static final int PLS_AUTOLIGHT_FOLLOW_VALUE = 16;
    /**
     * <code>PLS_SYC_OFF = 17;</code>
     */
    public static final int PLS_SYC_OFF_VALUE = 17;
    /**
     * <code>PLS_REMAINING_TIME = 18;</code>
     */
    public static final int PLS_REMAINING_TIME_VALUE = 18;
    /**
     * <code>PLS_LIGHT_CFG_SUP = 19;</code>
     */
    public static final int PLS_LIGHT_CFG_SUP_VALUE = 19;


    @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_LIGHT_SERVICE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_LIGHT_SERVICE forNumber(int value) {
      switch (value) {
        case 0: return PLS_NSPECIFIED;
        case 1: return PLS_LIGHT_TYPE;
        case 6: return PLS_LIGHT_MODE_SUP;
        case 7: return PLS_LIGHT_CURRENT;
        case 8: return PLS_LIGHT_CUSTOME;
        case 9: return PLS_CUSTOME_SET;
        case 14: return PLS_LIGHT_AUTO_CONFIG;
        case 15: return PLS_SLEEP_FOLLOW;
        case 16: return PLS_AUTOLIGHT_FOLLOW;
        case 17: return PLS_SYC_OFF;
        case 18: return PLS_REMAINING_TIME;
        case 19: return PLS_LIGHT_CFG_SUP;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_LIGHT_SERVICE)
  }

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

    /**
     * <code>PLO_NSPECIFIED = 0;</code>
     */
    public static final int PLO_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_LIGHT_OPERATE valueOf(int value) {
      return forNumber(value);
    }

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

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_LIGHT_OPERATE)
  }

  /**
   * Protobuf enum {@code PERIPHERAL_LIGHT_TYPE}
   */
  public enum PERIPHERAL_LIGHT_TYPE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PLT_INVALID = 0;</code>
     */
    PLT_INVALID(0),
    /**
     * <code>PLT_TAIL_LIGHT = 1;</code>
     */
    PLT_TAIL_LIGHT(1),
    /**
     * <code>PLT_FRONT_LIGHT = 2;</code>
     */
    PLT_FRONT_LIGHT(2),
    /**
     * <code>PLT_HEAD_LIGHT = 3;</code>
     */
    PLT_HEAD_LIGHT(3),
    /**
     * <code>PLT_LEFT_LIGHT = 4;</code>
     */
    PLT_LEFT_LIGHT(4),
    /**
     * <code>PLT_RIGHT_LIGHT = 5;</code>
     */
    PLT_RIGHT_LIGHT(5),
    /**
     * <code>PLT_TIRE_LIGHT = 6;</code>
     */
    PLT_TIRE_LIGHT(6),
    /**
     * <code>PLT_PACK_LIGHT = 7;</code>
     */
    PLT_PACK_LIGHT(7),
    /**
     * <code>PLT_PEDAL_LIGHT = 8;</code>
     */
    PLT_PEDAL_LIGHT(8),
    /**
     * <code>PLT_FRAME_LIGHT = 9;</code>
     */
    PLT_FRAME_LIGHT(9),
    /**
     * <code>PLT_SPOKE_LIGHT = 10;</code>
     */
    PLT_SPOKE_LIGHT(10),
    /**
     * <code>PLT_RADAR_LIGHT = 11;</code>
     */
    PLT_RADAR_LIGHT(11),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PLT_INVALID = 0;</code>
     */
    public static final int PLT_INVALID_VALUE = 0;
    /**
     * <code>PLT_TAIL_LIGHT = 1;</code>
     */
    public static final int PLT_TAIL_LIGHT_VALUE = 1;
    /**
     * <code>PLT_FRONT_LIGHT = 2;</code>
     */
    public static final int PLT_FRONT_LIGHT_VALUE = 2;
    /**
     * <code>PLT_HEAD_LIGHT = 3;</code>
     */
    public static final int PLT_HEAD_LIGHT_VALUE = 3;
    /**
     * <code>PLT_LEFT_LIGHT = 4;</code>
     */
    public static final int PLT_LEFT_LIGHT_VALUE = 4;
    /**
     * <code>PLT_RIGHT_LIGHT = 5;</code>
     */
    public static final int PLT_RIGHT_LIGHT_VALUE = 5;
    /**
     * <code>PLT_TIRE_LIGHT = 6;</code>
     */
    public static final int PLT_TIRE_LIGHT_VALUE = 6;
    /**
     * <code>PLT_PACK_LIGHT = 7;</code>
     */
    public static final int PLT_PACK_LIGHT_VALUE = 7;
    /**
     * <code>PLT_PEDAL_LIGHT = 8;</code>
     */
    public static final int PLT_PEDAL_LIGHT_VALUE = 8;
    /**
     * <code>PLT_FRAME_LIGHT = 9;</code>
     */
    public static final int PLT_FRAME_LIGHT_VALUE = 9;
    /**
     * <code>PLT_SPOKE_LIGHT = 10;</code>
     */
    public static final int PLT_SPOKE_LIGHT_VALUE = 10;
    /**
     * <code>PLT_RADAR_LIGHT = 11;</code>
     */
    public static final int PLT_RADAR_LIGHT_VALUE = 11;


    @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_LIGHT_TYPE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_LIGHT_TYPE forNumber(int value) {
      switch (value) {
        case 0: return PLT_INVALID;
        case 1: return PLT_TAIL_LIGHT;
        case 2: return PLT_FRONT_LIGHT;
        case 3: return PLT_HEAD_LIGHT;
        case 4: return PLT_LEFT_LIGHT;
        case 5: return PLT_RIGHT_LIGHT;
        case 6: return PLT_TIRE_LIGHT;
        case 7: return PLT_PACK_LIGHT;
        case 8: return PLT_PEDAL_LIGHT;
        case 9: return PLT_FRAME_LIGHT;
        case 10: return PLT_SPOKE_LIGHT;
        case 11: return PLT_RADAR_LIGHT;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_LIGHT_TYPE)
  }

  /**
   * Protobuf enum {@code PERIPHERAL_LIGHT_CONFIG_SUP}
   */
  public enum PERIPHERAL_LIGHT_CONFIG_SUP
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PLCS_INVALID = 0;</code>
     */
    PLCS_INVALID(0),
    /**
     * <code>PLCS_ROUTE = 1;</code>
     */
    PLCS_ROUTE(1),
    /**
     * <code>PLCS_RIDE_SYNC = 2;</code>
     */
    PLCS_RIDE_SYNC(2),
    /**
     * <code>PLCS_BRAKE_LIGHT = 3;</code>
     */
    PLCS_BRAKE_LIGHT(3),
    /**
     * <code>PLCS_SYNC_LIGHT = 4;</code>
     */
    PLCS_SYNC_LIGHT(4),
    /**
     * <code>PLCS_SYNC_SLEEP = 5;</code>
     */
    PLCS_SYNC_SLEEP(5),
    /**
     * <code>PLCS_SYNC_OFF = 6;</code>
     */
    PLCS_SYNC_OFF(6),
    /**
     * <code>PLCS_TEAM_RIDE = 7;</code>
     */
    PLCS_TEAM_RIDE(7),
    /**
     * <code>PLCS_RADAR = 8;</code>
     */
    PLCS_RADAR(8),
    /**
     * <code>PLCS_END = 31;</code>
     */
    PLCS_END(31),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PLCS_INVALID = 0;</code>
     */
    public static final int PLCS_INVALID_VALUE = 0;
    /**
     * <code>PLCS_ROUTE = 1;</code>
     */
    public static final int PLCS_ROUTE_VALUE = 1;
    /**
     * <code>PLCS_RIDE_SYNC = 2;</code>
     */
    public static final int PLCS_RIDE_SYNC_VALUE = 2;
    /**
     * <code>PLCS_BRAKE_LIGHT = 3;</code>
     */
    public static final int PLCS_BRAKE_LIGHT_VALUE = 3;
    /**
     * <code>PLCS_SYNC_LIGHT = 4;</code>
     */
    public static final int PLCS_SYNC_LIGHT_VALUE = 4;
    /**
     * <code>PLCS_SYNC_SLEEP = 5;</code>
     */
    public static final int PLCS_SYNC_SLEEP_VALUE = 5;
    /**
     * <code>PLCS_SYNC_OFF = 6;</code>
     */
    public static final int PLCS_SYNC_OFF_VALUE = 6;
    /**
     * <code>PLCS_TEAM_RIDE = 7;</code>
     */
    public static final int PLCS_TEAM_RIDE_VALUE = 7;
    /**
     * <code>PLCS_RADAR = 8;</code>
     */
    public static final int PLCS_RADAR_VALUE = 8;
    /**
     * <code>PLCS_END = 31;</code>
     */
    public static final int PLCS_END_VALUE = 31;


    @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_LIGHT_CONFIG_SUP valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_LIGHT_CONFIG_SUP forNumber(int value) {
      switch (value) {
        case 0: return PLCS_INVALID;
        case 1: return PLCS_ROUTE;
        case 2: return PLCS_RIDE_SYNC;
        case 3: return PLCS_BRAKE_LIGHT;
        case 4: return PLCS_SYNC_LIGHT;
        case 5: return PLCS_SYNC_SLEEP;
        case 6: return PLCS_SYNC_OFF;
        case 7: return PLCS_TEAM_RIDE;
        case 8: return PLCS_RADAR;
        case 31: return PLCS_END;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_LIGHT_CONFIG_SUP)
  }

  /**
   * Protobuf enum {@code PERIPHERAL_LIGHT_MODE}
   */
  public enum PERIPHERAL_LIGHT_MODE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PLM_UNSPECIFIED = 0;</code>
     */
    PLM_UNSPECIFIED(0),
    /**
     * <code>PLM_HIGH_ALWAYS = 1;</code>
     */
    PLM_HIGH_ALWAYS(1),
    /**
     * <code>PLM_MID_ALWAYS = 2;</code>
     */
    PLM_MID_ALWAYS(2),
    /**
     * <code>PLM_LOW_ALWAYS = 3;</code>
     */
    PLM_LOW_ALWAYS(3),
    /**
     * <code>PLM_HIGH_BLINK = 4;</code>
     */
    PLM_HIGH_BLINK(4),
    /**
     * <code>PLM_LOW_BLINK = 5;</code>
     */
    PLM_LOW_BLINK(5),
    /**
     * <code>PLM_GRADIENT = 6;</code>
     */
    PLM_GRADIENT(6),
    /**
     * <code>PLM_CUSTOMIZE = 7;</code>
     */
    PLM_CUSTOMIZE(7),
    /**
     * <code>PLM_LIGHT_OFF = 20;</code>
     */
    PLM_LIGHT_OFF(20),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PLM_UNSPECIFIED = 0;</code>
     */
    public static final int PLM_UNSPECIFIED_VALUE = 0;
    /**
     * <code>PLM_HIGH_ALWAYS = 1;</code>
     */
    public static final int PLM_HIGH_ALWAYS_VALUE = 1;
    /**
     * <code>PLM_MID_ALWAYS = 2;</code>
     */
    public static final int PLM_MID_ALWAYS_VALUE = 2;
    /**
     * <code>PLM_LOW_ALWAYS = 3;</code>
     */
    public static final int PLM_LOW_ALWAYS_VALUE = 3;
    /**
     * <code>PLM_HIGH_BLINK = 4;</code>
     */
    public static final int PLM_HIGH_BLINK_VALUE = 4;
    /**
     * <code>PLM_LOW_BLINK = 5;</code>
     */
    public static final int PLM_LOW_BLINK_VALUE = 5;
    /**
     * <code>PLM_GRADIENT = 6;</code>
     */
    public static final int PLM_GRADIENT_VALUE = 6;
    /**
     * <code>PLM_CUSTOMIZE = 7;</code>
     */
    public static final int PLM_CUSTOMIZE_VALUE = 7;
    /**
     * <code>PLM_LIGHT_OFF = 20;</code>
     */
    public static final int PLM_LIGHT_OFF_VALUE = 20;


    @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_LIGHT_MODE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_LIGHT_MODE forNumber(int value) {
      switch (value) {
        case 0: return PLM_UNSPECIFIED;
        case 1: return PLM_HIGH_ALWAYS;
        case 2: return PLM_MID_ALWAYS;
        case 3: return PLM_LOW_ALWAYS;
        case 4: return PLM_HIGH_BLINK;
        case 5: return PLM_LOW_BLINK;
        case 6: return PLM_GRADIENT;
        case 7: return PLM_CUSTOMIZE;
        case 20: return PLM_LIGHT_OFF;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_LIGHT_MODE)
  }

  /**
   * Protobuf enum {@code AUTO_CONFIG_TYPE}
   */
  public enum AUTO_CONFIG_TYPE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>enum_AUTO_CONFIG_INVALID = 0;</code>
     */
    enum_AUTO_CONFIG_INVALID(0),
    /**
     * <code>enum_AUTO_CONFIG_FOLLOW = 1;</code>
     */
    enum_AUTO_CONFIG_FOLLOW(1),
    /**
     * <code>enum_AUTO_CONFIG_SELF = 2;</code>
     */
    enum_AUTO_CONFIG_SELF(2),
    /**
     * <code>enum_AUTO_CONFIG_OFF = 3;</code>
     */
    enum_AUTO_CONFIG_OFF(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>enum_AUTO_CONFIG_INVALID = 0;</code>
     */
    public static final int enum_AUTO_CONFIG_INVALID_VALUE = 0;
    /**
     * <code>enum_AUTO_CONFIG_FOLLOW = 1;</code>
     */
    public static final int enum_AUTO_CONFIG_FOLLOW_VALUE = 1;
    /**
     * <code>enum_AUTO_CONFIG_SELF = 2;</code>
     */
    public static final int enum_AUTO_CONFIG_SELF_VALUE = 2;
    /**
     * <code>enum_AUTO_CONFIG_OFF = 3;</code>
     */
    public static final int enum_AUTO_CONFIG_OFF_VALUE = 3;


    @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 AUTO_CONFIG_TYPE valueOf(int value) {
      return forNumber(value);
    }

    public static AUTO_CONFIG_TYPE forNumber(int value) {
      switch (value) {
        case 0: return enum_AUTO_CONFIG_INVALID;
        case 1: return enum_AUTO_CONFIG_FOLLOW;
        case 2: return enum_AUTO_CONFIG_SELF;
        case 3: return enum_AUTO_CONFIG_OFF;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:AUTO_CONFIG_TYPE)
  }

  /**
   * Protobuf enum {@code PERIPHERAL_LIGHT_CUSTOME_MODE}
   */
  public enum PERIPHERAL_LIGHT_CUSTOME_MODE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PLCM_UNSPECIFIED = 0;</code>
     */
    PLCM_UNSPECIFIED(0),
    /**
     * <code>PLCM_GRADIENT = 1;</code>
     */
    PLCM_GRADIENT(1),
    /**
     * <code>PLCM_REGULAR_BLINK = 2;</code>
     */
    PLCM_REGULAR_BLINK(2),
    /**
     * <code>PLCM_ALWAYS = 3;</code>
     */
    PLCM_ALWAYS(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PLCM_UNSPECIFIED = 0;</code>
     */
    public static final int PLCM_UNSPECIFIED_VALUE = 0;
    /**
     * <code>PLCM_GRADIENT = 1;</code>
     */
    public static final int PLCM_GRADIENT_VALUE = 1;
    /**
     * <code>PLCM_REGULAR_BLINK = 2;</code>
     */
    public static final int PLCM_REGULAR_BLINK_VALUE = 2;
    /**
     * <code>PLCM_ALWAYS = 3;</code>
     */
    public static final int PLCM_ALWAYS_VALUE = 3;


    @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_LIGHT_CUSTOME_MODE valueOf(int value) {
      return forNumber(value);
    }

    public static PERIPHERAL_LIGHT_CUSTOME_MODE forNumber(int value) {
      switch (value) {
        case 0: return PLCM_UNSPECIFIED;
        case 1: return PLCM_GRADIENT;
        case 2: return PLCM_REGULAR_BLINK;
        case 3: return PLCM_ALWAYS;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_LIGHT_CUSTOME_MODE)
  }

  /**
   * Protobuf enum {@code FOLLOW_MODE_FLAG}
   */
  public enum FOLLOW_MODE_FLAG
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>enum_MODE_FLAG_INVALID = 0;</code>
     */
    enum_MODE_FLAG_INVALID(0),
    /**
     * <code>enum_MODE_FLAG_TRUE = 1;</code>
     */
    enum_MODE_FLAG_TRUE(1),
    /**
     * <code>enum_MODE_FLAG_FALSE = 2;</code>
     */
    enum_MODE_FLAG_FALSE(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>enum_MODE_FLAG_INVALID = 0;</code>
     */
    public static final int enum_MODE_FLAG_INVALID_VALUE = 0;
    /**
     * <code>enum_MODE_FLAG_TRUE = 1;</code>
     */
    public static final int enum_MODE_FLAG_TRUE_VALUE = 1;
    /**
     * <code>enum_MODE_FLAG_FALSE = 2;</code>
     */
    public static final int enum_MODE_FLAG_FALSE_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 FOLLOW_MODE_FLAG valueOf(int value) {
      return forNumber(value);
    }

    public static FOLLOW_MODE_FLAG forNumber(int value) {
      switch (value) {
        case 0: return enum_MODE_FLAG_INVALID;
        case 1: return enum_MODE_FLAG_TRUE;
        case 2: return enum_MODE_FLAG_FALSE;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:FOLLOW_MODE_FLAG)
  }

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

    /**
     * <code>bool status = 1;</code>
     * @return The status.
     */
    boolean getStatus();
  }
  /**
   * Protobuf type {@code auto_pwr_cfg}
   */
  public  static final class auto_pwr_cfg extends
      com.google.protobuf.GeneratedMessageLite<
          auto_pwr_cfg, auto_pwr_cfg.Builder> implements
      // @@protoc_insertion_point(message_implements:auto_pwr_cfg)
      auto_pwr_cfgOrBuilder {
    private auto_pwr_cfg() {
    }
    public static final int STATUS_FIELD_NUMBER = 1;
    private boolean status_;
    /**
     * <code>bool status = 1;</code>
     * @return The status.
     */
    @java.lang.Override
    public boolean getStatus() {
      return status_;
    }
    /**
     * <code>bool status = 1;</code>
     * @param value The status to set.
     */
    private void setStatus(boolean value) {
      
      status_ = value;
    }
    /**
     * <code>bool status = 1;</code>
     */
    private void clearStatus() {
      
      status_ = false;
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg 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.PeripheralLight.auto_pwr_cfg prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

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


      /**
       * <code>bool status = 1;</code>
       * @return The status.
       */
      @java.lang.Override
      public boolean getStatus() {
        return instance.getStatus();
      }
      /**
       * <code>bool status = 1;</code>
       * @param value The status to set.
       * @return This builder for chaining.
       */
      public Builder setStatus(boolean value) {
        copyOnWrite();
        instance.setStatus(value);
        return this;
      }
      /**
       * <code>bool status = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearStatus() {
        copyOnWrite();
        instance.clearStatus();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:auto_pwr_cfg)
    }
    @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.PeripheralLight.auto_pwr_cfg();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "status_",
            };
            java.lang.String info =
                "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0007";
            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.PeripheralLight.auto_pwr_cfg> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg>(
                        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:auto_pwr_cfg)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg DEFAULT_INSTANCE;
    static {
      auto_pwr_cfg defaultInstance = new auto_pwr_cfg();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        auto_pwr_cfg.class, defaultInstance);
    }

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

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

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

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

    /**
     * <code>bool status = 1;</code>
     * @return The status.
     */
    boolean getStatus();

    /**
     * <code>int32 time_out = 2;</code>
     * @return The timeOut.
     */
    int getTimeOut();
  }
  /**
   * Protobuf type {@code auto_low_cfg}
   */
  public  static final class auto_low_cfg extends
      com.google.protobuf.GeneratedMessageLite<
          auto_low_cfg, auto_low_cfg.Builder> implements
      // @@protoc_insertion_point(message_implements:auto_low_cfg)
      auto_low_cfgOrBuilder {
    private auto_low_cfg() {
    }
    public static final int STATUS_FIELD_NUMBER = 1;
    private boolean status_;
    /**
     * <code>bool status = 1;</code>
     * @return The status.
     */
    @java.lang.Override
    public boolean getStatus() {
      return status_;
    }
    /**
     * <code>bool status = 1;</code>
     * @param value The status to set.
     */
    private void setStatus(boolean value) {
      
      status_ = value;
    }
    /**
     * <code>bool status = 1;</code>
     */
    private void clearStatus() {
      
      status_ = false;
    }

    public static final int TIME_OUT_FIELD_NUMBER = 2;
    private int timeOut_;
    /**
     * <code>int32 time_out = 2;</code>
     * @return The timeOut.
     */
    @java.lang.Override
    public int getTimeOut() {
      return timeOut_;
    }
    /**
     * <code>int32 time_out = 2;</code>
     * @param value The timeOut to set.
     */
    private void setTimeOut(int value) {
      
      timeOut_ = value;
    }
    /**
     * <code>int32 time_out = 2;</code>
     */
    private void clearTimeOut() {
      
      timeOut_ = 0;
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg 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.PeripheralLight.auto_low_cfg prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

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


      /**
       * <code>bool status = 1;</code>
       * @return The status.
       */
      @java.lang.Override
      public boolean getStatus() {
        return instance.getStatus();
      }
      /**
       * <code>bool status = 1;</code>
       * @param value The status to set.
       * @return This builder for chaining.
       */
      public Builder setStatus(boolean value) {
        copyOnWrite();
        instance.setStatus(value);
        return this;
      }
      /**
       * <code>bool status = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearStatus() {
        copyOnWrite();
        instance.clearStatus();
        return this;
      }

      /**
       * <code>int32 time_out = 2;</code>
       * @return The timeOut.
       */
      @java.lang.Override
      public int getTimeOut() {
        return instance.getTimeOut();
      }
      /**
       * <code>int32 time_out = 2;</code>
       * @param value The timeOut to set.
       * @return This builder for chaining.
       */
      public Builder setTimeOut(int value) {
        copyOnWrite();
        instance.setTimeOut(value);
        return this;
      }
      /**
       * <code>int32 time_out = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearTimeOut() {
        copyOnWrite();
        instance.clearTimeOut();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:auto_low_cfg)
    }
    @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.PeripheralLight.auto_low_cfg();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "status_",
              "timeOut_",
            };
            java.lang.String info =
                "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0007\u0002\u0004" +
                "";
            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.PeripheralLight.auto_low_cfg> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg>(
                        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:auto_low_cfg)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg DEFAULT_INSTANCE;
    static {
      auto_low_cfg defaultInstance = new auto_low_cfg();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        auto_low_cfg.class, defaultInstance);
    }

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

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

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

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

    /**
     * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
     * @return The enum numeric value on the wire for autoLight.
     */
    int getAutoLightValue();
    /**
     * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
     * @return The autoLight.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE getAutoLight();

    /**
     * <code>bool brake_swtich = 2;</code>
     * @return The brakeSwtich.
     */
    boolean getBrakeSwtich();

    /**
     * <code>bool team_ride = 3;</code>
     * @return The teamRide.
     */
    boolean getTeamRide();

    /**
     * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
     * @return The enum numeric value on the wire for autoSleep.
     */
    int getAutoSleepValue();
    /**
     * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
     * @return The autoSleep.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE getAutoSleep();

    /**
     * <code>int32 sleep_cnt = 5;</code>
     * @return The sleepCnt.
     */
    int getSleepCnt();

    /**
     * <code>bool sync_off = 6;</code>
     * @return The syncOff.
     */
    boolean getSyncOff();

    /**
     * <code>.auto_pwr_cfg auto_pwr = 7;</code>
     * @return Whether the autoPwr field is set.
     */
    boolean hasAutoPwr();
    /**
     * <code>.auto_pwr_cfg auto_pwr = 7;</code>
     * @return The autoPwr.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg getAutoPwr();

    /**
     * <code>.auto_low_cfg auto_low = 8;</code>
     * @return Whether the autoLow field is set.
     */
    boolean hasAutoLow();
    /**
     * <code>.auto_low_cfg auto_low = 8;</code>
     * @return The autoLow.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg getAutoLow();
  }
  /**
   * Protobuf type {@code peripheral_auto_config_message}
   */
  public  static final class peripheral_auto_config_message extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_auto_config_message, peripheral_auto_config_message.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_auto_config_message)
      peripheral_auto_config_messageOrBuilder {
    private peripheral_auto_config_message() {
    }
    public static final int AUTO_LIGHT_FIELD_NUMBER = 1;
    private int autoLight_;
    /**
     * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
     * @return The enum numeric value on the wire for autoLight.
     */
    @java.lang.Override
    public int getAutoLightValue() {
      return autoLight_;
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
     * @return The autoLight.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE getAutoLight() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE.forNumber(autoLight_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
     * @param value The enum numeric value on the wire for autoLight to set.
     */
    private void setAutoLightValue(int value) {
        autoLight_ = value;
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
     * @param value The autoLight to set.
     */
    private void setAutoLight(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE value) {
      autoLight_ = value.getNumber();
      
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
     */
    private void clearAutoLight() {
      
      autoLight_ = 0;
    }

    public static final int BRAKE_SWTICH_FIELD_NUMBER = 2;
    private boolean brakeSwtich_;
    /**
     * <code>bool brake_swtich = 2;</code>
     * @return The brakeSwtich.
     */
    @java.lang.Override
    public boolean getBrakeSwtich() {
      return brakeSwtich_;
    }
    /**
     * <code>bool brake_swtich = 2;</code>
     * @param value The brakeSwtich to set.
     */
    private void setBrakeSwtich(boolean value) {
      
      brakeSwtich_ = value;
    }
    /**
     * <code>bool brake_swtich = 2;</code>
     */
    private void clearBrakeSwtich() {
      
      brakeSwtich_ = false;
    }

    public static final int TEAM_RIDE_FIELD_NUMBER = 3;
    private boolean teamRide_;
    /**
     * <code>bool team_ride = 3;</code>
     * @return The teamRide.
     */
    @java.lang.Override
    public boolean getTeamRide() {
      return teamRide_;
    }
    /**
     * <code>bool team_ride = 3;</code>
     * @param value The teamRide to set.
     */
    private void setTeamRide(boolean value) {
      
      teamRide_ = value;
    }
    /**
     * <code>bool team_ride = 3;</code>
     */
    private void clearTeamRide() {
      
      teamRide_ = false;
    }

    public static final int AUTO_SLEEP_FIELD_NUMBER = 4;
    private int autoSleep_;
    /**
     * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
     * @return The enum numeric value on the wire for autoSleep.
     */
    @java.lang.Override
    public int getAutoSleepValue() {
      return autoSleep_;
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
     * @return The autoSleep.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE getAutoSleep() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE.forNumber(autoSleep_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
     * @param value The enum numeric value on the wire for autoSleep to set.
     */
    private void setAutoSleepValue(int value) {
        autoSleep_ = value;
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
     * @param value The autoSleep to set.
     */
    private void setAutoSleep(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE value) {
      autoSleep_ = value.getNumber();
      
    }
    /**
     * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
     */
    private void clearAutoSleep() {
      
      autoSleep_ = 0;
    }

    public static final int SLEEP_CNT_FIELD_NUMBER = 5;
    private int sleepCnt_;
    /**
     * <code>int32 sleep_cnt = 5;</code>
     * @return The sleepCnt.
     */
    @java.lang.Override
    public int getSleepCnt() {
      return sleepCnt_;
    }
    /**
     * <code>int32 sleep_cnt = 5;</code>
     * @param value The sleepCnt to set.
     */
    private void setSleepCnt(int value) {
      
      sleepCnt_ = value;
    }
    /**
     * <code>int32 sleep_cnt = 5;</code>
     */
    private void clearSleepCnt() {
      
      sleepCnt_ = 0;
    }

    public static final int SYNC_OFF_FIELD_NUMBER = 6;
    private boolean syncOff_;
    /**
     * <code>bool sync_off = 6;</code>
     * @return The syncOff.
     */
    @java.lang.Override
    public boolean getSyncOff() {
      return syncOff_;
    }
    /**
     * <code>bool sync_off = 6;</code>
     * @param value The syncOff to set.
     */
    private void setSyncOff(boolean value) {
      
      syncOff_ = value;
    }
    /**
     * <code>bool sync_off = 6;</code>
     */
    private void clearSyncOff() {
      
      syncOff_ = false;
    }

    public static final int AUTO_PWR_FIELD_NUMBER = 7;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg autoPwr_;
    /**
     * <code>.auto_pwr_cfg auto_pwr = 7;</code>
     */
    @java.lang.Override
    public boolean hasAutoPwr() {
      return autoPwr_ != null;
    }
    /**
     * <code>.auto_pwr_cfg auto_pwr = 7;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg getAutoPwr() {
      return autoPwr_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg.getDefaultInstance() : autoPwr_;
    }
    /**
     * <code>.auto_pwr_cfg auto_pwr = 7;</code>
     */
    private void setAutoPwr(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg value) {
      value.getClass();
  autoPwr_ = value;
      
      }
    /**
     * <code>.auto_pwr_cfg auto_pwr = 7;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAutoPwr(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg value) {
      value.getClass();
  if (autoPwr_ != null &&
          autoPwr_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg.getDefaultInstance()) {
        autoPwr_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg.newBuilder(autoPwr_).mergeFrom(value).buildPartial();
      } else {
        autoPwr_ = value;
      }
      
    }
    /**
     * <code>.auto_pwr_cfg auto_pwr = 7;</code>
     */
    private void clearAutoPwr() {  autoPwr_ = null;
      
    }

    public static final int AUTO_LOW_FIELD_NUMBER = 8;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg autoLow_;
    /**
     * <code>.auto_low_cfg auto_low = 8;</code>
     */
    @java.lang.Override
    public boolean hasAutoLow() {
      return autoLow_ != null;
    }
    /**
     * <code>.auto_low_cfg auto_low = 8;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg getAutoLow() {
      return autoLow_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg.getDefaultInstance() : autoLow_;
    }
    /**
     * <code>.auto_low_cfg auto_low = 8;</code>
     */
    private void setAutoLow(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg value) {
      value.getClass();
  autoLow_ = value;
      
      }
    /**
     * <code>.auto_low_cfg auto_low = 8;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAutoLow(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg value) {
      value.getClass();
  if (autoLow_ != null &&
          autoLow_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg.getDefaultInstance()) {
        autoLow_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg.newBuilder(autoLow_).mergeFrom(value).buildPartial();
      } else {
        autoLow_ = value;
      }
      
    }
    /**
     * <code>.auto_low_cfg auto_low = 8;</code>
     */
    private void clearAutoLow() {  autoLow_ = null;
      
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_message parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_message prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

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


      /**
       * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
       * @return The enum numeric value on the wire for autoLight.
       */
      @java.lang.Override
      public int getAutoLightValue() {
        return instance.getAutoLightValue();
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
       * @param value The autoLight to set.
       * @return This builder for chaining.
       */
      public Builder setAutoLightValue(int value) {
        copyOnWrite();
        instance.setAutoLightValue(value);
        return this;
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
       * @return The autoLight.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE getAutoLight() {
        return instance.getAutoLight();
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
       * @param value The enum numeric value on the wire for autoLight to set.
       * @return This builder for chaining.
       */
      public Builder setAutoLight(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE value) {
        copyOnWrite();
        instance.setAutoLight(value);
        return this;
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_light = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAutoLight() {
        copyOnWrite();
        instance.clearAutoLight();
        return this;
      }

      /**
       * <code>bool brake_swtich = 2;</code>
       * @return The brakeSwtich.
       */
      @java.lang.Override
      public boolean getBrakeSwtich() {
        return instance.getBrakeSwtich();
      }
      /**
       * <code>bool brake_swtich = 2;</code>
       * @param value The brakeSwtich to set.
       * @return This builder for chaining.
       */
      public Builder setBrakeSwtich(boolean value) {
        copyOnWrite();
        instance.setBrakeSwtich(value);
        return this;
      }
      /**
       * <code>bool brake_swtich = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearBrakeSwtich() {
        copyOnWrite();
        instance.clearBrakeSwtich();
        return this;
      }

      /**
       * <code>bool team_ride = 3;</code>
       * @return The teamRide.
       */
      @java.lang.Override
      public boolean getTeamRide() {
        return instance.getTeamRide();
      }
      /**
       * <code>bool team_ride = 3;</code>
       * @param value The teamRide to set.
       * @return This builder for chaining.
       */
      public Builder setTeamRide(boolean value) {
        copyOnWrite();
        instance.setTeamRide(value);
        return this;
      }
      /**
       * <code>bool team_ride = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearTeamRide() {
        copyOnWrite();
        instance.clearTeamRide();
        return this;
      }

      /**
       * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
       * @return The enum numeric value on the wire for autoSleep.
       */
      @java.lang.Override
      public int getAutoSleepValue() {
        return instance.getAutoSleepValue();
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
       * @param value The autoSleep to set.
       * @return This builder for chaining.
       */
      public Builder setAutoSleepValue(int value) {
        copyOnWrite();
        instance.setAutoSleepValue(value);
        return this;
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
       * @return The autoSleep.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE getAutoSleep() {
        return instance.getAutoSleep();
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
       * @param value The enum numeric value on the wire for autoSleep to set.
       * @return This builder for chaining.
       */
      public Builder setAutoSleep(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.AUTO_CONFIG_TYPE value) {
        copyOnWrite();
        instance.setAutoSleep(value);
        return this;
      }
      /**
       * <code>.AUTO_CONFIG_TYPE auto_sleep = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearAutoSleep() {
        copyOnWrite();
        instance.clearAutoSleep();
        return this;
      }

      /**
       * <code>int32 sleep_cnt = 5;</code>
       * @return The sleepCnt.
       */
      @java.lang.Override
      public int getSleepCnt() {
        return instance.getSleepCnt();
      }
      /**
       * <code>int32 sleep_cnt = 5;</code>
       * @param value The sleepCnt to set.
       * @return This builder for chaining.
       */
      public Builder setSleepCnt(int value) {
        copyOnWrite();
        instance.setSleepCnt(value);
        return this;
      }
      /**
       * <code>int32 sleep_cnt = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearSleepCnt() {
        copyOnWrite();
        instance.clearSleepCnt();
        return this;
      }

      /**
       * <code>bool sync_off = 6;</code>
       * @return The syncOff.
       */
      @java.lang.Override
      public boolean getSyncOff() {
        return instance.getSyncOff();
      }
      /**
       * <code>bool sync_off = 6;</code>
       * @param value The syncOff to set.
       * @return This builder for chaining.
       */
      public Builder setSyncOff(boolean value) {
        copyOnWrite();
        instance.setSyncOff(value);
        return this;
      }
      /**
       * <code>bool sync_off = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearSyncOff() {
        copyOnWrite();
        instance.clearSyncOff();
        return this;
      }

      /**
       * <code>.auto_pwr_cfg auto_pwr = 7;</code>
       */
      @java.lang.Override
      public boolean hasAutoPwr() {
        return instance.hasAutoPwr();
      }
      /**
       * <code>.auto_pwr_cfg auto_pwr = 7;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg getAutoPwr() {
        return instance.getAutoPwr();
      }
      /**
       * <code>.auto_pwr_cfg auto_pwr = 7;</code>
       */
      public Builder setAutoPwr(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg value) {
        copyOnWrite();
        instance.setAutoPwr(value);
        return this;
        }
      /**
       * <code>.auto_pwr_cfg auto_pwr = 7;</code>
       */
      public Builder setAutoPwr(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg.Builder builderForValue) {
        copyOnWrite();
        instance.setAutoPwr(builderForValue.build());
        return this;
      }
      /**
       * <code>.auto_pwr_cfg auto_pwr = 7;</code>
       */
      public Builder mergeAutoPwr(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_pwr_cfg value) {
        copyOnWrite();
        instance.mergeAutoPwr(value);
        return this;
      }
      /**
       * <code>.auto_pwr_cfg auto_pwr = 7;</code>
       */
      public Builder clearAutoPwr() {  copyOnWrite();
        instance.clearAutoPwr();
        return this;
      }

      /**
       * <code>.auto_low_cfg auto_low = 8;</code>
       */
      @java.lang.Override
      public boolean hasAutoLow() {
        return instance.hasAutoLow();
      }
      /**
       * <code>.auto_low_cfg auto_low = 8;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg getAutoLow() {
        return instance.getAutoLow();
      }
      /**
       * <code>.auto_low_cfg auto_low = 8;</code>
       */
      public Builder setAutoLow(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg value) {
        copyOnWrite();
        instance.setAutoLow(value);
        return this;
        }
      /**
       * <code>.auto_low_cfg auto_low = 8;</code>
       */
      public Builder setAutoLow(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg.Builder builderForValue) {
        copyOnWrite();
        instance.setAutoLow(builderForValue.build());
        return this;
      }
      /**
       * <code>.auto_low_cfg auto_low = 8;</code>
       */
      public Builder mergeAutoLow(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.auto_low_cfg value) {
        copyOnWrite();
        instance.mergeAutoLow(value);
        return this;
      }
      /**
       * <code>.auto_low_cfg auto_low = 8;</code>
       */
      public Builder clearAutoLow() {  copyOnWrite();
        instance.clearAutoLow();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:peripheral_auto_config_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.PeripheralLight.peripheral_auto_config_message();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "autoLight_",
              "brakeSwtich_",
              "teamRide_",
              "autoSleep_",
              "sleepCnt_",
              "syncOff_",
              "autoPwr_",
              "autoLow_",
            };
            java.lang.String info =
                "\u0000\b\u0000\u0000\u0001\b\b\u0000\u0000\u0000\u0001\f\u0002\u0007\u0003\u0007" +
                "\u0004\f\u0005\u0004\u0006\u0007\u0007\t\b\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.PeripheralLight.peripheral_auto_config_message> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_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_auto_config_message)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message DEFAULT_INSTANCE;
    static {
      peripheral_auto_config_message defaultInstance = new peripheral_auto_config_message();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_auto_config_message.class, defaultInstance);
    }

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

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

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

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

    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
     * @return The enum numeric value on the wire for mode.
     */
    int getModeValue();
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
     * @return The mode.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE getMode();

    /**
     * <code>int32 m_lightness = 2;</code>
     * @return The mLightness.
     */
    int getMLightness();

    /**
     * <code>int32 p_lightness = 3;</code>
     * @return The pLightness.
     */
    int getPLightness();

    /**
     * <code>int32 cycle = 4;</code>
     * @return The cycle.
     */
    int getCycle();

    /**
     * <code>int32 ratio = 5;</code>
     * @return The ratio.
     */
    int getRatio();
  }
  /**
   * Protobuf type {@code custome_mode_config}
   */
  public  static final class custome_mode_config extends
      com.google.protobuf.GeneratedMessageLite<
          custome_mode_config, custome_mode_config.Builder> implements
      // @@protoc_insertion_point(message_implements:custome_mode_config)
      custome_mode_configOrBuilder {
    private custome_mode_config() {
    }
    public static final int MODE_FIELD_NUMBER = 1;
    private int mode_;
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
     * @return The enum numeric value on the wire for mode.
     */
    @java.lang.Override
    public int getModeValue() {
      return mode_;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
     * @return The mode.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE getMode() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE.forNumber(mode_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
     * @param value The enum numeric value on the wire for mode to set.
     */
    private void setModeValue(int value) {
        mode_ = value;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
     * @param value The mode to set.
     */
    private void setMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE value) {
      mode_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
     */
    private void clearMode() {
      
      mode_ = 0;
    }

    public static final int M_LIGHTNESS_FIELD_NUMBER = 2;
    private int mLightness_;
    /**
     * <code>int32 m_lightness = 2;</code>
     * @return The mLightness.
     */
    @java.lang.Override
    public int getMLightness() {
      return mLightness_;
    }
    /**
     * <code>int32 m_lightness = 2;</code>
     * @param value The mLightness to set.
     */
    private void setMLightness(int value) {
      
      mLightness_ = value;
    }
    /**
     * <code>int32 m_lightness = 2;</code>
     */
    private void clearMLightness() {
      
      mLightness_ = 0;
    }

    public static final int P_LIGHTNESS_FIELD_NUMBER = 3;
    private int pLightness_;
    /**
     * <code>int32 p_lightness = 3;</code>
     * @return The pLightness.
     */
    @java.lang.Override
    public int getPLightness() {
      return pLightness_;
    }
    /**
     * <code>int32 p_lightness = 3;</code>
     * @param value The pLightness to set.
     */
    private void setPLightness(int value) {
      
      pLightness_ = value;
    }
    /**
     * <code>int32 p_lightness = 3;</code>
     */
    private void clearPLightness() {
      
      pLightness_ = 0;
    }

    public static final int CYCLE_FIELD_NUMBER = 4;
    private int cycle_;
    /**
     * <code>int32 cycle = 4;</code>
     * @return The cycle.
     */
    @java.lang.Override
    public int getCycle() {
      return cycle_;
    }
    /**
     * <code>int32 cycle = 4;</code>
     * @param value The cycle to set.
     */
    private void setCycle(int value) {
      
      cycle_ = value;
    }
    /**
     * <code>int32 cycle = 4;</code>
     */
    private void clearCycle() {
      
      cycle_ = 0;
    }

    public static final int RATIO_FIELD_NUMBER = 5;
    private int ratio_;
    /**
     * <code>int32 ratio = 5;</code>
     * @return The ratio.
     */
    @java.lang.Override
    public int getRatio() {
      return ratio_;
    }
    /**
     * <code>int32 ratio = 5;</code>
     * @param value The ratio to set.
     */
    private void setRatio(int value) {
      
      ratio_ = value;
    }
    /**
     * <code>int32 ratio = 5;</code>
     */
    private void clearRatio() {
      
      ratio_ = 0;
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config 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.PeripheralLight.custome_mode_config prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

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


      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
       * @return The enum numeric value on the wire for mode.
       */
      @java.lang.Override
      public int getModeValue() {
        return instance.getModeValue();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</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_LIGHT_CUSTOME_MODE mode = 1;</code>
       * @return The mode.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE getMode() {
        return instance.getMode();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</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.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE value) {
        copyOnWrite();
        instance.setMode(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE mode = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearMode() {
        copyOnWrite();
        instance.clearMode();
        return this;
      }

      /**
       * <code>int32 m_lightness = 2;</code>
       * @return The mLightness.
       */
      @java.lang.Override
      public int getMLightness() {
        return instance.getMLightness();
      }
      /**
       * <code>int32 m_lightness = 2;</code>
       * @param value The mLightness to set.
       * @return This builder for chaining.
       */
      public Builder setMLightness(int value) {
        copyOnWrite();
        instance.setMLightness(value);
        return this;
      }
      /**
       * <code>int32 m_lightness = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMLightness() {
        copyOnWrite();
        instance.clearMLightness();
        return this;
      }

      /**
       * <code>int32 p_lightness = 3;</code>
       * @return The pLightness.
       */
      @java.lang.Override
      public int getPLightness() {
        return instance.getPLightness();
      }
      /**
       * <code>int32 p_lightness = 3;</code>
       * @param value The pLightness to set.
       * @return This builder for chaining.
       */
      public Builder setPLightness(int value) {
        copyOnWrite();
        instance.setPLightness(value);
        return this;
      }
      /**
       * <code>int32 p_lightness = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearPLightness() {
        copyOnWrite();
        instance.clearPLightness();
        return this;
      }

      /**
       * <code>int32 cycle = 4;</code>
       * @return The cycle.
       */
      @java.lang.Override
      public int getCycle() {
        return instance.getCycle();
      }
      /**
       * <code>int32 cycle = 4;</code>
       * @param value The cycle to set.
       * @return This builder for chaining.
       */
      public Builder setCycle(int value) {
        copyOnWrite();
        instance.setCycle(value);
        return this;
      }
      /**
       * <code>int32 cycle = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearCycle() {
        copyOnWrite();
        instance.clearCycle();
        return this;
      }

      /**
       * <code>int32 ratio = 5;</code>
       * @return The ratio.
       */
      @java.lang.Override
      public int getRatio() {
        return instance.getRatio();
      }
      /**
       * <code>int32 ratio = 5;</code>
       * @param value The ratio to set.
       * @return This builder for chaining.
       */
      public Builder setRatio(int value) {
        copyOnWrite();
        instance.setRatio(value);
        return this;
      }
      /**
       * <code>int32 ratio = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearRatio() {
        copyOnWrite();
        instance.clearRatio();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:custome_mode_config)
    }
    @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.PeripheralLight.custome_mode_config();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "mode_",
              "mLightness_",
              "pLightness_",
              "cycle_",
              "ratio_",
            };
            java.lang.String info =
                "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\f\u0002\u0004" +
                "\u0003\u0004\u0004\u0004\u0005\u0004";
            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.PeripheralLight.custome_mode_config> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config>(
                        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:custome_mode_config)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config DEFAULT_INSTANCE;
    static {
      custome_mode_config defaultInstance = new custome_mode_config();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        custome_mode_config.class, defaultInstance);
    }

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

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

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

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

    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @return A list containing the lightModesSupport.
     */
    java.util.List<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE> getLightModesSupportList();
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @return The count of lightModesSupport.
     */
    int getLightModesSupportCount();
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param index The index of the element to return.
     * @return The lightModesSupport at the given index.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE getLightModesSupport(int index);
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @return A list containing the enum numeric values on the wire for lightModesSupport.
     */
    java.util.List<java.lang.Integer>
    getLightModesSupportValueList();
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of lightModesSupport at the given index.
     */
    int getLightModesSupportValue(int index);

    /**
     * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
     * @return The enum numeric value on the wire for curMode.
     */
    int getCurModeValue();
    /**
     * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
     * @return The curMode.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE getCurMode();

    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
     * @return The enum numeric value on the wire for cusMode.
     */
    int getCusModeValue();
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
     * @return The cusMode.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE getCusMode();

    /**
     * <code>.custome_mode_config cus_config = 4;</code>
     * @return Whether the cusConfig field is set.
     */
    boolean hasCusConfig();
    /**
     * <code>.custome_mode_config cus_config = 4;</code>
     * @return The cusConfig.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config getCusConfig();

    /**
     * <code>.peripheral_auto_config_message auto_config = 5;</code>
     * @return Whether the autoConfig field is set.
     */
    boolean hasAutoConfig();
    /**
     * <code>.peripheral_auto_config_message auto_config = 5;</code>
     * @return The autoConfig.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message getAutoConfig();

    /**
     * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
     * @return The enum numeric value on the wire for sleepFlag.
     */
    int getSleepFlagValue();
    /**
     * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
     * @return The sleepFlag.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getSleepFlag();

    /**
     * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
     * @return The enum numeric value on the wire for autolightFlag.
     */
    int getAutolightFlagValue();
    /**
     * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
     * @return The autolightFlag.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getAutolightFlag();

    /**
     * <code>int32 remain_time = 8;</code>
     * @return The remainTime.
     */
    int getRemainTime();

    /**
     * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
     * @return The enum numeric value on the wire for offFlag.
     */
    int getOffFlagValue();
    /**
     * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
     * @return The offFlag.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getOffFlag();

    /**
     * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
     * @return The enum numeric value on the wire for lightType.
     */
    int getLightTypeValue();
    /**
     * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
     * @return The lightType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE getLightType();

    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @return A list containing the lightCfgSup.
     */
    java.util.List<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP> getLightCfgSupList();
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @return The count of lightCfgSup.
     */
    int getLightCfgSupCount();
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param index The index of the element to return.
     * @return The lightCfgSup at the given index.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP getLightCfgSup(int index);
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @return A list containing the enum numeric values on the wire for lightCfgSup.
     */
    java.util.List<java.lang.Integer>
    getLightCfgSupValueList();
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of lightCfgSup at the given index.
     */
    int getLightCfgSupValue(int index);
  }
  /**
   * Protobuf type {@code peripheral_light_message}
   */
  public  static final class peripheral_light_message extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_light_message, peripheral_light_message.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_light_message)
      peripheral_light_messageOrBuilder {
    private peripheral_light_message() {
      lightModesSupport_ = emptyIntList();
      lightCfgSup_ = emptyIntList();
    }
    public static final int LIGHT_MODES_SUPPORT_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.IntList lightModesSupport_;
    private static final com.google.protobuf.Internal.ListAdapter.Converter<
        java.lang.Integer, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE> lightModesSupport_converter_ =
            new com.google.protobuf.Internal.ListAdapter.Converter<
                java.lang.Integer, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE>() {
              @java.lang.Override
              public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE convert(java.lang.Integer from) {
                nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE.forNumber(from);
                return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE.UNRECOGNIZED : result;
              }
            };
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @return A list containing the lightModesSupport.
     */
    @java.lang.Override
    public java.util.List<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE> getLightModesSupportList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE>(lightModesSupport_, lightModesSupport_converter_);
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @return The count of lightModesSupport.
     */
    @java.lang.Override
    public int getLightModesSupportCount() {
      return lightModesSupport_.size();
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param index The index of the element to return.
     * @return The lightModesSupport at the given index.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE getLightModesSupport(int index) {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE.forNumber(lightModesSupport_.getInt(index));
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE.UNRECOGNIZED : result;
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @return A list containing the enum numeric values on the wire for lightModesSupport.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer>
    getLightModesSupportValueList() {
      return lightModesSupport_;
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of lightModesSupport at the given index.
     */
    @java.lang.Override
    public int getLightModesSupportValue(int index) {
      return lightModesSupport_.getInt(index);
    }
    private int lightModesSupportMemoizedSerializedSize;
    private void ensureLightModesSupportIsMutable() {
      com.google.protobuf.Internal.IntList tmp = lightModesSupport_;
      if (!tmp.isModifiable()) {
        lightModesSupport_ =
            com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
      }
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param index The index to set the value at.
     * @param value The lightModesSupport to set.
     */
    private void setLightModesSupport(
        int index, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE value) {
      value.getClass();
  ensureLightModesSupportIsMutable();
      lightModesSupport_.setInt(index, value.getNumber());
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param value The lightModesSupport to add.
     */
    private void addLightModesSupport(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE value) {
      value.getClass();
  ensureLightModesSupportIsMutable();
      lightModesSupport_.addInt(value.getNumber());
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param values The lightModesSupport to add.
     */
    private void addAllLightModesSupport(
        java.lang.Iterable<? extends nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE> values) {
      ensureLightModesSupportIsMutable();
      for (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE value : values) {
        lightModesSupport_.addInt(value.getNumber());
      }
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     */
    private void clearLightModesSupport() {
      lightModesSupport_ = emptyIntList();
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param value The enum numeric value on the wire for lightModesSupport to set.
     */
    private void setLightModesSupportValue(
        int index, int value) {
      ensureLightModesSupportIsMutable();
      lightModesSupport_.setInt(index, value);
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param value The enum numeric value on the wire for lightModesSupport to add.
     */
    private void addLightModesSupportValue(int value) {
      ensureLightModesSupportIsMutable();
      lightModesSupport_.addInt(value);
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
     * @param values The enum numeric values on the wire for lightModesSupport to add.
     */
    private void addAllLightModesSupportValue(
        java.lang.Iterable<java.lang.Integer> values) {
      ensureLightModesSupportIsMutable();
      for (int value : values) {
        lightModesSupport_.addInt(value);
      }
    }

    public static final int CUR_MODE_FIELD_NUMBER = 2;
    private int curMode_;
    /**
     * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
     * @return The enum numeric value on the wire for curMode.
     */
    @java.lang.Override
    public int getCurModeValue() {
      return curMode_;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
     * @return The curMode.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE getCurMode() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE.forNumber(curMode_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
     * @param value The enum numeric value on the wire for curMode to set.
     */
    private void setCurModeValue(int value) {
        curMode_ = value;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
     * @param value The curMode to set.
     */
    private void setCurMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE value) {
      curMode_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
     */
    private void clearCurMode() {
      
      curMode_ = 0;
    }

    public static final int CUS_MODE_FIELD_NUMBER = 3;
    private int cusMode_;
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
     * @return The enum numeric value on the wire for cusMode.
     */
    @java.lang.Override
    public int getCusModeValue() {
      return cusMode_;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
     * @return The cusMode.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE getCusMode() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE.forNumber(cusMode_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
     * @param value The enum numeric value on the wire for cusMode to set.
     */
    private void setCusModeValue(int value) {
        cusMode_ = value;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
     * @param value The cusMode to set.
     */
    private void setCusMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE value) {
      cusMode_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
     */
    private void clearCusMode() {
      
      cusMode_ = 0;
    }

    public static final int CUS_CONFIG_FIELD_NUMBER = 4;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config cusConfig_;
    /**
     * <code>.custome_mode_config cus_config = 4;</code>
     */
    @java.lang.Override
    public boolean hasCusConfig() {
      return cusConfig_ != null;
    }
    /**
     * <code>.custome_mode_config cus_config = 4;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config getCusConfig() {
      return cusConfig_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config.getDefaultInstance() : cusConfig_;
    }
    /**
     * <code>.custome_mode_config cus_config = 4;</code>
     */
    private void setCusConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config value) {
      value.getClass();
  cusConfig_ = value;
      
      }
    /**
     * <code>.custome_mode_config cus_config = 4;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeCusConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config value) {
      value.getClass();
  if (cusConfig_ != null &&
          cusConfig_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config.getDefaultInstance()) {
        cusConfig_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config.newBuilder(cusConfig_).mergeFrom(value).buildPartial();
      } else {
        cusConfig_ = value;
      }
      
    }
    /**
     * <code>.custome_mode_config cus_config = 4;</code>
     */
    private void clearCusConfig() {  cusConfig_ = null;
      
    }

    public static final int AUTO_CONFIG_FIELD_NUMBER = 5;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message autoConfig_;
    /**
     * <code>.peripheral_auto_config_message auto_config = 5;</code>
     */
    @java.lang.Override
    public boolean hasAutoConfig() {
      return autoConfig_ != null;
    }
    /**
     * <code>.peripheral_auto_config_message auto_config = 5;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message getAutoConfig() {
      return autoConfig_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message.getDefaultInstance() : autoConfig_;
    }
    /**
     * <code>.peripheral_auto_config_message auto_config = 5;</code>
     */
    private void setAutoConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message value) {
      value.getClass();
  autoConfig_ = value;
      
      }
    /**
     * <code>.peripheral_auto_config_message auto_config = 5;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeAutoConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message value) {
      value.getClass();
  if (autoConfig_ != null &&
          autoConfig_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message.getDefaultInstance()) {
        autoConfig_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message.newBuilder(autoConfig_).mergeFrom(value).buildPartial();
      } else {
        autoConfig_ = value;
      }
      
    }
    /**
     * <code>.peripheral_auto_config_message auto_config = 5;</code>
     */
    private void clearAutoConfig() {  autoConfig_ = null;
      
    }

    public static final int SLEEP_FLAG_FIELD_NUMBER = 6;
    private int sleepFlag_;
    /**
     * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
     * @return The enum numeric value on the wire for sleepFlag.
     */
    @java.lang.Override
    public int getSleepFlagValue() {
      return sleepFlag_;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
     * @return The sleepFlag.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getSleepFlag() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG.forNumber(sleepFlag_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG.UNRECOGNIZED : result;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
     * @param value The enum numeric value on the wire for sleepFlag to set.
     */
    private void setSleepFlagValue(int value) {
        sleepFlag_ = value;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
     * @param value The sleepFlag to set.
     */
    private void setSleepFlag(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG value) {
      sleepFlag_ = value.getNumber();
      
    }
    /**
     * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
     */
    private void clearSleepFlag() {
      
      sleepFlag_ = 0;
    }

    public static final int AUTOLIGHT_FLAG_FIELD_NUMBER = 7;
    private int autolightFlag_;
    /**
     * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
     * @return The enum numeric value on the wire for autolightFlag.
     */
    @java.lang.Override
    public int getAutolightFlagValue() {
      return autolightFlag_;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
     * @return The autolightFlag.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getAutolightFlag() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG.forNumber(autolightFlag_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG.UNRECOGNIZED : result;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
     * @param value The enum numeric value on the wire for autolightFlag to set.
     */
    private void setAutolightFlagValue(int value) {
        autolightFlag_ = value;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
     * @param value The autolightFlag to set.
     */
    private void setAutolightFlag(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG value) {
      autolightFlag_ = value.getNumber();
      
    }
    /**
     * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
     */
    private void clearAutolightFlag() {
      
      autolightFlag_ = 0;
    }

    public static final int REMAIN_TIME_FIELD_NUMBER = 8;
    private int remainTime_;
    /**
     * <code>int32 remain_time = 8;</code>
     * @return The remainTime.
     */
    @java.lang.Override
    public int getRemainTime() {
      return remainTime_;
    }
    /**
     * <code>int32 remain_time = 8;</code>
     * @param value The remainTime to set.
     */
    private void setRemainTime(int value) {
      
      remainTime_ = value;
    }
    /**
     * <code>int32 remain_time = 8;</code>
     */
    private void clearRemainTime() {
      
      remainTime_ = 0;
    }

    public static final int OFF_FLAG_FIELD_NUMBER = 9;
    private int offFlag_;
    /**
     * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
     * @return The enum numeric value on the wire for offFlag.
     */
    @java.lang.Override
    public int getOffFlagValue() {
      return offFlag_;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
     * @return The offFlag.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getOffFlag() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG.forNumber(offFlag_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG.UNRECOGNIZED : result;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
     * @param value The enum numeric value on the wire for offFlag to set.
     */
    private void setOffFlagValue(int value) {
        offFlag_ = value;
    }
    /**
     * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
     * @param value The offFlag to set.
     */
    private void setOffFlag(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG value) {
      offFlag_ = value.getNumber();
      
    }
    /**
     * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
     */
    private void clearOffFlag() {
      
      offFlag_ = 0;
    }

    public static final int LIGHT_TYPE_FIELD_NUMBER = 10;
    private int lightType_;
    /**
     * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
     * @return The enum numeric value on the wire for lightType.
     */
    @java.lang.Override
    public int getLightTypeValue() {
      return lightType_;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
     * @return The lightType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE getLightType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE.forNumber(lightType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
     * @param value The enum numeric value on the wire for lightType to set.
     */
    private void setLightTypeValue(int value) {
        lightType_ = value;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
     * @param value The lightType to set.
     */
    private void setLightType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE value) {
      lightType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
     */
    private void clearLightType() {
      
      lightType_ = 0;
    }

    public static final int LIGHT_CFG_SUP_FIELD_NUMBER = 11;
    private com.google.protobuf.Internal.IntList lightCfgSup_;
    private static final com.google.protobuf.Internal.ListAdapter.Converter<
        java.lang.Integer, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP> lightCfgSup_converter_ =
            new com.google.protobuf.Internal.ListAdapter.Converter<
                java.lang.Integer, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP>() {
              @java.lang.Override
              public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP convert(java.lang.Integer from) {
                nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP.forNumber(from);
                return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP.UNRECOGNIZED : result;
              }
            };
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @return A list containing the lightCfgSup.
     */
    @java.lang.Override
    public java.util.List<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP> getLightCfgSupList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP>(lightCfgSup_, lightCfgSup_converter_);
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @return The count of lightCfgSup.
     */
    @java.lang.Override
    public int getLightCfgSupCount() {
      return lightCfgSup_.size();
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param index The index of the element to return.
     * @return The lightCfgSup at the given index.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP getLightCfgSup(int index) {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP.forNumber(lightCfgSup_.getInt(index));
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP.UNRECOGNIZED : result;
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @return A list containing the enum numeric values on the wire for lightCfgSup.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer>
    getLightCfgSupValueList() {
      return lightCfgSup_;
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of lightCfgSup at the given index.
     */
    @java.lang.Override
    public int getLightCfgSupValue(int index) {
      return lightCfgSup_.getInt(index);
    }
    private int lightCfgSupMemoizedSerializedSize;
    private void ensureLightCfgSupIsMutable() {
      com.google.protobuf.Internal.IntList tmp = lightCfgSup_;
      if (!tmp.isModifiable()) {
        lightCfgSup_ =
            com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
      }
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param index The index to set the value at.
     * @param value The lightCfgSup to set.
     */
    private void setLightCfgSup(
        int index, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP value) {
      value.getClass();
  ensureLightCfgSupIsMutable();
      lightCfgSup_.setInt(index, value.getNumber());
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param value The lightCfgSup to add.
     */
    private void addLightCfgSup(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP value) {
      value.getClass();
  ensureLightCfgSupIsMutable();
      lightCfgSup_.addInt(value.getNumber());
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param values The lightCfgSup to add.
     */
    private void addAllLightCfgSup(
        java.lang.Iterable<? extends nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP> values) {
      ensureLightCfgSupIsMutable();
      for (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP value : values) {
        lightCfgSup_.addInt(value.getNumber());
      }
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     */
    private void clearLightCfgSup() {
      lightCfgSup_ = emptyIntList();
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param value The enum numeric value on the wire for lightCfgSup to set.
     */
    private void setLightCfgSupValue(
        int index, int value) {
      ensureLightCfgSupIsMutable();
      lightCfgSup_.setInt(index, value);
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param value The enum numeric value on the wire for lightCfgSup to add.
     */
    private void addLightCfgSupValue(int value) {
      ensureLightCfgSupIsMutable();
      lightCfgSup_.addInt(value);
    }
    /**
     * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
     * @param values The enum numeric values on the wire for lightCfgSup to add.
     */
    private void addAllLightCfgSupValue(
        java.lang.Iterable<java.lang.Integer> values) {
      ensureLightCfgSupIsMutable();
      for (int value : values) {
        lightCfgSup_.addInt(value);
      }
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_message parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_message prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

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


      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @return A list containing the lightModesSupport.
       */
      @java.lang.Override
      public java.util.List<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE> getLightModesSupportList() {
        return instance.getLightModesSupportList();
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @return The count of lightModesSupport.
       */
      @java.lang.Override
      public int getLightModesSupportCount() {
        return instance.getLightModesSupportCount();
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param index The index of the element to return.
       * @return The lightModesSupport at the given index.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE getLightModesSupport(int index) {
        return instance.getLightModesSupport(index);
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param index The index to set the value at.
       * @param value The lightModesSupport to set.
       * @return This builder for chaining.
       */
      public Builder setLightModesSupport(
          int index, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE value) {
        copyOnWrite();
        instance.setLightModesSupport(index, value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param value The lightModesSupport to add.
       * @return This builder for chaining.
       */
      public Builder addLightModesSupport(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE value) {
        copyOnWrite();
        instance.addLightModesSupport(value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param values The lightModesSupport to add.
       * @return This builder for chaining.
       */
      public Builder addAllLightModesSupport(
          java.lang.Iterable<? extends nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE> values) {
        copyOnWrite();
        instance.addAllLightModesSupport(values);  return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearLightModesSupport() {
        copyOnWrite();
        instance.clearLightModesSupport();
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @return A list containing the enum numeric values on the wire for lightModesSupport.
       */
      @java.lang.Override
      public java.util.List<java.lang.Integer>
      getLightModesSupportValueList() {
        return java.util.Collections.unmodifiableList(
            instance.getLightModesSupportValueList());
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param index The index of the value to return.
       * @return The enum numeric value on the wire of lightModesSupport at the given index.
       */
      @java.lang.Override
      public int getLightModesSupportValue(int index) {
        return instance.getLightModesSupportValue(index);
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param index The index to set the value at.
       * @param value The enum numeric value on the wire for lightModesSupport to set.
       * @return This builder for chaining.
       */
      public Builder setLightModesSupportValue(
          int index, int value) {
        copyOnWrite();
        instance.setLightModesSupportValue(index, value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param value The enum numeric value on the wire for lightModesSupport to add.
       * @return This builder for chaining.
       */
      public Builder addLightModesSupportValue(int value) {
        instance.addLightModesSupportValue(value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_MODE light_modes_support = 1;</code>
       * @param values The enum numeric values on the wire for lightModesSupport to add.
       * @return This builder for chaining.
       */
      public Builder addAllLightModesSupportValue(
          java.lang.Iterable<java.lang.Integer> values) {
        copyOnWrite();
        instance.addAllLightModesSupportValue(values);
        return this;
      }

      /**
       * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
       * @return The enum numeric value on the wire for curMode.
       */
      @java.lang.Override
      public int getCurModeValue() {
        return instance.getCurModeValue();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
       * @param value The curMode to set.
       * @return This builder for chaining.
       */
      public Builder setCurModeValue(int value) {
        copyOnWrite();
        instance.setCurModeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
       * @return The curMode.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE getCurMode() {
        return instance.getCurMode();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
       * @param value The enum numeric value on the wire for curMode to set.
       * @return This builder for chaining.
       */
      public Builder setCurMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_MODE value) {
        copyOnWrite();
        instance.setCurMode(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_MODE cur_mode = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearCurMode() {
        copyOnWrite();
        instance.clearCurMode();
        return this;
      }

      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
       * @return The enum numeric value on the wire for cusMode.
       */
      @java.lang.Override
      public int getCusModeValue() {
        return instance.getCusModeValue();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
       * @param value The cusMode to set.
       * @return This builder for chaining.
       */
      public Builder setCusModeValue(int value) {
        copyOnWrite();
        instance.setCusModeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
       * @return The cusMode.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE getCusMode() {
        return instance.getCusMode();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
       * @param value The enum numeric value on the wire for cusMode to set.
       * @return This builder for chaining.
       */
      public Builder setCusMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CUSTOME_MODE value) {
        copyOnWrite();
        instance.setCusMode(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_CUSTOME_MODE cus_mode = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearCusMode() {
        copyOnWrite();
        instance.clearCusMode();
        return this;
      }

      /**
       * <code>.custome_mode_config cus_config = 4;</code>
       */
      @java.lang.Override
      public boolean hasCusConfig() {
        return instance.hasCusConfig();
      }
      /**
       * <code>.custome_mode_config cus_config = 4;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config getCusConfig() {
        return instance.getCusConfig();
      }
      /**
       * <code>.custome_mode_config cus_config = 4;</code>
       */
      public Builder setCusConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config value) {
        copyOnWrite();
        instance.setCusConfig(value);
        return this;
        }
      /**
       * <code>.custome_mode_config cus_config = 4;</code>
       */
      public Builder setCusConfig(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config.Builder builderForValue) {
        copyOnWrite();
        instance.setCusConfig(builderForValue.build());
        return this;
      }
      /**
       * <code>.custome_mode_config cus_config = 4;</code>
       */
      public Builder mergeCusConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.custome_mode_config value) {
        copyOnWrite();
        instance.mergeCusConfig(value);
        return this;
      }
      /**
       * <code>.custome_mode_config cus_config = 4;</code>
       */
      public Builder clearCusConfig() {  copyOnWrite();
        instance.clearCusConfig();
        return this;
      }

      /**
       * <code>.peripheral_auto_config_message auto_config = 5;</code>
       */
      @java.lang.Override
      public boolean hasAutoConfig() {
        return instance.hasAutoConfig();
      }
      /**
       * <code>.peripheral_auto_config_message auto_config = 5;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message getAutoConfig() {
        return instance.getAutoConfig();
      }
      /**
       * <code>.peripheral_auto_config_message auto_config = 5;</code>
       */
      public Builder setAutoConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message value) {
        copyOnWrite();
        instance.setAutoConfig(value);
        return this;
        }
      /**
       * <code>.peripheral_auto_config_message auto_config = 5;</code>
       */
      public Builder setAutoConfig(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message.Builder builderForValue) {
        copyOnWrite();
        instance.setAutoConfig(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_auto_config_message auto_config = 5;</code>
       */
      public Builder mergeAutoConfig(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_auto_config_message value) {
        copyOnWrite();
        instance.mergeAutoConfig(value);
        return this;
      }
      /**
       * <code>.peripheral_auto_config_message auto_config = 5;</code>
       */
      public Builder clearAutoConfig() {  copyOnWrite();
        instance.clearAutoConfig();
        return this;
      }

      /**
       * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
       * @return The enum numeric value on the wire for sleepFlag.
       */
      @java.lang.Override
      public int getSleepFlagValue() {
        return instance.getSleepFlagValue();
      }
      /**
       * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
       * @param value The sleepFlag to set.
       * @return This builder for chaining.
       */
      public Builder setSleepFlagValue(int value) {
        copyOnWrite();
        instance.setSleepFlagValue(value);
        return this;
      }
      /**
       * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
       * @return The sleepFlag.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getSleepFlag() {
        return instance.getSleepFlag();
      }
      /**
       * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
       * @param value The enum numeric value on the wire for sleepFlag to set.
       * @return This builder for chaining.
       */
      public Builder setSleepFlag(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG value) {
        copyOnWrite();
        instance.setSleepFlag(value);
        return this;
      }
      /**
       * <code>.FOLLOW_MODE_FLAG sleep_flag = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearSleepFlag() {
        copyOnWrite();
        instance.clearSleepFlag();
        return this;
      }

      /**
       * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
       * @return The enum numeric value on the wire for autolightFlag.
       */
      @java.lang.Override
      public int getAutolightFlagValue() {
        return instance.getAutolightFlagValue();
      }
      /**
       * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
       * @param value The autolightFlag to set.
       * @return This builder for chaining.
       */
      public Builder setAutolightFlagValue(int value) {
        copyOnWrite();
        instance.setAutolightFlagValue(value);
        return this;
      }
      /**
       * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
       * @return The autolightFlag.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getAutolightFlag() {
        return instance.getAutolightFlag();
      }
      /**
       * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
       * @param value The enum numeric value on the wire for autolightFlag to set.
       * @return This builder for chaining.
       */
      public Builder setAutolightFlag(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG value) {
        copyOnWrite();
        instance.setAutolightFlag(value);
        return this;
      }
      /**
       * <code>.FOLLOW_MODE_FLAG autolight_flag = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearAutolightFlag() {
        copyOnWrite();
        instance.clearAutolightFlag();
        return this;
      }

      /**
       * <code>int32 remain_time = 8;</code>
       * @return The remainTime.
       */
      @java.lang.Override
      public int getRemainTime() {
        return instance.getRemainTime();
      }
      /**
       * <code>int32 remain_time = 8;</code>
       * @param value The remainTime to set.
       * @return This builder for chaining.
       */
      public Builder setRemainTime(int value) {
        copyOnWrite();
        instance.setRemainTime(value);
        return this;
      }
      /**
       * <code>int32 remain_time = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearRemainTime() {
        copyOnWrite();
        instance.clearRemainTime();
        return this;
      }

      /**
       * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
       * @return The enum numeric value on the wire for offFlag.
       */
      @java.lang.Override
      public int getOffFlagValue() {
        return instance.getOffFlagValue();
      }
      /**
       * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
       * @param value The offFlag to set.
       * @return This builder for chaining.
       */
      public Builder setOffFlagValue(int value) {
        copyOnWrite();
        instance.setOffFlagValue(value);
        return this;
      }
      /**
       * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
       * @return The offFlag.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG getOffFlag() {
        return instance.getOffFlag();
      }
      /**
       * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
       * @param value The enum numeric value on the wire for offFlag to set.
       * @return This builder for chaining.
       */
      public Builder setOffFlag(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.FOLLOW_MODE_FLAG value) {
        copyOnWrite();
        instance.setOffFlag(value);
        return this;
      }
      /**
       * <code>.FOLLOW_MODE_FLAG off_flag = 9;</code>
       * @return This builder for chaining.
       */
      public Builder clearOffFlag() {
        copyOnWrite();
        instance.clearOffFlag();
        return this;
      }

      /**
       * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
       * @return The enum numeric value on the wire for lightType.
       */
      @java.lang.Override
      public int getLightTypeValue() {
        return instance.getLightTypeValue();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
       * @param value The lightType to set.
       * @return This builder for chaining.
       */
      public Builder setLightTypeValue(int value) {
        copyOnWrite();
        instance.setLightTypeValue(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
       * @return The lightType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE getLightType() {
        return instance.getLightType();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
       * @param value The enum numeric value on the wire for lightType to set.
       * @return This builder for chaining.
       */
      public Builder setLightType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_TYPE value) {
        copyOnWrite();
        instance.setLightType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_TYPE light_type = 10;</code>
       * @return This builder for chaining.
       */
      public Builder clearLightType() {
        copyOnWrite();
        instance.clearLightType();
        return this;
      }

      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @return A list containing the lightCfgSup.
       */
      @java.lang.Override
      public java.util.List<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP> getLightCfgSupList() {
        return instance.getLightCfgSupList();
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @return The count of lightCfgSup.
       */
      @java.lang.Override
      public int getLightCfgSupCount() {
        return instance.getLightCfgSupCount();
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param index The index of the element to return.
       * @return The lightCfgSup at the given index.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP getLightCfgSup(int index) {
        return instance.getLightCfgSup(index);
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param index The index to set the value at.
       * @param value The lightCfgSup to set.
       * @return This builder for chaining.
       */
      public Builder setLightCfgSup(
          int index, nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP value) {
        copyOnWrite();
        instance.setLightCfgSup(index, value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param value The lightCfgSup to add.
       * @return This builder for chaining.
       */
      public Builder addLightCfgSup(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP value) {
        copyOnWrite();
        instance.addLightCfgSup(value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param values The lightCfgSup to add.
       * @return This builder for chaining.
       */
      public Builder addAllLightCfgSup(
          java.lang.Iterable<? extends nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_CONFIG_SUP> values) {
        copyOnWrite();
        instance.addAllLightCfgSup(values);  return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearLightCfgSup() {
        copyOnWrite();
        instance.clearLightCfgSup();
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @return A list containing the enum numeric values on the wire for lightCfgSup.
       */
      @java.lang.Override
      public java.util.List<java.lang.Integer>
      getLightCfgSupValueList() {
        return java.util.Collections.unmodifiableList(
            instance.getLightCfgSupValueList());
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param index The index of the value to return.
       * @return The enum numeric value on the wire of lightCfgSup at the given index.
       */
      @java.lang.Override
      public int getLightCfgSupValue(int index) {
        return instance.getLightCfgSupValue(index);
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param index The index to set the value at.
       * @param value The enum numeric value on the wire for lightCfgSup to set.
       * @return This builder for chaining.
       */
      public Builder setLightCfgSupValue(
          int index, int value) {
        copyOnWrite();
        instance.setLightCfgSupValue(index, value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param value The enum numeric value on the wire for lightCfgSup to add.
       * @return This builder for chaining.
       */
      public Builder addLightCfgSupValue(int value) {
        instance.addLightCfgSupValue(value);
        return this;
      }
      /**
       * <code>repeated .PERIPHERAL_LIGHT_CONFIG_SUP light_cfg_sup = 11;</code>
       * @param values The enum numeric values on the wire for lightCfgSup to add.
       * @return This builder for chaining.
       */
      public Builder addAllLightCfgSupValue(
          java.lang.Iterable<java.lang.Integer> values) {
        copyOnWrite();
        instance.addAllLightCfgSupValue(values);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:peripheral_light_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.PeripheralLight.peripheral_light_message();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "lightModesSupport_",
              "curMode_",
              "cusMode_",
              "cusConfig_",
              "autoConfig_",
              "sleepFlag_",
              "autolightFlag_",
              "remainTime_",
              "offFlag_",
              "lightType_",
              "lightCfgSup_",
            };
            java.lang.String info =
                "\u0000\u000b\u0000\u0000\u0001\u000b\u000b\u0000\u0002\u0000\u0001,\u0002\f\u0003" +
                "\f\u0004\t\u0005\t\u0006\f\u0007\f\b\u0004\t\f\n\f\u000b,";
            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.PeripheralLight.peripheral_light_message> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_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_light_message)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message DEFAULT_INSTANCE;
    static {
      peripheral_light_message defaultInstance = new peripheral_light_message();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_light_message.class, defaultInstance);
    }

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

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

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

  public interface peripheral_light_formatOrBuilder extends
      // @@protoc_insertion_point(interface_extends:peripheral_light_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_LIGHT_SERVICE sub_service_type = 3;</code>
     * @return The enum numeric value on the wire for subServiceType.
     */
    int getSubServiceTypeValue();
    /**
     * <code>.PERIPHERAL_LIGHT_SERVICE sub_service_type = 3;</code>
     * @return The subServiceType.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_SERVICE getSubServiceType();

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

    /**
     * <code>.peripheral_light_message message = 5;</code>
     * @return Whether the message field is set.
     */
    boolean hasMessage();
    /**
     * <code>.peripheral_light_message message = 5;</code>
     * @return The message.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message getMessage();
  }
  /**
   * Protobuf type {@code peripheral_light_format}
   */
  public  static final class peripheral_light_format extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_light_format, peripheral_light_format.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_light_format)
      peripheral_light_formatOrBuilder {
    private peripheral_light_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_LIGHT_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_LIGHT_SERVICE sub_service_type = 3;</code>
     * @return The subServiceType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_SERVICE getSubServiceType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_SERVICE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_SERVICE.forNumber(subServiceType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_SERVICE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_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_LIGHT_SERVICE sub_service_type = 3;</code>
     * @param value The subServiceType to set.
     */
    private void setSubServiceType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_SERVICE value) {
      subServiceType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_LIGHT_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_LIGHT_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_LIGHT_OPERATE sub_operate_type = 4;</code>
     * @return The subOperateType.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_OPERATE getSubOperateType() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_OPERATE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_OPERATE.forNumber(subOperateType_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_OPERATE.UNRECOGNIZED : result;
    }
    /**
     * <code>.PERIPHERAL_LIGHT_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_LIGHT_OPERATE sub_operate_type = 4;</code>
     * @param value The subOperateType to set.
     */
    private void setSubOperateType(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_OPERATE value) {
      subOperateType_ = value.getNumber();
      
    }
    /**
     * <code>.PERIPHERAL_LIGHT_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.PeripheralLight.peripheral_light_message message_;
    /**
     * <code>.peripheral_light_message message = 5;</code>
     */
    @java.lang.Override
    public boolean hasMessage() {
      return message_ != null;
    }
    /**
     * <code>.peripheral_light_message message = 5;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message getMessage() {
      return message_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message.getDefaultInstance() : message_;
    }
    /**
     * <code>.peripheral_light_message message = 5;</code>
     */
    private void setMessage(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message value) {
      value.getClass();
  message_ = value;
      
      }
    /**
     * <code>.peripheral_light_message message = 5;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeMessage(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message value) {
      value.getClass();
  if (message_ != null &&
          message_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message.getDefaultInstance()) {
        message_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_message.newBuilder(message_).mergeFrom(value).buildPartial();
      } else {
        message_ = value;
      }
      
    }
    /**
     * <code>.peripheral_light_message message = 5;</code>
     */
    private void clearMessage() {  message_ = null;
      
    }

    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_format parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }
    public static nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_format prototype) {
      return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code peripheral_light_format}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_format, Builder> implements
        // @@protoc_insertion_point(builder_implements:peripheral_light_format)
        nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_formatOrBuilder {
      // Construct using nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_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_LIGHT_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_LIGHT_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_LIGHT_SERVICE sub_service_type = 3;</code>
       * @return The subServiceType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_SERVICE getSubServiceType() {
        return instance.getSubServiceType();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_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.PeripheralLight.PERIPHERAL_LIGHT_SERVICE value) {
        copyOnWrite();
        instance.setSubServiceType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_SERVICE sub_service_type = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearSubServiceType() {
        copyOnWrite();
        instance.clearSubServiceType();
        return this;
      }

      /**
       * <code>.PERIPHERAL_LIGHT_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_LIGHT_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_LIGHT_OPERATE sub_operate_type = 4;</code>
       * @return The subOperateType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.PERIPHERAL_LIGHT_OPERATE getSubOperateType() {
        return instance.getSubOperateType();
      }
      /**
       * <code>.PERIPHERAL_LIGHT_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.PeripheralLight.PERIPHERAL_LIGHT_OPERATE value) {
        copyOnWrite();
        instance.setSubOperateType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_LIGHT_OPERATE sub_operate_type = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearSubOperateType() {
        copyOnWrite();
        instance.clearSubOperateType();
        return this;
      }

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

      // @@protoc_insertion_point(builder_scope:peripheral_light_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.PeripheralLight.peripheral_light_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.PeripheralLight.peripheral_light_format> parser = PARSER;
          if (parser == null) {
            synchronized (nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_format.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser<nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_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_light_format)
    private static final nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralLight.peripheral_light_format DEFAULT_INSTANCE;
    static {
      peripheral_light_format defaultInstance = new peripheral_light_format();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        peripheral_light_format.class, defaultInstance);
    }

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

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}
