//
//  Generated code. Do not modify.
//  source: movementAction.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 'shared.pb.dart' as $3;
import 'warehousingShared.pb.dart' as $76;

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

///
/// GenerateDelta : replicate tracking status on all included logistic units
class MovementSendToStockPayload extends $pb.GeneratedMessage {
  factory MovementSendToStockPayload({
    $76.EnrichedGoods? goods,
    $core.String? actorID,
    $76.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._() : super();
  factory MovementSendToStockPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory MovementSendToStockPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementSendToStockPayload', 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<$76.StockMovement>(3, _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')
  MovementSendToStockPayload clone() => MovementSendToStockPayload()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  MovementSendToStockPayload copyWith(void Function(MovementSendToStockPayload) updates) => super.copyWith((message) => updates(message as MovementSendToStockPayload)) as MovementSendToStockPayload;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static MovementSendToStockPayload create() => MovementSendToStockPayload._();
  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)
  $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(3)
  $76.StockMovement get movement => $_getN(2);
  @$pb.TagNumber(3)
  set movement($76.StockMovement v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasMovement() => $_has(2);
  @$pb.TagNumber(3)
  void clearMovement() => $_clearField(3);
  @$pb.TagNumber(3)
  $76.StockMovement ensureMovement() => $_ensure(2);
}

class MovementSendToStock extends $pb.GeneratedMessage {
  factory MovementSendToStock({
    $3.CommandHeader? header,
    $3.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._() : super();
  factory MovementSendToStock.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory MovementSendToStock.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementSendToStock', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.CommandHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.CommandHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.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(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  MovementSendToStock clone() => MovementSendToStock()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  MovementSendToStock copyWith(void Function(MovementSendToStock) updates) => super.copyWith((message) => updates(message as MovementSendToStock)) as MovementSendToStock;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static MovementSendToStock create() => MovementSendToStock._();
  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)
  $3.CommandHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.CommandHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.CommandHeader 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)
  MovementSendToStockPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(MovementSendToStockPayload v) { $_setField(3, v); }
  @$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 v) { $_setField(4, v); }
  @$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 v) { $_setField(5, v); }
  @$pb.TagNumber(5)
  $core.bool hasPreviousPayload() => $_has(4);
  @$pb.TagNumber(5)
  void clearPreviousPayload() => $_clearField(5);
  @$pb.TagNumber(5)
  MovementSendToStockPayload ensurePreviousPayload() => $_ensure(4);
}


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