//
//  Generated code. Do not modify.
//  source: stockInput.proto
//
// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

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

import 'actor.pb.dart' as $67;
import 'shared.pb.dart' as $3;
import 'warehousingShared.pb.dart' as $76;

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

///
/// Update the goods stock counter with the provided goods quantity.
/// Also updates the prepared quantity (outbound).
/// May also update the pre-received qty (inbound).
///
/// This event is received from Stock entity.
///
/// This event is used when the Stock is physically moved from/into the warehouse to De/Increment the physical Stock counter of this goods.
///
/// The ID part of the request is removed, because the Stock ID.RefID is built internally from the Payload.Goods.
/// A specific algorithm will be implemented on api-server and all actions which result this event.
class StockMovedPayload extends $pb.GeneratedMessage {
  factory StockMovedPayload({
    $76.EnrichedGoods? goods,
    $core.String? actorID,
    $67.ActorPayload? actor,
    $76.StockMovement? movement,
  }) {
    final $result = create();
    if (goods != null) {
      $result.goods = goods;
    }
    if (actorID != null) {
      $result.actorID = actorID;
    }
    if (actor != null) {
      $result.actor = actor;
    }
    if (movement != null) {
      $result.movement = movement;
    }
    return $result;
  }
  StockMovedPayload._() : super();
  factory StockMovedPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockMovedPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockMovedPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$76.EnrichedGoods>(1, _omitFieldNames ? '' : 'Goods', protoName: 'Goods', subBuilder: $76.EnrichedGoods.create)
    ..aOS(2, _omitFieldNames ? '' : 'ActorID', protoName: 'ActorID')
    ..aOM<$67.ActorPayload>(7, _omitFieldNames ? '' : 'Actor', protoName: 'Actor', subBuilder: $67.ActorPayload.create)
    ..aOM<$76.StockMovement>(8, _omitFieldNames ? '' : 'Movement', protoName: 'Movement', subBuilder: $76.StockMovement.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockMovedPayload clone() => StockMovedPayload()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockMovedPayload copyWith(void Function(StockMovedPayload) updates) => super.copyWith((message) => updates(message as StockMovedPayload)) as StockMovedPayload;

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $76.EnrichedGoods get goods => $_getN(0);
  @$pb.TagNumber(1)
  set goods($76.EnrichedGoods v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasGoods() => $_has(0);
  @$pb.TagNumber(1)
  void clearGoods() => $_clearField(1);
  @$pb.TagNumber(1)
  $76.EnrichedGoods ensureGoods() => $_ensure(0);

  @$pb.TagNumber(2)
  $core.String get actorID => $_getSZ(1);
  @$pb.TagNumber(2)
  set actorID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasActorID() => $_has(1);
  @$pb.TagNumber(2)
  void clearActorID() => $_clearField(2);

  @$pb.TagNumber(7)
  $67.ActorPayload get actor => $_getN(2);
  @$pb.TagNumber(7)
  set actor($67.ActorPayload v) { $_setField(7, v); }
  @$pb.TagNumber(7)
  $core.bool hasActor() => $_has(2);
  @$pb.TagNumber(7)
  void clearActor() => $_clearField(7);
  @$pb.TagNumber(7)
  $67.ActorPayload ensureActor() => $_ensure(2);

  @$pb.TagNumber(8)
  $76.StockMovement get movement => $_getN(3);
  @$pb.TagNumber(8)
  set movement($76.StockMovement v) { $_setField(8, v); }
  @$pb.TagNumber(8)
  $core.bool hasMovement() => $_has(3);
  @$pb.TagNumber(8)
  void clearMovement() => $_clearField(8);
  @$pb.TagNumber(8)
  $76.StockMovement ensureMovement() => $_ensure(3);
}

class StockMovedEvent extends $pb.GeneratedMessage {
  factory StockMovedEvent({
    $3.EventHeader? header,
    $3.EntityID? iD,
    StockMovedPayload? payload,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    return $result;
  }
  StockMovedEvent._() : super();
  factory StockMovedEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockMovedEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockMovedEvent', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.EventHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.EventHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
    ..aOM<StockMovedPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: StockMovedPayload.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockMovedEvent clone() => StockMovedEvent()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockMovedEvent copyWith(void Function(StockMovedEvent) updates) => super.copyWith((message) => updates(message as StockMovedEvent)) as StockMovedEvent;

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.EventHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.EventHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.EventHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);

  @$pb.TagNumber(3)
  StockMovedPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(StockMovedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  StockMovedPayload ensurePayload() => $_ensure(2);
}

class StockMovedRequest extends $pb.GeneratedMessage {
  factory StockMovedRequest({
    $3.RequestProjectHeader? header,
    StockMovedPayload? payload,
    $3.NoID? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  StockMovedRequest._() : super();
  factory StockMovedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockMovedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockMovedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOM<StockMovedPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: StockMovedPayload.create)
    ..aOM<$3.NoID>(4, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.NoID.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockMovedRequest clone() => StockMovedRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockMovedRequest copyWith(void Function(StockMovedRequest) updates) => super.copyWith((message) => updates(message as StockMovedRequest)) as StockMovedRequest;

  $pb.BuilderInfo get info_ => _i;

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

  /// Header of the event request
  @$pb.TagNumber(1)
  $3.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestProjectHeader ensureHeader() => $_ensure(0);

  /// Content of the event request
  @$pb.TagNumber(3)
  StockMovedPayload get payload => $_getN(1);
  @$pb.TagNumber(3)
  set payload(StockMovedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(1);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  StockMovedPayload ensurePayload() => $_ensure(1);

  @$pb.TagNumber(4)
  $3.NoID get iD => $_getN(2);
  @$pb.TagNumber(4)
  set iD($3.NoID v) { $_setField(4, v); }
  @$pb.TagNumber(4)
  $core.bool hasID() => $_has(2);
  @$pb.TagNumber(4)
  void clearID() => $_clearField(4);
  @$pb.TagNumber(4)
  $3.NoID ensureID() => $_ensure(2);
}

class StockMovedResponse extends $pb.GeneratedMessage {
  factory StockMovedResponse({
    $3.ResponseHeader? header,
    $3.EntityID? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  StockMovedResponse._() : super();
  factory StockMovedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockMovedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockMovedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.ResponseHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.ResponseHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockMovedResponse clone() => StockMovedResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockMovedResponse copyWith(void Function(StockMovedResponse) updates) => super.copyWith((message) => updates(message as StockMovedResponse)) as StockMovedResponse;

  $pb.BuilderInfo get info_ => _i;

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

  /// Header of the response
  @$pb.TagNumber(1)
  $3.ResponseHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.ResponseHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.ResponseHeader ensureHeader() => $_ensure(0);

  /// Identifier of the stock the request event was applied on
  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);
}

///
/// The measured stock quantity at the given date time.
/// Event received from a wms inventory.
///
/// The ID part of the request is removed, because the Stock ID.RefID is built internally from the Payload.Goods.
/// A specific algorithm will be implemented on api-server and all actions which result this event.
class StockSnapshottedPayload extends $pb.GeneratedMessage {
  factory StockSnapshottedPayload({
    $76.EnrichedGoods? goods,
    $core.String? actorID,
    $67.ActorPayload? actor,
    $76.StockSnapshot? snapshot,
  }) {
    final $result = create();
    if (goods != null) {
      $result.goods = goods;
    }
    if (actorID != null) {
      $result.actorID = actorID;
    }
    if (actor != null) {
      $result.actor = actor;
    }
    if (snapshot != null) {
      $result.snapshot = snapshot;
    }
    return $result;
  }
  StockSnapshottedPayload._() : super();
  factory StockSnapshottedPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockSnapshottedPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockSnapshottedPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$76.EnrichedGoods>(1, _omitFieldNames ? '' : 'Goods', protoName: 'Goods', subBuilder: $76.EnrichedGoods.create)
    ..aOS(2, _omitFieldNames ? '' : 'ActorID', protoName: 'ActorID')
    ..aOM<$67.ActorPayload>(7, _omitFieldNames ? '' : 'Actor', protoName: 'Actor', subBuilder: $67.ActorPayload.create)
    ..aOM<$76.StockSnapshot>(8, _omitFieldNames ? '' : 'Snapshot', protoName: 'Snapshot', subBuilder: $76.StockSnapshot.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockSnapshottedPayload clone() => StockSnapshottedPayload()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockSnapshottedPayload copyWith(void Function(StockSnapshottedPayload) updates) => super.copyWith((message) => updates(message as StockSnapshottedPayload)) as StockSnapshottedPayload;

  $pb.BuilderInfo get info_ => _i;

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

  /// Description of the goods
  @$pb.TagNumber(1)
  $76.EnrichedGoods get goods => $_getN(0);
  @$pb.TagNumber(1)
  set goods($76.EnrichedGoods v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasGoods() => $_has(0);
  @$pb.TagNumber(1)
  void clearGoods() => $_clearField(1);
  @$pb.TagNumber(1)
  $76.EnrichedGoods ensureGoods() => $_ensure(0);

  /// Identifier of the actor where the stock is located
  @$pb.TagNumber(2)
  $core.String get actorID => $_getSZ(1);
  @$pb.TagNumber(2)
  set actorID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasActorID() => $_has(1);
  @$pb.TagNumber(2)
  void clearActorID() => $_clearField(2);

  @$pb.TagNumber(7)
  $67.ActorPayload get actor => $_getN(2);
  @$pb.TagNumber(7)
  set actor($67.ActorPayload v) { $_setField(7, v); }
  @$pb.TagNumber(7)
  $core.bool hasActor() => $_has(2);
  @$pb.TagNumber(7)
  void clearActor() => $_clearField(7);
  @$pb.TagNumber(7)
  $67.ActorPayload ensureActor() => $_ensure(2);

  /// Description of the snapshot
  @$pb.TagNumber(8)
  $76.StockSnapshot get snapshot => $_getN(3);
  @$pb.TagNumber(8)
  set snapshot($76.StockSnapshot v) { $_setField(8, v); }
  @$pb.TagNumber(8)
  $core.bool hasSnapshot() => $_has(3);
  @$pb.TagNumber(8)
  void clearSnapshot() => $_clearField(8);
  @$pb.TagNumber(8)
  $76.StockSnapshot ensureSnapshot() => $_ensure(3);
}

class StockSnapshottedEvent extends $pb.GeneratedMessage {
  factory StockSnapshottedEvent({
    $3.EventHeader? header,
    $3.EntityID? iD,
    StockSnapshottedPayload? payload,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    return $result;
  }
  StockSnapshottedEvent._() : super();
  factory StockSnapshottedEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockSnapshottedEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockSnapshottedEvent', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.EventHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.EventHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
    ..aOM<StockSnapshottedPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: StockSnapshottedPayload.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockSnapshottedEvent clone() => StockSnapshottedEvent()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockSnapshottedEvent copyWith(void Function(StockSnapshottedEvent) updates) => super.copyWith((message) => updates(message as StockSnapshottedEvent)) as StockSnapshottedEvent;

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.EventHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.EventHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.EventHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);

  @$pb.TagNumber(3)
  StockSnapshottedPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(StockSnapshottedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  StockSnapshottedPayload ensurePayload() => $_ensure(2);
}

class StockSnapshottedRequest extends $pb.GeneratedMessage {
  factory StockSnapshottedRequest({
    $3.RequestProjectHeader? header,
    StockSnapshottedPayload? payload,
    $3.NoID? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  StockSnapshottedRequest._() : super();
  factory StockSnapshottedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockSnapshottedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockSnapshottedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOM<StockSnapshottedPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: StockSnapshottedPayload.create)
    ..aOM<$3.NoID>(4, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.NoID.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockSnapshottedRequest clone() => StockSnapshottedRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockSnapshottedRequest copyWith(void Function(StockSnapshottedRequest) updates) => super.copyWith((message) => updates(message as StockSnapshottedRequest)) as StockSnapshottedRequest;

  $pb.BuilderInfo get info_ => _i;

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

  /// Header of the event request
  @$pb.TagNumber(1)
  $3.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestProjectHeader ensureHeader() => $_ensure(0);

  /// Content of the event request
  @$pb.TagNumber(3)
  StockSnapshottedPayload get payload => $_getN(1);
  @$pb.TagNumber(3)
  set payload(StockSnapshottedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(1);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  StockSnapshottedPayload ensurePayload() => $_ensure(1);

  @$pb.TagNumber(4)
  $3.NoID get iD => $_getN(2);
  @$pb.TagNumber(4)
  set iD($3.NoID v) { $_setField(4, v); }
  @$pb.TagNumber(4)
  $core.bool hasID() => $_has(2);
  @$pb.TagNumber(4)
  void clearID() => $_clearField(4);
  @$pb.TagNumber(4)
  $3.NoID ensureID() => $_ensure(2);
}

class StockSnapshottedResponse extends $pb.GeneratedMessage {
  factory StockSnapshottedResponse({
    $3.ResponseHeader? header,
    $3.EntityID? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  StockSnapshottedResponse._() : super();
  factory StockSnapshottedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockSnapshottedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockSnapshottedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.ResponseHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.ResponseHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockSnapshottedResponse clone() => StockSnapshottedResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockSnapshottedResponse copyWith(void Function(StockSnapshottedResponse) updates) => super.copyWith((message) => updates(message as StockSnapshottedResponse)) as StockSnapshottedResponse;

  $pb.BuilderInfo get info_ => _i;

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

  /// Header of the response
  @$pb.TagNumber(1)
  $3.ResponseHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.ResponseHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.ResponseHeader ensureHeader() => $_ensure(0);

  /// Identifier of the stock the request event was applied on
  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);
}

///
/// DEPRECATED
/// The stock entry has been deleted.
/// Event received from a wms.
///
/// The ID part of the request is removed, because the Stock ID.RefID is built internally from the Payload.Goods.
/// A specific algorithm will be implemented on api-server and all actions which result this event.
class StockDeletedPayload extends $pb.GeneratedMessage {
  factory StockDeletedPayload({
    $76.EnrichedGoods? goods,
    $core.String? actorID,
    $67.ActorPayload? actor,
  }) {
    final $result = create();
    if (goods != null) {
      $result.goods = goods;
    }
    if (actorID != null) {
      $result.actorID = actorID;
    }
    if (actor != null) {
      $result.actor = actor;
    }
    return $result;
  }
  StockDeletedPayload._() : super();
  factory StockDeletedPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockDeletedPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockDeletedPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$76.EnrichedGoods>(1, _omitFieldNames ? '' : 'Goods', protoName: 'Goods', subBuilder: $76.EnrichedGoods.create)
    ..aOS(2, _omitFieldNames ? '' : 'ActorID', protoName: 'ActorID')
    ..aOM<$67.ActorPayload>(7, _omitFieldNames ? '' : 'Actor', protoName: 'Actor', subBuilder: $67.ActorPayload.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockDeletedPayload clone() => StockDeletedPayload()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockDeletedPayload copyWith(void Function(StockDeletedPayload) updates) => super.copyWith((message) => updates(message as StockDeletedPayload)) as StockDeletedPayload;

  $pb.BuilderInfo get info_ => _i;

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

  /// Description of the goods
  @$pb.TagNumber(1)
  $76.EnrichedGoods get goods => $_getN(0);
  @$pb.TagNumber(1)
  set goods($76.EnrichedGoods v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasGoods() => $_has(0);
  @$pb.TagNumber(1)
  void clearGoods() => $_clearField(1);
  @$pb.TagNumber(1)
  $76.EnrichedGoods ensureGoods() => $_ensure(0);

  /// Identifier of the actor where the stock is located
  @$pb.TagNumber(2)
  $core.String get actorID => $_getSZ(1);
  @$pb.TagNumber(2)
  set actorID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasActorID() => $_has(1);
  @$pb.TagNumber(2)
  void clearActorID() => $_clearField(2);

  @$pb.TagNumber(7)
  $67.ActorPayload get actor => $_getN(2);
  @$pb.TagNumber(7)
  set actor($67.ActorPayload v) { $_setField(7, v); }
  @$pb.TagNumber(7)
  $core.bool hasActor() => $_has(2);
  @$pb.TagNumber(7)
  void clearActor() => $_clearField(7);
  @$pb.TagNumber(7)
  $67.ActorPayload ensureActor() => $_ensure(2);
}

class StockDeletedEvent extends $pb.GeneratedMessage {
  factory StockDeletedEvent({
    $3.EventHeader? header,
    $3.EntityID? iD,
    StockDeletedPayload? payload,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    return $result;
  }
  StockDeletedEvent._() : super();
  factory StockDeletedEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockDeletedEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockDeletedEvent', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.EventHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.EventHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
    ..aOM<StockDeletedPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: StockDeletedPayload.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockDeletedEvent clone() => StockDeletedEvent()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockDeletedEvent copyWith(void Function(StockDeletedEvent) updates) => super.copyWith((message) => updates(message as StockDeletedEvent)) as StockDeletedEvent;

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.EventHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.EventHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.EventHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);

  @$pb.TagNumber(3)
  StockDeletedPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(StockDeletedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  StockDeletedPayload ensurePayload() => $_ensure(2);
}

class StockDeletedRequest extends $pb.GeneratedMessage {
  factory StockDeletedRequest({
    $3.RequestProjectHeader? header,
    StockDeletedPayload? payload,
    $3.NoID? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  StockDeletedRequest._() : super();
  factory StockDeletedRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockDeletedRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockDeletedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOM<StockDeletedPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: StockDeletedPayload.create)
    ..aOM<$3.NoID>(4, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.NoID.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockDeletedRequest clone() => StockDeletedRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockDeletedRequest copyWith(void Function(StockDeletedRequest) updates) => super.copyWith((message) => updates(message as StockDeletedRequest)) as StockDeletedRequest;

  $pb.BuilderInfo get info_ => _i;

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

  /// Header of the event request
  @$pb.TagNumber(1)
  $3.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestProjectHeader ensureHeader() => $_ensure(0);

  /// Content of the event request
  @$pb.TagNumber(3)
  StockDeletedPayload get payload => $_getN(1);
  @$pb.TagNumber(3)
  set payload(StockDeletedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(1);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  StockDeletedPayload ensurePayload() => $_ensure(1);

  @$pb.TagNumber(4)
  $3.NoID get iD => $_getN(2);
  @$pb.TagNumber(4)
  set iD($3.NoID v) { $_setField(4, v); }
  @$pb.TagNumber(4)
  $core.bool hasID() => $_has(2);
  @$pb.TagNumber(4)
  void clearID() => $_clearField(4);
  @$pb.TagNumber(4)
  $3.NoID ensureID() => $_ensure(2);
}

class StockDeletedResponse extends $pb.GeneratedMessage {
  factory StockDeletedResponse({
    $3.ResponseHeader? header,
    $3.EntityID? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  StockDeletedResponse._() : super();
  factory StockDeletedResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory StockDeletedResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'StockDeletedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.ResponseHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.ResponseHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  StockDeletedResponse clone() => StockDeletedResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  StockDeletedResponse copyWith(void Function(StockDeletedResponse) updates) => super.copyWith((message) => updates(message as StockDeletedResponse)) as StockDeletedResponse;

  $pb.BuilderInfo get info_ => _i;

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

  /// Header of the response
  @$pb.TagNumber(1)
  $3.ResponseHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.ResponseHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.ResponseHeader ensureHeader() => $_ensure(0);

  /// Identifier of the stock the request event was applied on
  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);
}


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