convent method

Implementation

ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment convent() {
  switch (this) {
    case ImageUploadAlignment.disabled:
      return ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.DISABLED;
    case ImageUploadAlignment.twoByte:
      return ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.TWO_BYTE;
    case ImageUploadAlignment.fourByte:
      return ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment.FOUR_BYTE;
    case ImageUploadAlignment.eightByte:
      return ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment
          .EIGHT_BYTE;
    case ImageUploadAlignment.sixteenByte:
      return ProtoFirmwareUpgradeConfiguration_ImageUploadAlignment
          .SIXTEEN_BYTE;
    default:
      throw 'Unsupported ImageUploadAlignment';
  }
}