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

package nodomain.freeyourgadget.gadgetbridge.proto.igpsport;

public final class PeripheralConfig {
  private PeripheralConfig() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * Protobuf enum {@code PERIPHERAL_CONFIG_SERVICE}
   */
  public enum PERIPHERAL_CONFIG_SERVICE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PCS_UNSPECIFIED = 0;</code>
     */
    PCS_UNSPECIFIED(0),
    /**
     * <code>PCS_SHUTDOWN = 4;</code>
     */
    PCS_SHUTDOWN(4),
    /**
     * <code>PCS_SLEEP = 5;</code>
     */
    PCS_SLEEP(5),
    /**
     * <code>PCS_LIGHT_MODE = 6;</code>
     */
    PCS_LIGHT_MODE(6),
    /**
     * <code>PCS_DATA_BROADCAST = 7;</code>
     */
    PCS_DATA_BROADCAST(7),
    /**
     * <code>PCS_ALL_CONFIG = 21;</code>
     */
    PCS_ALL_CONFIG(21),
    /**
     * <code>PCS_ALL_CONFIG_RESET = 22;</code>
     */
    PCS_ALL_CONFIG_RESET(22),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PCS_UNSPECIFIED = 0;</code>
     */
    public static final int PCS_UNSPECIFIED_VALUE = 0;
    /**
     * <code>PCS_SHUTDOWN = 4;</code>
     */
    public static final int PCS_SHUTDOWN_VALUE = 4;
    /**
     * <code>PCS_SLEEP = 5;</code>
     */
    public static final int PCS_SLEEP_VALUE = 5;
    /**
     * <code>PCS_LIGHT_MODE = 6;</code>
     */
    public static final int PCS_LIGHT_MODE_VALUE = 6;
    /**
     * <code>PCS_DATA_BROADCAST = 7;</code>
     */
    public static final int PCS_DATA_BROADCAST_VALUE = 7;
    /**
     * <code>PCS_ALL_CONFIG = 21;</code>
     */
    public static final int PCS_ALL_CONFIG_VALUE = 21;
    /**
     * <code>PCS_ALL_CONFIG_RESET = 22;</code>
     */
    public static final int PCS_ALL_CONFIG_RESET_VALUE = 22;


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

    public static PERIPHERAL_CONFIG_SERVICE forNumber(int value) {
      switch (value) {
        case 0: return PCS_UNSPECIFIED;
        case 4: return PCS_SHUTDOWN;
        case 5: return PCS_SLEEP;
        case 6: return PCS_LIGHT_MODE;
        case 7: return PCS_DATA_BROADCAST;
        case 21: return PCS_ALL_CONFIG;
        case 22: return PCS_ALL_CONFIG_RESET;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_CONFIG_SERVICE)
  }

