// @generated by protoc-gen-es v2.12.0 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("Ch1hcGkvdjEvc2hvcnRjdXRfc2VydmljZS5wcm90bxIMbWVtb3MuYXBpLnYxIp4BCghTaG9ydGN1dBIRCgRuYW1lGAEgASgJQgPgQQgSEgoFdGl0bGUYAiABKAlCA+BBAhITCgZmaWx0ZXIYAyABKAlCA+BBATpW6kFTChVtZW1vcy5hcGkudjEvU2hvcnRjdXQSJXVzZXJzL3t1c2VybmFtZX0vc2hvcnRjdXRzL3tzaG9ydGN1dH0qCXNob3J0Y3V0czIIc2hvcnRjdXQiRQoUTGlzdFNob3J0Y3V0c1JlcXVlc3QSLQoGcGFyZW50GAEgASgJQh3gQQL6QRcSFW1lbW9zLmFwaS52MS9TaG9ydGN1dCJCChVMaXN0U2hvcnRjdXRzUmVzcG9uc2USKQoJc2hvcnRjdXRzGAEgAygLMhYubWVtb3MuYXBpLnYxLlNob3J0Y3V0IkEKEkdldFNob3J0Y3V0UmVxdWVzdBIrCgRuYW1lGAEgASgJQh3gQQL6QRcKFW1lbW9zLmFwaS52MS9TaG9ydGN1dCKRAQoVQ3JlYXRlU2hvcnRjdXRSZXF1ZXN0Ei0KBnBhcmVudBgBIA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Y3V0UmVxdWVzdBoWLm1lbW9zLmFwaS52MS5TaG9ydGN1dCJU2kEUc2hvcnRjdXQsdXBkYXRlX21hc2uC0+STAjc6CHNob3J0Y3V0MisvYXBpL3YxL3tzaG9ydGN1dC5uYW1lPXVzZXJzLyovc2hvcnRjdXRzLyp9EoABCg5EZWxldGVTaG9ydGN1dBIjLm1lbW9zLmFwaS52MS5EZWxldGVTaG9ydGN1dFJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiMdpBBG5hbWWC0+STAiQqIi9hcGkvdjEve25hbWU9dXNlcnMvKi9zaG9ydGN1dHMvKn1CrAEKEGNvbS5tZW1vcy5hcGkudjFCFFNob3J0Y3V0U2VydmljZVByb3RvUAFaMGdpdGh1Yi5jb20vdXNlbWVtb3MvbWVtb3MvcHJvdG8vZ2VuL2FwaS92MTthcGl2MaICA01BWKoCDE1lbW9zLkFwaS5WMcoCDE1lbW9zXEFwaVxWMeICGE1lbW9zXEFwaVxWMVxHUEJNZXRhZGF0YeoCDk1lbW9zOjpBcGk6OlYxYgZwcm90bzM", [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/{username}/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/{username}
   *
   * @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/{username}/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/{username}
   *
   * @generated from field: string parent = 1;
   */
  parent: string;

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

  /**
   * 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 | undefined;

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

/**
 * 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/{username}/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);

