// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file itemQuery.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 { BlockFilter, EntityID, MatchField, MatchFieldResult, QueryProjectHeader, ResultHeader } from "./shared_pb.js";
import { Item } from "./item_pb.js";
import { LVDetailedQuantity } from "./repositoryShared_pb.js";

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

  /**
   * @generated from field: repeated api.EntityID IDs = 2;
   */
  IDs: EntityID[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ItemByIdQuery";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
    { no: 2, name: "IDs", kind: "message", T: EntityID, repeated: true },
  ]);

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

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

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

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

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

  /**
   * Aggregation object message
   *
   * @generated from field: repeated api.Item Objects = 2;
   */
  Objects: Item[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ItemByIdResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: ResultHeader },
    { no: 2, name: "Objects", kind: "message", T: Item, repeated: true },
  ]);

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

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

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

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

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

  /**
   * Number of maximum result
   *
   * @generated from field: string limitFilter = 4;
   */
  limitFilter = "";

  /**
   * @generated from field: string queryContext = 5;
   */
  queryContext = "";

  /**
   * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
   *
   * @generated from field: repeated api.BlockFilter BlockFilters = 6;
   */
  BlockFilters: BlockFilter[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ItemByFilterQuery";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
    { no: 4, name: "limitFilter", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 6, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
  ]);

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

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

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

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

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

  /**
   * @generated from field: repeated api.Item Objects = 2;
   */
  Objects: Item[] = [];

  /**
   * @generated from field: string queryContext = 3;
   */
  queryContext = "";

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ItemByFilterResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: ResultHeader },
    { no: 2, name: "Objects", kind: "message", T: Item, repeated: true },
    { no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

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

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

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

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

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

  /**
   * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
   *
   * @generated from field: repeated api.BlockFilter BlockFilters = 5;
   */
  BlockFilters: BlockFilter[] = [];

  /**
   * MatchField list structure, for FindMatching query
   *
   * @generated from field: repeated api.MatchField MatchFields = 6;
   */
  MatchFields: MatchField[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ItemByMatchQuery";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
    { no: 5, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
    { no: 6, name: "MatchFields", kind: "message", T: MatchField, repeated: true },
  ]);

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

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

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

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

/**
 * @generated from message api.ItemByMatchResult
 */
export class ItemByMatchResult extends Message<ItemByMatchResult> {
  /**
   * @generated from field: repeated api.MatchFieldResult MatchResults = 2;
   */
  MatchResults: MatchFieldResult[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ItemByMatchResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true },
  ]);

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

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

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

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

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

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

  /**
   * @generated from field: string LVBranchID = 3;
   */
  LVBranchID = "";

  /**
   * @generated from field: float quantityInbaseLv = 4;
   */
  quantityInbaseLv = 0;

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetLVDetailedQuantityQuery";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
    { no: 2, name: "ID", kind: "message", T: EntityID },
    { no: 3, name: "LVBranchID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "quantityInbaseLv", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
  ]);

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

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

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

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

/**
 * @generated from message api.GetLVDetailedQuantityResult
 */
export class GetLVDetailedQuantityResult extends Message<GetLVDetailedQuantityResult> {
  /**
   * @generated from field: repeated api.LVDetailedQuantity LVDetailedQuantity = 1;
   */
  LVDetailedQuantity: LVDetailedQuantity[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetLVDetailedQuantityResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "LVDetailedQuantity", kind: "message", T: LVDetailedQuantity, repeated: true },
  ]);

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

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

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

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