  /**
   * Protobuf enum {@code enum_PERIPHERAL_CONFIG_LIGHT_MODE}
   */
  public enum enum_PERIPHERAL_CONFIG_LIGHT_MODE
      implements com.google.protobuf.Internal.EnumLite {
    /**
     * <code>PCLM_UNSPECIFIED = 0;</code>
     */
    PCLM_UNSPECIFIED(0),
    /**
     * <code>DEVICE_SCENE_OFF = 4;</code>
     */
    DEVICE_SCENE_OFF(4),
    /**
     * <code>DEVICE_SCENE_DEFAULT = 5;</code>
     */
    DEVICE_SCENE_DEFAULT(5),
    /**
     * <code>DEVICE_SCENE_TEAM = 6;</code>
     */
    DEVICE_SCENE_TEAM(6),
    /**
     * <code>DEVICE_SCENE_GRADIENT = 7;</code>
     */
    DEVICE_SCENE_GRADIENT(7),
    /**
     * <code>DEVICE_SCENE_NIGHT = 8;</code>
     */
    DEVICE_SCENE_NIGHT(8),
    /**
     * <code>DEVICE_SCENE_DAYLIGHT = 9;</code>
     */
    DEVICE_SCENE_DAYLIGHT(9),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>PCLM_UNSPECIFIED = 0;</code>
     */
    public static final int PCLM_UNSPECIFIED_VALUE = 0;
    /**
     * <code>DEVICE_SCENE_OFF = 4;</code>
     */
    public static final int DEVICE_SCENE_OFF_VALUE = 4;
    /**
     * <code>DEVICE_SCENE_DEFAULT = 5;</code>
     */
    public static final int DEVICE_SCENE_DEFAULT_VALUE = 5;
    /**
     * <code>DEVICE_SCENE_TEAM = 6;</code>
     */
    public static final int DEVICE_SCENE_TEAM_VALUE = 6;
    /**
     * <code>DEVICE_SCENE_GRADIENT = 7;</code>
     */
    public static final int DEVICE_SCENE_GRADIENT_VALUE = 7;
    /**
     * <code>DEVICE_SCENE_NIGHT = 8;</code>
     */
    public static final int DEVICE_SCENE_NIGHT_VALUE = 8;
    /**
     * <code>DEVICE_SCENE_DAYLIGHT = 9;</code>
     */
    public static final int DEVICE_SCENE_DAYLIGHT_VALUE = 9;


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

    public static enum_PERIPHERAL_CONFIG_LIGHT_MODE forNumber(int value) {
      switch (value) {
        case 0: return PCLM_UNSPECIFIED;
        case 4: return DEVICE_SCENE_OFF;
        case 5: return DEVICE_SCENE_DEFAULT;
        case 6: return DEVICE_SCENE_TEAM;
        case 7: return DEVICE_SCENE_GRADIENT;
        case 8: return DEVICE_SCENE_NIGHT;
        case 9: return DEVICE_SCENE_DAYLIGHT;
        default: return null;
      }
    }

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:enum_PERIPHERAL_CONFIG_LIGHT_MODE)
  }

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

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

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

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

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:PERIPHERAL_CONFIG_OPERATE)
  }

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

    /**
     * <code>bool shutdown_switch = 1;</code>
     * @return The shutdownSwitch.
     */
    boolean getShutdownSwitch();

    /**
     * <code>uint32 countdown = 2;</code>
     * @return The countdown.
     */
    int getCountdown();
  }
  /**
   * Protobuf type {@code peripheral_config_data_shutdown}
   */
  public  static final class peripheral_config_data_shutdown extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_config_data_shutdown, peripheral_config_data_shutdown.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_config_data_shutdown)
      peripheral_config_data_shutdownOrBuilder {
    private peripheral_config_data_shutdown() {
    }
    public static final int SHUTDOWN_SWITCH_FIELD_NUMBER = 1;
    private boolean shutdownSwitch_;
    /**
     * <code>bool shutdown_switch = 1;</code>
     * @return The shutdownSwitch.
     */
    @java.lang.Override
    public boolean getShutdownSwitch() {
      return shutdownSwitch_;
    }
    /**
     * <code>bool shutdown_switch = 1;</code>
     * @param value The shutdownSwitch to set.
     */
    private void setShutdownSwitch(boolean value) {
      
      shutdownSwitch_ = value;
    }
    /**
     * <code>bool shutdown_switch = 1;</code>
     */
    private void clearShutdownSwitch() {
      
      shutdownSwitch_ = false;
    }

    public static final int COUNTDOWN_FIELD_NUMBER = 2;
    private int countdown_;
    /**
     * <code>uint32 countdown = 2;</code>
     * @return The countdown.
     */
    @java.lang.Override
    public int getCountdown() {
      return countdown_;
    }
    /**
     * <code>uint32 countdown = 2;</code>
     * @param value The countdown to set.
     */
    private void setCountdown(int value) {
      
      countdown_ = value;
    }
    /**
     * <code>uint32 countdown = 2;</code>
     */
    private void clearCountdown() {
      
      countdown_ = 0;
    }

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

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


      /**
       * <code>bool shutdown_switch = 1;</code>
       * @return The shutdownSwitch.
       */
      @java.lang.Override
      public boolean getShutdownSwitch() {
        return instance.getShutdownSwitch();
      }
      /**
       * <code>bool shutdown_switch = 1;</code>
       * @param value The shutdownSwitch to set.
       * @return This builder for chaining.
       */
      public Builder setShutdownSwitch(boolean value) {
        copyOnWrite();
        instance.setShutdownSwitch(value);
        return this;
      }
      /**
       * <code>bool shutdown_switch = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearShutdownSwitch() {
        copyOnWrite();
        instance.clearShutdownSwitch();
        return this;
      }

      /**
       * <code>uint32 countdown = 2;</code>
       * @return The countdown.
       */
      @java.lang.Override
      public int getCountdown() {
        return instance.getCountdown();
      }
      /**
       * <code>uint32 countdown = 2;</code>
       * @param value The countdown to set.
       * @return This builder for chaining.
       */
      public Builder setCountdown(int value) {
        copyOnWrite();
        instance.setCountdown(value);
        return this;
      }
      /**
       * <code>uint32 countdown = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearCountdown() {
        copyOnWrite();
        instance.clearCountdown();
        return this;
      }

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

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

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

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

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

    /**
     * <code>bool sleep_switch = 1;</code>
     * @return The sleepSwitch.
     */
    boolean getSleepSwitch();

    /**
     * <code>uint32 countdown = 2;</code>
     * @return The countdown.
     */
    int getCountdown();
  }
  /**
   * Protobuf type {@code peripheral_config_data_sleep}
   */
  public  static final class peripheral_config_data_sleep extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_config_data_sleep, peripheral_config_data_sleep.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_config_data_sleep)
      peripheral_config_data_sleepOrBuilder {
    private peripheral_config_data_sleep() {
    }
    public static final int SLEEP_SWITCH_FIELD_NUMBER = 1;
    private boolean sleepSwitch_;
    /**
     * <code>bool sleep_switch = 1;</code>
     * @return The sleepSwitch.
     */
    @java.lang.Override
    public boolean getSleepSwitch() {
      return sleepSwitch_;
    }
    /**
     * <code>bool sleep_switch = 1;</code>
     * @param value The sleepSwitch to set.
     */
    private void setSleepSwitch(boolean value) {
      
      sleepSwitch_ = value;
    }
    /**
     * <code>bool sleep_switch = 1;</code>
     */
    private void clearSleepSwitch() {
      
      sleepSwitch_ = false;
    }

    public static final int COUNTDOWN_FIELD_NUMBER = 2;
    private int countdown_;
    /**
     * <code>uint32 countdown = 2;</code>
     * @return The countdown.
     */
    @java.lang.Override
    public int getCountdown() {
      return countdown_;
    }
    /**
     * <code>uint32 countdown = 2;</code>
     * @param value The countdown to set.
     */
    private void setCountdown(int value) {
      
      countdown_ = value;
    }
    /**
     * <code>uint32 countdown = 2;</code>
     */
    private void clearCountdown() {
      
      countdown_ = 0;
    }

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

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


      /**
       * <code>bool sleep_switch = 1;</code>
       * @return The sleepSwitch.
       */
      @java.lang.Override
      public boolean getSleepSwitch() {
        return instance.getSleepSwitch();
      }
      /**
       * <code>bool sleep_switch = 1;</code>
       * @param value The sleepSwitch to set.
       * @return This builder for chaining.
       */
      public Builder setSleepSwitch(boolean value) {
        copyOnWrite();
        instance.setSleepSwitch(value);
        return this;
      }
      /**
       * <code>bool sleep_switch = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearSleepSwitch() {
        copyOnWrite();
        instance.clearSleepSwitch();
        return this;
      }

      /**
       * <code>uint32 countdown = 2;</code>
       * @return The countdown.
       */
      @java.lang.Override
      public int getCountdown() {
        return instance.getCountdown();
      }
      /**
       * <code>uint32 countdown = 2;</code>
       * @param value The countdown to set.
       * @return This builder for chaining.
       */
      public Builder setCountdown(int value) {
        copyOnWrite();
        instance.setCountdown(value);
        return this;
      }
      /**
       * <code>uint32 countdown = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearCountdown() {
        copyOnWrite();
        instance.clearCountdown();
        return this;
      }

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

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

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

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

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

    /**
     * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
     * @return The enum numeric value on the wire for lightMode.
     */
    int getLightModeValue();
    /**
     * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
     * @return The lightMode.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE getLightMode();
  }
  /**
   * Protobuf type {@code peripheral_config_light_mode}
   */
  public  static final class peripheral_config_light_mode extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_config_light_mode, peripheral_config_light_mode.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_config_light_mode)
      peripheral_config_light_modeOrBuilder {
    private peripheral_config_light_mode() {
    }
    public static final int LIGHT_MODE_FIELD_NUMBER = 1;
    private int lightMode_;
    /**
     * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
     * @return The enum numeric value on the wire for lightMode.
     */
    @java.lang.Override
    public int getLightModeValue() {
      return lightMode_;
    }
    /**
     * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
     * @return The lightMode.
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE getLightMode() {
      nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE result = nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE.forNumber(lightMode_);
      return result == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE.UNRECOGNIZED : result;
    }
    /**
     * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
     * @param value The enum numeric value on the wire for lightMode to set.
     */
    private void setLightModeValue(int value) {
        lightMode_ = value;
    }
    /**
     * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
     * @param value The lightMode to set.
     */
    private void setLightMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE value) {
      lightMode_ = value.getNumber();
      
    }
    /**
     * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
     */
    private void clearLightMode() {
      
      lightMode_ = 0;
    }

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

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

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


      /**
       * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
       * @return The enum numeric value on the wire for lightMode.
       */
      @java.lang.Override
      public int getLightModeValue() {
        return instance.getLightModeValue();
      }
      /**
       * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
       * @param value The lightMode to set.
       * @return This builder for chaining.
       */
      public Builder setLightModeValue(int value) {
        copyOnWrite();
        instance.setLightModeValue(value);
        return this;
      }
      /**
       * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
       * @return The lightMode.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE getLightMode() {
        return instance.getLightMode();
      }
      /**
       * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
       * @param value The enum numeric value on the wire for lightMode to set.
       * @return This builder for chaining.
       */
      public Builder setLightMode(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.enum_PERIPHERAL_CONFIG_LIGHT_MODE value) {
        copyOnWrite();
        instance.setLightMode(value);
        return this;
      }
      /**
       * <code>.enum_PERIPHERAL_CONFIG_LIGHT_MODE light_mode = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearLightMode() {
        copyOnWrite();
        instance.clearLightMode();
        return this;
      }

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


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

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

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

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

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

    /**
     * <code>bool data_switch = 1;</code>
     * @return The dataSwitch.
     */
    boolean getDataSwitch();
  }
  /**
   * Protobuf type {@code peripheral_config_data_broadcast}
   */
  public  static final class peripheral_config_data_broadcast extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_config_data_broadcast, peripheral_config_data_broadcast.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_config_data_broadcast)
      peripheral_config_data_broadcastOrBuilder {
    private peripheral_config_data_broadcast() {
    }
    public static final int DATA_SWITCH_FIELD_NUMBER = 1;
    private boolean dataSwitch_;
    /**
     * <code>bool data_switch = 1;</code>
     * @return The dataSwitch.
     */
    @java.lang.Override
    public boolean getDataSwitch() {
      return dataSwitch_;
    }
    /**
     * <code>bool data_switch = 1;</code>
     * @param value The dataSwitch to set.
     */
    private void setDataSwitch(boolean value) {
      
      dataSwitch_ = value;
    }
    /**
     * <code>bool data_switch = 1;</code>
     */
    private void clearDataSwitch() {
      
      dataSwitch_ = false;
    }

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

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


      /**
       * <code>bool data_switch = 1;</code>
       * @return The dataSwitch.
       */
      @java.lang.Override
      public boolean getDataSwitch() {
        return instance.getDataSwitch();
      }
      /**
       * <code>bool data_switch = 1;</code>
       * @param value The dataSwitch to set.
       * @return This builder for chaining.
       */
      public Builder setDataSwitch(boolean value) {
        copyOnWrite();
        instance.setDataSwitch(value);
        return this;
      }
      /**
       * <code>bool data_switch = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearDataSwitch() {
        copyOnWrite();
        instance.clearDataSwitch();
        return this;
      }

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

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

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

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

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

    /**
     * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
     * @return Whether the shutdown field is set.
     */
    boolean hasShutdown();
    /**
     * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
     * @return The shutdown.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown getShutdown();

    /**
     * <code>.peripheral_config_data_sleep sleep = 2;</code>
     * @return Whether the sleep field is set.
     */
    boolean hasSleep();
    /**
     * <code>.peripheral_config_data_sleep sleep = 2;</code>
     * @return The sleep.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep getSleep();

    /**
     * <code>.peripheral_config_light_mode light = 3;</code>
     * @return Whether the light field is set.
     */
    boolean hasLight();
    /**
     * <code>.peripheral_config_light_mode light = 3;</code>
     * @return The light.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode getLight();

    /**
     * <code>.peripheral_config_data_broadcast data_service = 4;</code>
     * @return Whether the dataService field is set.
     */
    boolean hasDataService();
    /**
     * <code>.peripheral_config_data_broadcast data_service = 4;</code>
     * @return The dataService.
     */
    nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast getDataService();
  }
  /**
   * Protobuf type {@code peripheral_config_message}
   */
  public  static final class peripheral_config_message extends
      com.google.protobuf.GeneratedMessageLite<
          peripheral_config_message, peripheral_config_message.Builder> implements
      // @@protoc_insertion_point(message_implements:peripheral_config_message)
      peripheral_config_messageOrBuilder {
    private peripheral_config_message() {
    }
    public static final int SHUTDOWN_FIELD_NUMBER = 1;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown shutdown_;
    /**
     * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
     */
    @java.lang.Override
    public boolean hasShutdown() {
      return shutdown_ != null;
    }
    /**
     * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown getShutdown() {
      return shutdown_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown.getDefaultInstance() : shutdown_;
    }
    /**
     * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
     */
    private void setShutdown(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown value) {
      value.getClass();
  shutdown_ = value;
      
      }
    /**
     * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeShutdown(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown value) {
      value.getClass();
  if (shutdown_ != null &&
          shutdown_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown.getDefaultInstance()) {
        shutdown_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown.newBuilder(shutdown_).mergeFrom(value).buildPartial();
      } else {
        shutdown_ = value;
      }
      
    }
    /**
     * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
     */
    private void clearShutdown() {  shutdown_ = null;
      
    }

    public static final int SLEEP_FIELD_NUMBER = 2;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep sleep_;
    /**
     * <code>.peripheral_config_data_sleep sleep = 2;</code>
     */
    @java.lang.Override
    public boolean hasSleep() {
      return sleep_ != null;
    }
    /**
     * <code>.peripheral_config_data_sleep sleep = 2;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep getSleep() {
      return sleep_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep.getDefaultInstance() : sleep_;
    }
    /**
     * <code>.peripheral_config_data_sleep sleep = 2;</code>
     */
    private void setSleep(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep value) {
      value.getClass();
  sleep_ = value;
      
      }
    /**
     * <code>.peripheral_config_data_sleep sleep = 2;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeSleep(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep value) {
      value.getClass();
  if (sleep_ != null &&
          sleep_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep.getDefaultInstance()) {
        sleep_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep.newBuilder(sleep_).mergeFrom(value).buildPartial();
      } else {
        sleep_ = value;
      }
      
    }
    /**
     * <code>.peripheral_config_data_sleep sleep = 2;</code>
     */
    private void clearSleep() {  sleep_ = null;
      
    }

    public static final int LIGHT_FIELD_NUMBER = 3;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode light_;
    /**
     * <code>.peripheral_config_light_mode light = 3;</code>
     */
    @java.lang.Override
    public boolean hasLight() {
      return light_ != null;
    }
    /**
     * <code>.peripheral_config_light_mode light = 3;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode getLight() {
      return light_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode.getDefaultInstance() : light_;
    }
    /**
     * <code>.peripheral_config_light_mode light = 3;</code>
     */
    private void setLight(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode value) {
      value.getClass();
  light_ = value;
      
      }
    /**
     * <code>.peripheral_config_light_mode light = 3;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeLight(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode value) {
      value.getClass();
  if (light_ != null &&
          light_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode.getDefaultInstance()) {
        light_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode.newBuilder(light_).mergeFrom(value).buildPartial();
      } else {
        light_ = value;
      }
      
    }
    /**
     * <code>.peripheral_config_light_mode light = 3;</code>
     */
    private void clearLight() {  light_ = null;
      
    }

    public static final int DATA_SERVICE_FIELD_NUMBER = 4;
    private nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast dataService_;
    /**
     * <code>.peripheral_config_data_broadcast data_service = 4;</code>
     */
    @java.lang.Override
    public boolean hasDataService() {
      return dataService_ != null;
    }
    /**
     * <code>.peripheral_config_data_broadcast data_service = 4;</code>
     */
    @java.lang.Override
    public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast getDataService() {
      return dataService_ == null ? nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast.getDefaultInstance() : dataService_;
    }
    /**
     * <code>.peripheral_config_data_broadcast data_service = 4;</code>
     */
    private void setDataService(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast value) {
      value.getClass();
  dataService_ = value;
      
      }
    /**
     * <code>.peripheral_config_data_broadcast data_service = 4;</code>
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergeDataService(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast value) {
      value.getClass();
  if (dataService_ != null &&
          dataService_ != nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast.getDefaultInstance()) {
        dataService_ =
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast.newBuilder(dataService_).mergeFrom(value).buildPartial();
      } else {
        dataService_ = value;
      }
      
    }
    /**
     * <code>.peripheral_config_data_broadcast data_service = 4;</code>
     */
    private void clearDataService() {  dataService_ = null;
      
    }

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

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


      /**
       * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
       */
      @java.lang.Override
      public boolean hasShutdown() {
        return instance.hasShutdown();
      }
      /**
       * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown getShutdown() {
        return instance.getShutdown();
      }
      /**
       * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
       */
      public Builder setShutdown(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown value) {
        copyOnWrite();
        instance.setShutdown(value);
        return this;
        }
      /**
       * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
       */
      public Builder setShutdown(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown.Builder builderForValue) {
        copyOnWrite();
        instance.setShutdown(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
       */
      public Builder mergeShutdown(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_shutdown value) {
        copyOnWrite();
        instance.mergeShutdown(value);
        return this;
      }
      /**
       * <code>.peripheral_config_data_shutdown shutdown = 1;</code>
       */
      public Builder clearShutdown() {  copyOnWrite();
        instance.clearShutdown();
        return this;
      }

      /**
       * <code>.peripheral_config_data_sleep sleep = 2;</code>
       */
      @java.lang.Override
      public boolean hasSleep() {
        return instance.hasSleep();
      }
      /**
       * <code>.peripheral_config_data_sleep sleep = 2;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep getSleep() {
        return instance.getSleep();
      }
      /**
       * <code>.peripheral_config_data_sleep sleep = 2;</code>
       */
      public Builder setSleep(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep value) {
        copyOnWrite();
        instance.setSleep(value);
        return this;
        }
      /**
       * <code>.peripheral_config_data_sleep sleep = 2;</code>
       */
      public Builder setSleep(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep.Builder builderForValue) {
        copyOnWrite();
        instance.setSleep(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_config_data_sleep sleep = 2;</code>
       */
      public Builder mergeSleep(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_sleep value) {
        copyOnWrite();
        instance.mergeSleep(value);
        return this;
      }
      /**
       * <code>.peripheral_config_data_sleep sleep = 2;</code>
       */
      public Builder clearSleep() {  copyOnWrite();
        instance.clearSleep();
        return this;
      }

      /**
       * <code>.peripheral_config_light_mode light = 3;</code>
       */
      @java.lang.Override
      public boolean hasLight() {
        return instance.hasLight();
      }
      /**
       * <code>.peripheral_config_light_mode light = 3;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode getLight() {
        return instance.getLight();
      }
      /**
       * <code>.peripheral_config_light_mode light = 3;</code>
       */
      public Builder setLight(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode value) {
        copyOnWrite();
        instance.setLight(value);
        return this;
        }
      /**
       * <code>.peripheral_config_light_mode light = 3;</code>
       */
      public Builder setLight(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode.Builder builderForValue) {
        copyOnWrite();
        instance.setLight(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_config_light_mode light = 3;</code>
       */
      public Builder mergeLight(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_light_mode value) {
        copyOnWrite();
        instance.mergeLight(value);
        return this;
      }
      /**
       * <code>.peripheral_config_light_mode light = 3;</code>
       */
      public Builder clearLight() {  copyOnWrite();
        instance.clearLight();
        return this;
      }

      /**
       * <code>.peripheral_config_data_broadcast data_service = 4;</code>
       */
      @java.lang.Override
      public boolean hasDataService() {
        return instance.hasDataService();
      }
      /**
       * <code>.peripheral_config_data_broadcast data_service = 4;</code>
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast getDataService() {
        return instance.getDataService();
      }
      /**
       * <code>.peripheral_config_data_broadcast data_service = 4;</code>
       */
      public Builder setDataService(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast value) {
        copyOnWrite();
        instance.setDataService(value);
        return this;
        }
      /**
       * <code>.peripheral_config_data_broadcast data_service = 4;</code>
       */
      public Builder setDataService(
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast.Builder builderForValue) {
        copyOnWrite();
        instance.setDataService(builderForValue.build());
        return this;
      }
      /**
       * <code>.peripheral_config_data_broadcast data_service = 4;</code>
       */
      public Builder mergeDataService(nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_data_broadcast value) {
        copyOnWrite();
        instance.mergeDataService(value);
        return this;
      }
      /**
       * <code>.peripheral_config_data_broadcast data_service = 4;</code>
       */
      public Builder clearDataService() {  copyOnWrite();
        instance.clearDataService();
        return this;
      }

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

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

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

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

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

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

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

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

    /**
     * Protobuf type {@code peripheral_config_format}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_format, Builder> implements
        // @@protoc_insertion_point(builder_implements:peripheral_config_format)
        nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_formatOrBuilder {
      // Construct using nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.peripheral_config_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_CONFIG_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_CONFIG_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_CONFIG_SERVICE sub_service_type = 3;</code>
       * @return The subServiceType.
       */
      @java.lang.Override
      public nodomain.freeyourgadget.gadgetbridge.proto.igpsport.PeripheralConfig.PERIPHERAL_CONFIG_SERVICE getSubServiceType() {
        return instance.getSubServiceType();
      }
      /**
       * <code>.PERIPHERAL_CONFIG_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.PeripheralConfig.PERIPHERAL_CONFIG_SERVICE value) {
        copyOnWrite();
        instance.setSubServiceType(value);
        return this;
      }
      /**
       * <code>.PERIPHERAL_CONFIG_SERVICE sub_service_type = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearSubServiceType() {
        copyOnWrite();
        instance.clearSubServiceType();
        return this;
      }

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

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

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

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

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

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


  static {
  }

  // @@protoc_insertion_point(outer_class_scope)
}
