// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file object_db_query.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 { ObjectDB } from "./object_db_pb.js";

/**
 * @generated from message api.CliGetObjectIdRequest
 */
export class CliGetObjectIdRequest extends Message<CliGetObjectIdRequest> {
  /**
   * @generated from field: string project = 1;
   */
  project = "";

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

  /**
   * @generated from field: repeated string ids = 3;
   */
  ids: string[] = [];

  /**
   * @generated from field: string pageState = 4;
   */
  pageState = "";

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.CliGetObjectIdRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "object", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
    { no: 4, name: "pageState", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

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

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

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

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

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

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.CliRepeatedObjectsGottenResponse";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "objectDBs", kind: "message", T: ObjectDB, repeated: true },
    { no: 2, name: "pageState", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

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

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

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

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

