// This is a generated file - do not edit.
//
// Generated from itemAction.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

import 'dart:core' as $core;

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

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

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

///
/// DeleteStock : clear the stock cooresponding to the item
/// by sending cumulated snapshotted quantity on stock id not already cumulated,
/// by reseting the quantity of missing stock entry for the current snapshot
class ItemDeleteStockPayload extends $pb.GeneratedMessage {
  factory ItemDeleteStockPayload() => create();

  ItemDeleteStockPayload._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ItemDeleteStockPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..hasRequiredFields = false
  ;

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

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

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

class ItemDeleteStock extends $pb.GeneratedMessage {
  factory ItemDeleteStock({
    $0.CommandHeader? header,
    $0.EntityID? iD,
    ItemDeleteStockPayload? payload,
    ItemDeleteStockPayload? eventPayload,
    ItemDeleteStockPayload? previousPayload,
  }) {
    final result = create();
    if (header != null) result.header = header;
    if (iD != null) result.iD = iD;
    if (payload != null) result.payload = payload;
    if (eventPayload != null) result.eventPayload = eventPayload;
    if (previousPayload != null) result.previousPayload = previousPayload;
    return result;
  }

  ItemDeleteStock._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ItemDeleteStock', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$0.CommandHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $0.CommandHeader.create)
    ..aOM<$0.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $0.EntityID.create)
    ..aOM<ItemDeleteStockPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: ItemDeleteStockPayload.create)
    ..aOM<ItemDeleteStockPayload>(4, _omitFieldNames ? '' : 'EventPayload', protoName: 'EventPayload', subBuilder: ItemDeleteStockPayload.create)
    ..aOM<ItemDeleteStockPayload>(5, _omitFieldNames ? '' : 'PreviousPayload', protoName: 'PreviousPayload', subBuilder: ItemDeleteStockPayload.create)
    ..hasRequiredFields = false
  ;

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

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

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

  @$pb.TagNumber(1)
  $0.CommandHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($0.CommandHeader value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $0.CommandHeader ensureHeader() => $_ensure(0);

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

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

  @$pb.TagNumber(4)
  ItemDeleteStockPayload get eventPayload => $_getN(3);
  @$pb.TagNumber(4)
  set eventPayload(ItemDeleteStockPayload value) => $_setField(4, value);
  @$pb.TagNumber(4)
  $core.bool hasEventPayload() => $_has(3);
  @$pb.TagNumber(4)
  void clearEventPayload() => $_clearField(4);
  @$pb.TagNumber(4)
  ItemDeleteStockPayload ensureEventPayload() => $_ensure(3);

  @$pb.TagNumber(5)
  ItemDeleteStockPayload get previousPayload => $_getN(4);
  @$pb.TagNumber(5)
  set previousPayload(ItemDeleteStockPayload value) => $_setField(5, value);
  @$pb.TagNumber(5)
  $core.bool hasPreviousPayload() => $_has(4);
  @$pb.TagNumber(5)
  void clearPreviousPayload() => $_clearField(5);
  @$pb.TagNumber(5)
  ItemDeleteStockPayload ensurePreviousPayload() => $_ensure(4);
}


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