// This is a generated file - do not edit.
//
// Generated from alt/v1/market.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports

import 'dart:core' as $core;

import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;

import 'common.pb.dart' as $0;

export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;

class Instrument extends $pb.GeneratedMessage {
  factory Instrument({
    $core.String? id,
    $0.Market? market,
    $0.Venue? venue,
    $core.String? symbol,
    $core.String? name,
    $0.Currency? currency,
    $core.Iterable<$core.MapEntry<$core.String, $core.String>>? providerSymbols,
    $0.AssetType? assetType,
  }) {
    final result = create();
    if (id != null) result.id = id;
    if (market != null) result.market = market;
    if (venue != null) result.venue = venue;
    if (symbol != null) result.symbol = symbol;
    if (name != null) result.name = name;
    if (currency != null) result.currency = currency;
    if (providerSymbols != null)
      result.providerSymbols.addEntries(providerSymbols);
    if (assetType != null) result.assetType = assetType;
    return result;
  }

  Instrument._();

  factory Instrument.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory Instrument.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'Instrument',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'id')
    ..aE<$0.Market>(2, _omitFieldNames ? '' : 'market',
        enumValues: $0.Market.values)
    ..aE<$0.Venue>(3, _omitFieldNames ? '' : 'venue',
        enumValues: $0.Venue.values)
    ..aOS(4, _omitFieldNames ? '' : 'symbol')
    ..aOS(5, _omitFieldNames ? '' : 'name')
    ..aE<$0.Currency>(6, _omitFieldNames ? '' : 'currency',
        enumValues: $0.Currency.values)
    ..m<$core.String, $core.String>(7, _omitFieldNames ? '' : 'providerSymbols',
        entryClassName: 'Instrument.ProviderSymbolsEntry',
        keyFieldType: $pb.PbFieldType.OS,
        valueFieldType: $pb.PbFieldType.OS,
        packageName: const $pb.PackageName('alt.v1'))
    ..aE<$0.AssetType>(8, _omitFieldNames ? '' : 'assetType',
        enumValues: $0.AssetType.values)
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Instrument clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Instrument copyWith(void Function(Instrument) updates) =>
      super.copyWith((message) => updates(message as Instrument)) as Instrument;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static Instrument create() => Instrument._();
  @$core.override
  Instrument createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static Instrument getDefault() => _defaultInstance ??=
      $pb.GeneratedMessage.$_defaultFor<Instrument>(create);
  static Instrument? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get id => $_getSZ(0);
  @$pb.TagNumber(1)
  set id($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasId() => $_has(0);
  @$pb.TagNumber(1)
  void clearId() => $_clearField(1);

  @$pb.TagNumber(2)
  $0.Market get market => $_getN(1);
  @$pb.TagNumber(2)
  set market($0.Market value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasMarket() => $_has(1);
  @$pb.TagNumber(2)
  void clearMarket() => $_clearField(2);

  @$pb.TagNumber(3)
  $0.Venue get venue => $_getN(2);
  @$pb.TagNumber(3)
  set venue($0.Venue value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasVenue() => $_has(2);
  @$pb.TagNumber(3)
  void clearVenue() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get symbol => $_getSZ(3);
  @$pb.TagNumber(4)
  set symbol($core.String value) => $_setString(3, value);
  @$pb.TagNumber(4)
  $core.bool hasSymbol() => $_has(3);
  @$pb.TagNumber(4)
  void clearSymbol() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get name => $_getSZ(4);
  @$pb.TagNumber(5)
  set name($core.String value) => $_setString(4, value);
  @$pb.TagNumber(5)
  $core.bool hasName() => $_has(4);
  @$pb.TagNumber(5)
  void clearName() => $_clearField(5);

  @$pb.TagNumber(6)
  $0.Currency get currency => $_getN(5);
  @$pb.TagNumber(6)
  set currency($0.Currency value) => $_setField(6, value);
  @$pb.TagNumber(6)
  $core.bool hasCurrency() => $_has(5);
  @$pb.TagNumber(6)
  void clearCurrency() => $_clearField(6);

  @$pb.TagNumber(7)
  $pb.PbMap<$core.String, $core.String> get providerSymbols => $_getMap(6);

  @$pb.TagNumber(8)
  $0.AssetType get assetType => $_getN(7);
  @$pb.TagNumber(8)
  set assetType($0.AssetType value) => $_setField(8, value);
  @$pb.TagNumber(8)
  $core.bool hasAssetType() => $_has(7);
  @$pb.TagNumber(8)
  void clearAssetType() => $_clearField(8);
}

class Price extends $pb.GeneratedMessage {
  factory Price({
    $0.Currency? currency,
    $0.Decimal? amount,
  }) {
    final result = create();
    if (currency != null) result.currency = currency;
    if (amount != null) result.amount = amount;
    return result;
  }

  Price._();

  factory Price.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory Price.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'Price',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aE<$0.Currency>(1, _omitFieldNames ? '' : 'currency',
        enumValues: $0.Currency.values)
    ..aOM<$0.Decimal>(2, _omitFieldNames ? '' : 'amount',
        subBuilder: $0.Decimal.create)
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Price clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Price copyWith(void Function(Price) updates) =>
      super.copyWith((message) => updates(message as Price)) as Price;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static Price create() => Price._();
  @$core.override
  Price createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static Price getDefault() =>
      _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Price>(create);
  static Price? _defaultInstance;

  @$pb.TagNumber(1)
  $0.Currency get currency => $_getN(0);
  @$pb.TagNumber(1)
  set currency($0.Currency value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasCurrency() => $_has(0);
  @$pb.TagNumber(1)
  void clearCurrency() => $_clearField(1);

  @$pb.TagNumber(2)
  $0.Decimal get amount => $_getN(1);
  @$pb.TagNumber(2)
  set amount($0.Decimal value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasAmount() => $_has(1);
  @$pb.TagNumber(2)
  void clearAmount() => $_clearField(2);
  @$pb.TagNumber(2)
  $0.Decimal ensureAmount() => $_ensure(1);
}

class Quantity extends $pb.GeneratedMessage {
  factory Quantity({
    $0.Decimal? amount,
  }) {
    final result = create();
    if (amount != null) result.amount = amount;
    return result;
  }

  Quantity._();

  factory Quantity.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory Quantity.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'Quantity',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aOM<$0.Decimal>(1, _omitFieldNames ? '' : 'amount',
        subBuilder: $0.Decimal.create)
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Quantity clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Quantity copyWith(void Function(Quantity) updates) =>
      super.copyWith((message) => updates(message as Quantity)) as Quantity;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static Quantity create() => Quantity._();
  @$core.override
  Quantity createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static Quantity getDefault() =>
      _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Quantity>(create);
  static Quantity? _defaultInstance;

  @$pb.TagNumber(1)
  $0.Decimal get amount => $_getN(0);
  @$pb.TagNumber(1)
  set amount($0.Decimal value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasAmount() => $_has(0);
  @$pb.TagNumber(1)
  void clearAmount() => $_clearField(1);
  @$pb.TagNumber(1)
  $0.Decimal ensureAmount() => $_ensure(0);
}

class Bar extends $pb.GeneratedMessage {
  factory Bar({
    $core.String? instrumentId,
    $0.Timeframe? timeframe,
    $fixnum.Int64? timestampUnixMs,
    Price? open,
    Price? high,
    Price? low,
    Price? close,
    Quantity? volume,
  }) {
    final result = create();
    if (instrumentId != null) result.instrumentId = instrumentId;
    if (timeframe != null) result.timeframe = timeframe;
    if (timestampUnixMs != null) result.timestampUnixMs = timestampUnixMs;
    if (open != null) result.open = open;
    if (high != null) result.high = high;
    if (low != null) result.low = low;
    if (close != null) result.close = close;
    if (volume != null) result.volume = volume;
    return result;
  }

  Bar._();

  factory Bar.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory Bar.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'Bar',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'instrumentId')
    ..aE<$0.Timeframe>(2, _omitFieldNames ? '' : 'timeframe',
        enumValues: $0.Timeframe.values)
    ..aInt64(3, _omitFieldNames ? '' : 'timestampUnixMs')
    ..aOM<Price>(4, _omitFieldNames ? '' : 'open', subBuilder: Price.create)
    ..aOM<Price>(5, _omitFieldNames ? '' : 'high', subBuilder: Price.create)
    ..aOM<Price>(6, _omitFieldNames ? '' : 'low', subBuilder: Price.create)
    ..aOM<Price>(7, _omitFieldNames ? '' : 'close', subBuilder: Price.create)
    ..aOM<Quantity>(8, _omitFieldNames ? '' : 'volume',
        subBuilder: Quantity.create)
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Bar clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Bar copyWith(void Function(Bar) updates) =>
      super.copyWith((message) => updates(message as Bar)) as Bar;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static Bar create() => Bar._();
  @$core.override
  Bar createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static Bar getDefault() =>
      _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Bar>(create);
  static Bar? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get instrumentId => $_getSZ(0);
  @$pb.TagNumber(1)
  set instrumentId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasInstrumentId() => $_has(0);
  @$pb.TagNumber(1)
  void clearInstrumentId() => $_clearField(1);

  @$pb.TagNumber(2)
  $0.Timeframe get timeframe => $_getN(1);
  @$pb.TagNumber(2)
  set timeframe($0.Timeframe value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasTimeframe() => $_has(1);
  @$pb.TagNumber(2)
  void clearTimeframe() => $_clearField(2);

  @$pb.TagNumber(3)
  $fixnum.Int64 get timestampUnixMs => $_getI64(2);
  @$pb.TagNumber(3)
  set timestampUnixMs($fixnum.Int64 value) => $_setInt64(2, value);
  @$pb.TagNumber(3)
  $core.bool hasTimestampUnixMs() => $_has(2);
  @$pb.TagNumber(3)
  void clearTimestampUnixMs() => $_clearField(3);

  @$pb.TagNumber(4)
  Price get open => $_getN(3);
  @$pb.TagNumber(4)
  set open(Price value) => $_setField(4, value);
  @$pb.TagNumber(4)
  $core.bool hasOpen() => $_has(3);
  @$pb.TagNumber(4)
  void clearOpen() => $_clearField(4);
  @$pb.TagNumber(4)
  Price ensureOpen() => $_ensure(3);

  @$pb.TagNumber(5)
  Price get high => $_getN(4);
  @$pb.TagNumber(5)
  set high(Price value) => $_setField(5, value);
  @$pb.TagNumber(5)
  $core.bool hasHigh() => $_has(4);
  @$pb.TagNumber(5)
  void clearHigh() => $_clearField(5);
  @$pb.TagNumber(5)
  Price ensureHigh() => $_ensure(4);

  @$pb.TagNumber(6)
  Price get low => $_getN(5);
  @$pb.TagNumber(6)
  set low(Price value) => $_setField(6, value);
  @$pb.TagNumber(6)
  $core.bool hasLow() => $_has(5);
  @$pb.TagNumber(6)
  void clearLow() => $_clearField(6);
  @$pb.TagNumber(6)
  Price ensureLow() => $_ensure(5);

  @$pb.TagNumber(7)
  Price get close => $_getN(6);
  @$pb.TagNumber(7)
  set close(Price value) => $_setField(7, value);
  @$pb.TagNumber(7)
  $core.bool hasClose() => $_has(6);
  @$pb.TagNumber(7)
  void clearClose() => $_clearField(7);
  @$pb.TagNumber(7)
  Price ensureClose() => $_ensure(6);

  @$pb.TagNumber(8)
  Quantity get volume => $_getN(7);
  @$pb.TagNumber(8)
  set volume(Quantity value) => $_setField(8, value);
  @$pb.TagNumber(8)
  $core.bool hasVolume() => $_has(7);
  @$pb.TagNumber(8)
  void clearVolume() => $_clearField(8);
  @$pb.TagNumber(8)
  Quantity ensureVolume() => $_ensure(7);
}

class ListInstrumentsRequest extends $pb.GeneratedMessage {
  factory ListInstrumentsRequest({
    $0.Market? market,
    $core.String? provider,
  }) {
    final result = create();
    if (market != null) result.market = market;
    if (provider != null) result.provider = provider;
    return result;
  }

  ListInstrumentsRequest._();

  factory ListInstrumentsRequest.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory ListInstrumentsRequest.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ListInstrumentsRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aE<$0.Market>(1, _omitFieldNames ? '' : 'market',
        enumValues: $0.Market.values)
    ..aOS(2, _omitFieldNames ? '' : 'provider')
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListInstrumentsRequest clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListInstrumentsRequest copyWith(
          void Function(ListInstrumentsRequest) updates) =>
      super.copyWith((message) => updates(message as ListInstrumentsRequest))
          as ListInstrumentsRequest;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ListInstrumentsRequest create() => ListInstrumentsRequest._();
  @$core.override
  ListInstrumentsRequest createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static ListInstrumentsRequest getDefault() => _defaultInstance ??=
      $pb.GeneratedMessage.$_defaultFor<ListInstrumentsRequest>(create);
  static ListInstrumentsRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $0.Market get market => $_getN(0);
  @$pb.TagNumber(1)
  set market($0.Market value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasMarket() => $_has(0);
  @$pb.TagNumber(1)
  void clearMarket() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get provider => $_getSZ(1);
  @$pb.TagNumber(2)
  set provider($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasProvider() => $_has(1);
  @$pb.TagNumber(2)
  void clearProvider() => $_clearField(2);
}

class ListInstrumentsResponse extends $pb.GeneratedMessage {
  factory ListInstrumentsResponse({
    $core.Iterable<Instrument>? instruments,
    $0.ErrorInfo? error,
  }) {
    final result = create();
    if (instruments != null) result.instruments.addAll(instruments);
    if (error != null) result.error = error;
    return result;
  }

  ListInstrumentsResponse._();

  factory ListInstrumentsResponse.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory ListInstrumentsResponse.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ListInstrumentsResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..pPM<Instrument>(1, _omitFieldNames ? '' : 'instruments',
        subBuilder: Instrument.create)
    ..aOM<$0.ErrorInfo>(2, _omitFieldNames ? '' : 'error',
        subBuilder: $0.ErrorInfo.create)
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListInstrumentsResponse clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListInstrumentsResponse copyWith(
          void Function(ListInstrumentsResponse) updates) =>
      super.copyWith((message) => updates(message as ListInstrumentsResponse))
          as ListInstrumentsResponse;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ListInstrumentsResponse create() => ListInstrumentsResponse._();
  @$core.override
  ListInstrumentsResponse createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static ListInstrumentsResponse getDefault() => _defaultInstance ??=
      $pb.GeneratedMessage.$_defaultFor<ListInstrumentsResponse>(create);
  static ListInstrumentsResponse? _defaultInstance;

  @$pb.TagNumber(1)
  $pb.PbList<Instrument> get instruments => $_getList(0);

  @$pb.TagNumber(2)
  $0.ErrorInfo get error => $_getN(1);
  @$pb.TagNumber(2)
  set error($0.ErrorInfo value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasError() => $_has(1);
  @$pb.TagNumber(2)
  void clearError() => $_clearField(2);
  @$pb.TagNumber(2)
  $0.ErrorInfo ensureError() => $_ensure(1);
}

class ListBarsRequest extends $pb.GeneratedMessage {
  factory ListBarsRequest({
    $core.String? instrumentId,
    $0.Timeframe? timeframe,
    $fixnum.Int64? fromUnixMs,
    $fixnum.Int64? toUnixMs,
  }) {
    final result = create();
    if (instrumentId != null) result.instrumentId = instrumentId;
    if (timeframe != null) result.timeframe = timeframe;
    if (fromUnixMs != null) result.fromUnixMs = fromUnixMs;
    if (toUnixMs != null) result.toUnixMs = toUnixMs;
    return result;
  }

  ListBarsRequest._();

  factory ListBarsRequest.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory ListBarsRequest.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ListBarsRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'instrumentId')
    ..aE<$0.Timeframe>(2, _omitFieldNames ? '' : 'timeframe',
        enumValues: $0.Timeframe.values)
    ..aInt64(3, _omitFieldNames ? '' : 'fromUnixMs')
    ..aInt64(4, _omitFieldNames ? '' : 'toUnixMs')
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListBarsRequest clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListBarsRequest copyWith(void Function(ListBarsRequest) updates) =>
      super.copyWith((message) => updates(message as ListBarsRequest))
          as ListBarsRequest;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ListBarsRequest create() => ListBarsRequest._();
  @$core.override
  ListBarsRequest createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static ListBarsRequest getDefault() => _defaultInstance ??=
      $pb.GeneratedMessage.$_defaultFor<ListBarsRequest>(create);
  static ListBarsRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get instrumentId => $_getSZ(0);
  @$pb.TagNumber(1)
  set instrumentId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasInstrumentId() => $_has(0);
  @$pb.TagNumber(1)
  void clearInstrumentId() => $_clearField(1);

  @$pb.TagNumber(2)
  $0.Timeframe get timeframe => $_getN(1);
  @$pb.TagNumber(2)
  set timeframe($0.Timeframe value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasTimeframe() => $_has(1);
  @$pb.TagNumber(2)
  void clearTimeframe() => $_clearField(2);

  @$pb.TagNumber(3)
  $fixnum.Int64 get fromUnixMs => $_getI64(2);
  @$pb.TagNumber(3)
  set fromUnixMs($fixnum.Int64 value) => $_setInt64(2, value);
  @$pb.TagNumber(3)
  $core.bool hasFromUnixMs() => $_has(2);
  @$pb.TagNumber(3)
  void clearFromUnixMs() => $_clearField(3);

  @$pb.TagNumber(4)
  $fixnum.Int64 get toUnixMs => $_getI64(3);
  @$pb.TagNumber(4)
  set toUnixMs($fixnum.Int64 value) => $_setInt64(3, value);
  @$pb.TagNumber(4)
  $core.bool hasToUnixMs() => $_has(3);
  @$pb.TagNumber(4)
  void clearToUnixMs() => $_clearField(4);
}

class ListBarsResponse extends $pb.GeneratedMessage {
  factory ListBarsResponse({
    $core.Iterable<Bar>? bars,
    $0.ErrorInfo? error,
  }) {
    final result = create();
    if (bars != null) result.bars.addAll(bars);
    if (error != null) result.error = error;
    return result;
  }

  ListBarsResponse._();

  factory ListBarsResponse.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory ListBarsResponse.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ListBarsResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..pPM<Bar>(1, _omitFieldNames ? '' : 'bars', subBuilder: Bar.create)
    ..aOM<$0.ErrorInfo>(2, _omitFieldNames ? '' : 'error',
        subBuilder: $0.ErrorInfo.create)
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListBarsResponse clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListBarsResponse copyWith(void Function(ListBarsResponse) updates) =>
      super.copyWith((message) => updates(message as ListBarsResponse))
          as ListBarsResponse;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ListBarsResponse create() => ListBarsResponse._();
  @$core.override
  ListBarsResponse createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static ListBarsResponse getDefault() => _defaultInstance ??=
      $pb.GeneratedMessage.$_defaultFor<ListBarsResponse>(create);
  static ListBarsResponse? _defaultInstance;

  @$pb.TagNumber(1)
  $pb.PbList<Bar> get bars => $_getList(0);

  @$pb.TagNumber(2)
  $0.ErrorInfo get error => $_getN(1);
  @$pb.TagNumber(2)
  set error($0.ErrorInfo value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasError() => $_has(1);
  @$pb.TagNumber(2)
  void clearError() => $_clearField(2);
  @$pb.TagNumber(2)
  $0.ErrorInfo ensureError() => $_ensure(1);
}

class ImportDailyBarsRequest extends $pb.GeneratedMessage {
  factory ImportDailyBarsRequest({
    $core.String? provider,
    $core.String? selectorKind,
    $0.Market? market,
    $0.Venue? venue,
    $core.String? name,
    $core.Iterable<$core.String>? symbols,
    $core.String? fromYyyymmdd,
    $core.String? toYyyymmdd,
  }) {
    final result = create();
    if (provider != null) result.provider = provider;
    if (selectorKind != null) result.selectorKind = selectorKind;
    if (market != null) result.market = market;
    if (venue != null) result.venue = venue;
    if (name != null) result.name = name;
    if (symbols != null) result.symbols.addAll(symbols);
    if (fromYyyymmdd != null) result.fromYyyymmdd = fromYyyymmdd;
    if (toYyyymmdd != null) result.toYyyymmdd = toYyyymmdd;
    return result;
  }

  ImportDailyBarsRequest._();

  factory ImportDailyBarsRequest.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory ImportDailyBarsRequest.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ImportDailyBarsRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'provider')
    ..aOS(2, _omitFieldNames ? '' : 'selectorKind')
    ..aE<$0.Market>(3, _omitFieldNames ? '' : 'market',
        enumValues: $0.Market.values)
    ..aE<$0.Venue>(4, _omitFieldNames ? '' : 'venue',
        enumValues: $0.Venue.values)
    ..aOS(5, _omitFieldNames ? '' : 'name')
    ..pPS(6, _omitFieldNames ? '' : 'symbols')
    ..aOS(7, _omitFieldNames ? '' : 'fromYyyymmdd')
    ..aOS(8, _omitFieldNames ? '' : 'toYyyymmdd')
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ImportDailyBarsRequest clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ImportDailyBarsRequest copyWith(
          void Function(ImportDailyBarsRequest) updates) =>
      super.copyWith((message) => updates(message as ImportDailyBarsRequest))
          as ImportDailyBarsRequest;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ImportDailyBarsRequest create() => ImportDailyBarsRequest._();
  @$core.override
  ImportDailyBarsRequest createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static ImportDailyBarsRequest getDefault() => _defaultInstance ??=
      $pb.GeneratedMessage.$_defaultFor<ImportDailyBarsRequest>(create);
  static ImportDailyBarsRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get provider => $_getSZ(0);
  @$pb.TagNumber(1)
  set provider($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasProvider() => $_has(0);
  @$pb.TagNumber(1)
  void clearProvider() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get selectorKind => $_getSZ(1);
  @$pb.TagNumber(2)
  set selectorKind($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasSelectorKind() => $_has(1);
  @$pb.TagNumber(2)
  void clearSelectorKind() => $_clearField(2);

  @$pb.TagNumber(3)
  $0.Market get market => $_getN(2);
  @$pb.TagNumber(3)
  set market($0.Market value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasMarket() => $_has(2);
  @$pb.TagNumber(3)
  void clearMarket() => $_clearField(3);

  @$pb.TagNumber(4)
  $0.Venue get venue => $_getN(3);
  @$pb.TagNumber(4)
  set venue($0.Venue value) => $_setField(4, value);
  @$pb.TagNumber(4)
  $core.bool hasVenue() => $_has(3);
  @$pb.TagNumber(4)
  void clearVenue() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get name => $_getSZ(4);
  @$pb.TagNumber(5)
  set name($core.String value) => $_setString(4, value);
  @$pb.TagNumber(5)
  $core.bool hasName() => $_has(4);
  @$pb.TagNumber(5)
  void clearName() => $_clearField(5);

  @$pb.TagNumber(6)
  $pb.PbList<$core.String> get symbols => $_getList(5);

  @$pb.TagNumber(7)
  $core.String get fromYyyymmdd => $_getSZ(6);
  @$pb.TagNumber(7)
  set fromYyyymmdd($core.String value) => $_setString(6, value);
  @$pb.TagNumber(7)
  $core.bool hasFromYyyymmdd() => $_has(6);
  @$pb.TagNumber(7)
  void clearFromYyyymmdd() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.String get toYyyymmdd => $_getSZ(7);
  @$pb.TagNumber(8)
  set toYyyymmdd($core.String value) => $_setString(7, value);
  @$pb.TagNumber(8)
  $core.bool hasToYyyymmdd() => $_has(7);
  @$pb.TagNumber(8)
  void clearToYyyymmdd() => $_clearField(8);
}

class ImportDailyBarsResponse extends $pb.GeneratedMessage {
  factory ImportDailyBarsResponse({
    $core.String? provider,
    $core.int? instrumentCount,
    $core.int? barCount,
    $0.ErrorInfo? error,
  }) {
    final result = create();
    if (provider != null) result.provider = provider;
    if (instrumentCount != null) result.instrumentCount = instrumentCount;
    if (barCount != null) result.barCount = barCount;
    if (error != null) result.error = error;
    return result;
  }

  ImportDailyBarsResponse._();

  factory ImportDailyBarsResponse.fromBuffer($core.List<$core.int> data,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromBuffer(data, registry);
  factory ImportDailyBarsResponse.fromJson($core.String json,
          [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
      create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ImportDailyBarsResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'alt.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'provider')
    ..aI(2, _omitFieldNames ? '' : 'instrumentCount')
    ..aI(3, _omitFieldNames ? '' : 'barCount')
    ..aOM<$0.ErrorInfo>(4, _omitFieldNames ? '' : 'error',
        subBuilder: $0.ErrorInfo.create)
    ..hasRequiredFields = false;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ImportDailyBarsResponse clone() => deepCopy();
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ImportDailyBarsResponse copyWith(
          void Function(ImportDailyBarsResponse) updates) =>
      super.copyWith((message) => updates(message as ImportDailyBarsResponse))
          as ImportDailyBarsResponse;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ImportDailyBarsResponse create() => ImportDailyBarsResponse._();
  @$core.override
  ImportDailyBarsResponse createEmptyInstance() => create();
  @$core.pragma('dart2js:noInline')
  static ImportDailyBarsResponse getDefault() => _defaultInstance ??=
      $pb.GeneratedMessage.$_defaultFor<ImportDailyBarsResponse>(create);
  static ImportDailyBarsResponse? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get provider => $_getSZ(0);
  @$pb.TagNumber(1)
  set provider($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasProvider() => $_has(0);
  @$pb.TagNumber(1)
  void clearProvider() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.int get instrumentCount => $_getIZ(1);
  @$pb.TagNumber(2)
  set instrumentCount($core.int value) => $_setSignedInt32(1, value);
  @$pb.TagNumber(2)
  $core.bool hasInstrumentCount() => $_has(1);
  @$pb.TagNumber(2)
  void clearInstrumentCount() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.int get barCount => $_getIZ(2);
  @$pb.TagNumber(3)
  set barCount($core.int value) => $_setSignedInt32(2, value);
  @$pb.TagNumber(3)
  $core.bool hasBarCount() => $_has(2);
  @$pb.TagNumber(3)
  void clearBarCount() => $_clearField(3);

  @$pb.TagNumber(4)
  $0.ErrorInfo get error => $_getN(3);
  @$pb.TagNumber(4)
  set error($0.ErrorInfo value) => $_setField(4, value);
  @$pb.TagNumber(4)
  $core.bool hasError() => $_has(3);
  @$pb.TagNumber(4)
  void clearError() => $_clearField(4);
  @$pb.TagNumber(4)
  $0.ErrorInfo ensureError() => $_ensure(3);
}

const $core.bool _omitFieldNames =
    $core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =
    $core.bool.fromEnvironment('protobuf.omit_message_names');
