// @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=ts"
// @generated from file plm/v1/tasks_list.proto (package plm.v1, syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
import type { TaskState } from "./task_pb.ts";
import { file_plm_v1_task } from "./task_pb.ts";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file plm/v1/tasks_list.proto.
 */
export const file_plm_v1_tasks_list: GenFile = /*@__PURE__*/
  fileDesc("ChdwbG0vdjEvdGFza3NfbGlzdC5wcm90bxIGcGxtLnYxInMKFFRhc2tzRm9yQWdlbnRSZXF1ZXN0EhIKCnJlcXVlc3RfaWQYASABKAkSEwoLaW5zdGFuY2VfaWQYAiABKAkSEAoIYWdlbnRfaWQYAyABKAkSIAoFc3RhdGUYBCABKA4yES5wbG0udjEuVGFza1N0YXRlImQKFVRhc2tzRm9yQWdlbnRSZXNwb25zZRISCgpyZXF1ZXN0X2lkGAEgASgJEhMKC2luc3RhbmNlX2lkGAIgASgJEhAKCGFnZW50X2lkGAMgASgJEhAKCHRhc2tfaWRzGAQgAygJQpEBCgpjb20ucGxtLnYxQg5UYXNrc0xpc3RQcm90b1ABWjFnaXRodWIuY29tL2NvYm90YXIvcHJvdG9jb2wvbWVzc2FnZXMvcGxtL3YxO3BsbXYxogIDUFhYqgIPTWVzc2FnZXMuUGxtLlYxygIGUGxtXFYx4gISUGxtXFYxXEdQQk1ldGFkYXRh6gIHUGxtOjpWMWIGcHJvdG8z", [file_plm_v1_task]);

/**
 * @generated from message plm.v1.TasksForAgentRequest
 */
export type TasksForAgentRequest = Message<"plm.v1.TasksForAgentRequest"> & {
  /**
   * @generated from field: string request_id = 1;
   */
  requestId: string;

  /**
   * @generated from field: string instance_id = 2;
   */
  instanceId: string;

  /**
   * @generated from field: string agent_id = 3;
   */
  agentId: string;

  /**
   * Filter based on state. 0 (unspecified) returns all
   *
   * @generated from field: plm.v1.TaskState state = 4;
   */
  state: TaskState;
};

/**
 * Describes the message plm.v1.TasksForAgentRequest.
 * Use `create(TasksForAgentRequestSchema)` to create a new message.
 */
export const TasksForAgentRequestSchema: GenMessage<TasksForAgentRequest> = /*@__PURE__*/
  messageDesc(file_plm_v1_tasks_list, 0);

/**
 * @generated from message plm.v1.TasksForAgentResponse
 */
export type TasksForAgentResponse = Message<"plm.v1.TasksForAgentResponse"> & {
  /**
   * @generated from field: string request_id = 1;
   */
  requestId: string;

  /**
   * @generated from field: string instance_id = 2;
   */
  instanceId: string;

  /**
   * @generated from field: string agent_id = 3;
   */
  agentId: string;

  /**
   * @generated from field: repeated string task_ids = 4;
   */
  taskIds: string[];
};

/**
 * Describes the message plm.v1.TasksForAgentResponse.
 * Use `create(TasksForAgentResponseSchema)` to create a new message.
 */
export const TasksForAgentResponseSchema: GenMessage<TasksForAgentResponse> = /*@__PURE__*/
  messageDesc(file_plm_v1_tasks_list, 1);

