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

import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
import { file_google_api_annotations } from "../../google/api/annotations_pb";
import { file_google_api_client } from "../../google/api/client_pb";
import { file_google_api_field_behavior } from "../../google/api/field_behavior_pb";
import { file_google_api_resource } from "../../google/api/resource_pb";
import type { EmptySchema, FieldMask } from "@bufbuild/protobuf/wkt";
import { file_google_protobuf_empty, file_google_protobuf_field_mask } from "@bufbuild/protobuf/wkt";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file api/v1/shortcut_service.proto.
 */
export const file_api_v1_shortcut_service: GenFile = /*@__PURE__*/
  fileDesc("Ch1hcGkvdjEvc2hvcnRjdXRfc2VydmljZS5wcm90bxIMbWVtb3MuYXBpLnYxIpoBCghTaG9ydGN1dBIRCgRuYW1lGAEgASgJQgPgQQgSEgoFdGl0bGUYAiABKAlCA+BBAhITCgZmaWx0ZXIYAyABKAlCA+BBATpS6kFPChVtZW1vcy5hcGkudjEvU2hvcnRjdXQSIXVzZXJzL3t1c2VyfS9zaG9ydGN1dHMve3Nob3J0Y3V0fSoJc2hvcnRjdXRzMghzaG9ydGN1dCJFChRMaXN0U2hvcnRjdXRzUmVxdWVzdBItCgZwYXJlbnQYASABKAlCHeBBAvpBFxIVbWVtb3MuYXBpLnYxL1Nob3J0Y3V0IkIKFUxpc3RTaG9ydGN1dHNSZXNwb25zZRIpCglzaG9ydGN1dHMYASADKAsyFi5tZW1vcy5hcGkudjEuU2hvcnRjdXQiQQoSR2V0U2hvcnRjdXRSZXF1ZXN0EisKBG5hbWUYASABKAlCHeBBAvpBFwoVbWVtb3MuYXBpLnYxL1Nob3J0Y3V0IpEBChVDcmVhdGVTaG9ydGN1dFJlcXVlc3QSLQoGcGFyZW50GAEgASgJQh3gQ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XN0GhYubWVtb3MuYXBpLnYxLlNob3J0Y3V0IlTaQRRzaG9ydGN1dCx1cGRhdGVfbWFza4LT5JMCNzoIc2hvcnRjdXQyKy9hcGkvdjEve3Nob3J0Y3V0Lm5hbWU9dXNlcnMvKi9zaG9ydGN1dHMvKn0SgAEKDkRlbGV0ZVNob3J0Y3V0EiMubWVtb3MuYXBpLnYxLkRlbGV0ZVNob3J0Y3V0UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIx2kEEbmFtZYLT5JMCJCoiL2FwaS92MS97bmFtZT11c2Vycy8qL3Nob3J0Y3V0cy8qfUKsAQoQY29tLm1lbW9zLmFwaS52MUIUU2hvcnRjdXRTZXJ2aWNlUHJvdG9QAVowZ2l0aHViLmNvbS91c2VtZW1vcy9tZW1vcy9wcm90by9nZW4vYXBpL3YxO2FwaXYxogIDTUFYqgIMTWVtb3MuQXBpLlYxygIMTWVtb3NcQXBpXFYx4gIYTWVtb3NcQXBpXFYxXEdQQk1ldGFkYXRh6gIOTWVtb3M6OkFwaTo6VjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_empty, file_google_protobuf_field_mask]);

/**
 * @generated from message memos.api.v1.Shortcut
 */
export type Shortcut = Message<"memos.api.v1.Shortcut"> & {
  /**
   * The resource name of the shortcut.
   * Format: users/{user}/shortcuts/{shortcut}
   *
   * @generated from field: string name = 1;
   */
  name: string;

  /**
   * The title of the shortcut.
   *
   * @generated from field: string title = 2;
   */
  title: string;

  /**
   * The filter expression for the shortcut.
   *
   * @generated from field: string filter = 3;
   */
  filter: string;
};

/**
 * Describes the message memos.api.v1.Shortcut.
 * Use `create(ShortcutSchema)` to create a new message.
 */
export const ShortcutSchema: GenMessage<Shortcut> = /*@__PURE__*/
  messageDesc(file_api_v1_shortcut_service, 0);

/**
 * @generated from message memos.api.v1.ListShortcutsRequest
 */
export type ListShortcutsRequest = Message<"memos.api.v1.ListShortcutsRequest"> & {
  /**
   * Required. The parent resource where shortcuts are listed.
   * Format: users/{user}
   *
   * @generated from field: string parent = 1;
   */
  parent: string;
};

/**
 * Describes the message memos.api.v1.ListShortcutsRequest.
 * Use `create(ListShortcutsRequestSchema)` to create a new message.
 */
export const ListShortcutsRequestSchema: GenMessage<ListShortcutsRequest> = /*@__PURE__*/
  messageDesc(file_api_v1_shortcut_service, 1);

/**
 * @generated from message memos.api.v1.ListShortcutsResponse
 */
export type ListShortcutsResponse = Message<"memos.api.v1.ListShortcutsResponse"> & {
  /**
   * The list of shortcuts.
   *
   * @generated from field: repeated memos.api.v1.Shortcut shortcuts = 1;
   */
  shortcuts: Shortcut[];
};

/**
 * Describes the message memos.api.v1.ListShortcutsResponse.
 * Use `create(ListShortcutsResponseSchema)` to create a new message.
 */
export const ListShortcutsResponseSchema: GenMessage<ListShortcutsResponse> = /*@__PURE__*/
  messageDesc(file_api_v1_shortcut_service, 2);

/**
 * @generated from message memos.api.v1.GetShortcutRequest
 */
export type GetShortcutRequest = Message<"memos.api.v1.GetShortcutRequest"> & {
  /**
   * Required. The resource name of the shortcut to retrieve.
   * Format: users/{user}/shortcuts/{shortcut}
   *
   * @generated from field: string name = 1;
   */
  name: string;
};

/**
 * Describes the message memos.api.v1.GetShortcutRequest.
 * Use `create(GetShortcutRequestSchema)` to create a new message.
 */
export const GetShortcutRequestSchema: GenMessage<GetShortcutRequest> = /*@__PURE__*/
  messageDesc(file_api_v1_shortcut_service, 3);

/**
 * @generated from message memos.api.v1.CreateShortcutRequest
 */
export type CreateShortcutRequest = Message<"memos.api.v1.CreateShortcutRequest"> & {
  /**
   * Required. The parent resource where this shortcut will be created.
   * Format: users/{user}
   *
   * @generated from field: string parent = 1;
   */
  parent: string;

  /**
   * Required. The shortcut to create.
   *
   * @generated from field: memos.api.v1.Shortcut shortcut = 2;
   */
  shortcut?: Shortcut;

  /**
   * Optional. If set, validate the request, but do not actually create the shortcut.
   *
   * @generated from field: bool validate_only = 3;
   */
  validateOnly: boolean;
};

/**
 * Describes the message memos.api.v1.CreateShortcutRequest.
 * Use `create(CreateShortcutRequestSchema)` to create a new message.
 */
export const CreateShortcutRequestSchema: GenMessage<CreateShortcutRequest> = /*@__PURE__*/
  messageDesc(file_api_v1_shortcut_service, 4);

/**
 * @generated from message memos.api.v1.UpdateShortcutRequest
 */
export type UpdateShortcutRequest = Message<"memos.api.v1.UpdateShortcutRequest"> & {
  /**
   * Required. The shortcut resource which replaces the resource on the server.
   *
   * @generated from field: memos.api.v1.Shortcut shortcut = 1;
   */
  shortcut?: Shortcut;

  /**
   * Optional. The list of fields to update.
   *
   * @generated from field: google.protobuf.FieldMask update_mask = 2;
   */
  updateMask?: FieldMask;
};

/**
 * Describes the message memos.api.v1.UpdateShortcutRequest.
 * Use `create(UpdateShortcutRequestSchema)` to create a new message.
 */
export const UpdateShortcutRequestSchema: GenMessage<UpdateShortcutRequest> = /*@__PURE__*/
  messageDesc(file_api_v1_shortcut_service, 5);

/**
 * @generated from message memos.api.v1.DeleteShortcutRequest
 */
export type DeleteShortcutRequest = Message<"memos.api.v1.DeleteShortcutRequest"> & {
  /**
   * Required. The resource name of the shortcut to delete.
   * Format: users/{user}/shortcuts/{shortcut}
   *
   * @generated from field: string name = 1;
   */
  name: string;
};

/**
 * Describes the message memos.api.v1.DeleteShortcutRequest.
 * Use `create(DeleteShortcutRequestSchema)` to create a new message.
 */
export const DeleteShortcutRequestSchema: GenMessage<DeleteShortcutRequest> = /*@__PURE__*/
  messageDesc(file_api_v1_shortcut_service, 6);

/**
 * @generated from service memos.api.v1.ShortcutService
 */
export const ShortcutService: GenService<{
  /**
   * ListShortcuts returns a list of shortcuts for a user.
   *
   * @generated from rpc memos.api.v1.ShortcutService.ListShortcuts
   */
  listShortcuts: {
    methodKind: "unary";
    input: typeof ListShortcutsRequestSchema;
    output: typeof ListShortcutsResponseSchema;
  },
  /**
   * GetShortcut gets a shortcut by name.
   *
   * @generated from rpc memos.api.v1.ShortcutService.GetShortcut
   */
  getShortcut: {
    methodKind: "unary";
    input: typeof GetShortcutRequestSchema;
    output: typeof ShortcutSchema;
  },
  /**
   * CreateShortcut creates a new shortcut for a user.
   *
   * @generated from rpc memos.api.v1.ShortcutService.CreateShortcut
   */
  createShortcut: {
    methodKind: "unary";
    input: typeof CreateShortcutRequestSchema;
    output: typeof ShortcutSchema;
  },
  /**
   * UpdateShortcut updates a shortcut for a user.
   *
   * @generated from rpc memos.api.v1.ShortcutService.UpdateShortcut
   */
  updateShortcut: {
    methodKind: "unary";
    input: typeof UpdateShortcutRequestSchema;
    output: typeof ShortcutSchema;
  },
  /**
   * DeleteShortcut deletes a shortcut for a user.
   *
   * @generated from rpc memos.api.v1.ShortcutService.DeleteShortcut
   */
  deleteShortcut: {
    methodKind: "unary";
    input: typeof DeleteShortcutRequestSchema;
    output: typeof EmptySchema;
  },
}> = /*@__PURE__*/
  serviceDesc(file_api_v1_shortcut_service, 0);

