// This is a generated file - do not edit.
//
// Generated from movementAction.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 $1;
import 'warehousingShared.pb.dart' as $0;

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

///
/// GenerateDelta : replicate tracking status on all included logistic units
class MovementSendToStockPayload extends $pb.GeneratedMessage {
  factory MovementSendToStockPayload({
    $0.EnrichedGoods? goods,
    $core.String? actorID,
    $0.StockMovement? movement,
  }) {
    final result = create();
    if (goods != null) result.goods = goods;
    if (actorID != null) result.actorID = actorID;
    if (movement != null) result.movement = movement;
    return result;
  }

  MovementSendToStockPayload._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementSendToStockPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$0.EnrichedGoods>(1, _omitFieldNames ? '' : 'Goods', protoName: 'Goods', subBuilder: $0.EnrichedGoods.create)
    ..aOS(2, _omitFieldNames ? '' : 'ActorID', protoName: 'ActorID')
    ..aOM<$0.StockMovement>(3, _omitFieldNames ? '' : 'Movement', protoName: 'Movement', subBuilder: $0.StockMovement.create)
    ..hasRequiredFields = false
  ;

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

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

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

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

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

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

class MovementSendToStock extends $pb.GeneratedMessage {
  factory MovementSendToStock({
    $1.CommandHeader? header,
    $1.EntityID? iD,
    MovementSendToStockPayload? payload,
    MovementSendToStockPayload? eventPayload,
    MovementSendToStockPayload? 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;
  }

  MovementSendToStock._();

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

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

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

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

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

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

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

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

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

  @$pb.TagNumber(5)
  MovementSendToStockPayload get previousPayload => $_getN(4);
  @$pb.TagNumber(5)
  set previousPayload(MovementSendToStockPayload value) => $_setField(5, value);
  @$pb.TagNumber(5)
  $core.bool hasPreviousPayload() => $_has(4);
  @$pb.TagNumber(5)
  void clearPreviousPayload() => $_clearField(5);
  @$pb.TagNumber(5)
  MovementSendToStockPayload 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');
