// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file movementAction.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { EnrichedGoods, StockMovement } from "./warehousingShared_pb.js";
import { CommandHeader, EntityID } from "./shared_pb.js";

/**
 *
 * GenerateDelta : replicate tracking status on all included logistic units
 *
 * @generated from message api.MovementSendToStockPayload
 */
export class MovementSendToStockPayload extends Message<MovementSendToStockPayload> {
  /**
   * @generated from field: api.EnrichedGoods Goods = 1;
   */
  Goods?: EnrichedGoods;

  /**
   * @generated from field: string ActorID = 2;
   */
  ActorID = "";

  /**
   * @generated from field: api.StockMovement Movement = 3;
   */
  Movement?: StockMovement;

  constructor(data?: PartialMessage<MovementSendToStockPayload>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.MovementSendToStockPayload";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Goods", kind: "message", T: EnrichedGoods },
    { no: 2, name: "ActorID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "Movement", kind: "message", T: StockMovement },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MovementSendToStockPayload {
    return new MovementSendToStockPayload().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MovementSendToStockPayload {
    return new MovementSendToStockPayload().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MovementSendToStockPayload {
    return new MovementSendToStockPayload().fromJsonString(jsonString, options);
  }

  static equals(a: MovementSendToStockPayload | PlainMessage<MovementSendToStockPayload> | undefined, b: MovementSendToStockPayload | PlainMessage<MovementSendToStockPayload> | undefined): boolean {
    return proto3.util.equals(MovementSendToStockPayload, a, b);
  }
}

/**
 * @generated from message api.MovementSendToStock
 */
export class MovementSendToStock extends Message<MovementSendToStock> {
  /**
   * @generated from field: api.CommandHeader Header = 1;
   */
  Header?: CommandHeader;

  /**
   * @generated from field: api.EntityID ID = 2;
   */
  ID?: EntityID;

  /**
   * @generated from field: api.MovementSendToStockPayload Payload = 3;
   */
  Payload?: MovementSendToStockPayload;

  /**
   * @generated from field: api.MovementSendToStockPayload EventPayload = 4;
   */
  EventPayload?: MovementSendToStockPayload;

  /**
   * @generated from field: api.MovementSendToStockPayload PreviousPayload = 5;
   */
  PreviousPayload?: MovementSendToStockPayload;

  constructor(data?: PartialMessage<MovementSendToStock>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.MovementSendToStock";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: CommandHeader },
    { no: 2, name: "ID", kind: "message", T: EntityID },
    { no: 3, name: "Payload", kind: "message", T: MovementSendToStockPayload },
    { no: 4, name: "EventPayload", kind: "message", T: MovementSendToStockPayload },
    { no: 5, name: "PreviousPayload", kind: "message", T: MovementSendToStockPayload },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MovementSendToStock {
    return new MovementSendToStock().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MovementSendToStock {
    return new MovementSendToStock().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MovementSendToStock {
    return new MovementSendToStock().fromJsonString(jsonString, options);
  }

  static equals(a: MovementSendToStock | PlainMessage<MovementSendToStock> | undefined, b: MovementSendToStock | PlainMessage<MovementSendToStock> | undefined): boolean {
    return proto3.util.equals(MovementSendToStock, a, b);
  }
}

