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

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

///
/// CompleteSnapshot : finalize a actor snapshot
/// by sending cumulated snapshotted quantity on stock id not already cumulated,
/// by reseting the quantity of missing stock entry for the current snapshot
class ActorCompleteSnapshotPayload extends $pb.GeneratedMessage {
  factory ActorCompleteSnapshotPayload({
    $65.ActorSnapshot? snapshot,
  }) {
    final $result = create();
    if (snapshot != null) {
      $result.snapshot = snapshot;
    }
    return $result;
  }
  ActorCompleteSnapshotPayload._() : super();
  factory ActorCompleteSnapshotPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory ActorCompleteSnapshotPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $65.ActorSnapshot get snapshot => $_getN(0);
  @$pb.TagNumber(1)
  set snapshot($65.ActorSnapshot v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasSnapshot() => $_has(0);
  @$pb.TagNumber(1)
  void clearSnapshot() => $_clearField(1);
  @$pb.TagNumber(1)
  $65.ActorSnapshot ensureSnapshot() => $_ensure(0);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ActorCompleteSnapshot', 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<ActorCompleteSnapshotPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: ActorCompleteSnapshotPayload.create)
    ..aOM<ActorCompleteSnapshotPayload>(4, _omitFieldNames ? '' : 'EventPayload', protoName: 'EventPayload', subBuilder: ActorCompleteSnapshotPayload.create)
    ..aOM<ActorCompleteSnapshotPayload>(5, _omitFieldNames ? '' : 'PreviousPayload', protoName: 'PreviousPayload', subBuilder: ActorCompleteSnapshotPayload.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')
  ActorCompleteSnapshot clone() => ActorCompleteSnapshot()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  ActorCompleteSnapshot copyWith(void Function(ActorCompleteSnapshot) updates) => super.copyWith((message) => updates(message as ActorCompleteSnapshot)) as ActorCompleteSnapshot;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ActorCompleteSnapshot create() => ActorCompleteSnapshot._();
  ActorCompleteSnapshot createEmptyInstance() => create();
  static $pb.PbList<ActorCompleteSnapshot> createRepeated() => $pb.PbList<ActorCompleteSnapshot>();
  @$core.pragma('dart2js:noInline')
  static ActorCompleteSnapshot getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ActorCompleteSnapshot>(create);
  static ActorCompleteSnapshot? _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)
  ActorCompleteSnapshotPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(ActorCompleteSnapshotPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  ActorCompleteSnapshotPayload ensurePayload() => $_ensure(2);

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

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


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