// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated from file services/sync.proto (syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
import type { Pagination, Timestamp } from "../common_pb";
import { file_common } from "../common_pb";
import type { Entity } from "../entity_pb";
import { file_entity } from "../entity_pb";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file services/sync.proto.
 */
export const file_services_sync: GenFile = /*@__PURE__*/
  fileDesc("ChNzZXJ2aWNlcy9zeW5jLnByb3RvIi8KC1N5bmNSZXF1ZXN0EiAKC3N5bmNfdXBkYXRlGAEgASgLMgsuU3luY1VwZGF0ZSJ5CgpTeW5jVXBkYXRlEh0KCXRpbWVzdGFtcBgBIAEoCzIKLlRpbWVzdGFtcBImCg51cGRhdGVfc2hhcmluZxgHIAEoCzIOLlVwZGF0ZVNoYXJpbmcSJAoNZGVsZXRlX2ZsaWdodBgLIAEoCzINLkRlbGV0ZUZsaWdodCIzCg1VcGRhdGVTaGFyaW5nEg8KB3VzZXJfaWQYASABKAkSEQoJaXNfcGF1c2VkGAIgASgIIhoKDERlbGV0ZUZsaWdodBIKCgJpZBgBIAEoCSJHCgxTeW5jUmVzcG9uc2USHwoKcGFnaW5hdGlvbhgBIAEoCzILLlBhZ2luYXRpb24SFgoFaXRlbXMYAiADKAsyBy5FbnRpdHliBnByb3RvMw", [file_common, file_entity]);

/**
 * @generated from message SyncRequest
 */
export type SyncRequest = Message<"SyncRequest"> & {
  /**
   * @generated from field: SyncUpdate sync_update = 1;
   */
  syncUpdate?: SyncUpdate | undefined;
};

/**
 * Describes the message SyncRequest.
 * Use `create(SyncRequestSchema)` to create a new message.
 */
export const SyncRequestSchema: GenMessage<SyncRequest> = /*@__PURE__*/
  messageDesc(file_services_sync, 0);

/**
 * @generated from message SyncUpdate
 */
export type SyncUpdate = Message<"SyncUpdate"> & {
  /**
   * @generated from field: Timestamp timestamp = 1;
   */
  timestamp?: Timestamp | undefined;

  /**
   * @generated from field: UpdateSharing update_sharing = 7;
   */
  updateSharing?: UpdateSharing | undefined;

  /**
   * @generated from field: DeleteFlight delete_flight = 11;
   */
  deleteFlight?: DeleteFlight | undefined;
};

/**
 * Describes the message SyncUpdate.
 * Use `create(SyncUpdateSchema)` to create a new message.
 */
export const SyncUpdateSchema: GenMessage<SyncUpdate> = /*@__PURE__*/
  messageDesc(file_services_sync, 1);

/**
 * @generated from message UpdateSharing
 */
export type UpdateSharing = Message<"UpdateSharing"> & {
  /**
   * @generated from field: string user_id = 1;
   */
  userId: string;

  /**
   * @generated from field: bool is_paused = 2;
   */
  isPaused: boolean;
};

/**
 * Describes the message UpdateSharing.
 * Use `create(UpdateSharingSchema)` to create a new message.
 */
export const UpdateSharingSchema: GenMessage<UpdateSharing> = /*@__PURE__*/
  messageDesc(file_services_sync, 2);

/**
 * @generated from message DeleteFlight
 */
export type DeleteFlight = Message<"DeleteFlight"> & {
  /**
   * @generated from field: string id = 1;
   */
  id: string;
};

/**
 * Describes the message DeleteFlight.
 * Use `create(DeleteFlightSchema)` to create a new message.
 */
export const DeleteFlightSchema: GenMessage<DeleteFlight> = /*@__PURE__*/
  messageDesc(file_services_sync, 3);

/**
 * @generated from message SyncResponse
 */
export type SyncResponse = Message<"SyncResponse"> & {
  /**
   * @generated from field: Pagination pagination = 1;
   */
  pagination?: Pagination | undefined;

  /**
   * @generated from field: repeated Entity items = 2;
   */
  items: Entity[];
};

/**
 * Describes the message SyncResponse.
 * Use `create(SyncResponseSchema)` to create a new message.
 */
export const SyncResponseSchema: GenMessage<SyncResponse> = /*@__PURE__*/
  messageDesc(file_services_sync, 4);

