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

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

/**
 * Describes the file entities/airport.proto.
 */
export const file_entities_airport: GenFile = /*@__PURE__*/
  fileDesc("ChZlbnRpdGllcy9haXJwb3J0LnByb3RvIqwCCgdBaXJwb3J0EgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSDAoEaWF0YRgDIAEoCRIMCgRpY2FvGAQgASgJEhAKCHRpbWV6b25lGAUgASgJEh4KCGxvY2F0aW9uGAYgASgLMgwuQ29vcmRpbmF0ZXMSDAoEY2l0eRgHIAEoCRIPCgdjb3VudHJ5GAggASgJEhQKDGNvdW50cnlfY29kZRgJIAEoCRIOCgZyZWdpb24YCiABKAkSEQoJcmVsZXZhbmNlGAsgASgFEhsKB2NyZWF0ZWQYDCABKAsyCi5UaW1lc3RhbXASIAoMbGFzdF91cGRhdGVkGA0gASgLMgouVGltZXN0YW1wEg8KB3dlYnNpdGUYDyABKAkSEQoJY2l0eV9jb2RlGBAgASgJYgZwcm90bzM", [file_common]);

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

  /**
   * e.g. "Hong Kong Intl."
   *
   * @generated from field: string name = 2;
   */
  name: string;

  /**
   * e.g. "HKG"
   *
   * @generated from field: string iata = 3;
   */
  iata: string;

  /**
   * e.g. "VHHH"
   *
   * @generated from field: string icao = 4;
   */
  icao: string;

  /**
   * IANA tz e.g. "Asia/Hong_Kong"
   *
   * @generated from field: string timezone = 5;
   */
  timezone: string;

  /**
   * @generated from field: Coordinates location = 6;
   */
  location?: Coordinates | undefined;

  /**
   * @generated from field: string city = 7;
   */
  city: string;

  /**
   * @generated from field: string country = 8;
   */
  country: string;

  /**
   * ISO 2-letter e.g. "HK"
   *
   * @generated from field: string country_code = 9;
   */
  countryCode: string;

  /**
   * e.g. "Asia"
   *
   * @generated from field: string region = 10;
   */
  region: string;

  /**
   * search ranking weight
   *
   * @generated from field: int32 relevance = 11;
   */
  relevance: number;

  /**
   * @generated from field: Timestamp created = 12;
   */
  created?: Timestamp | undefined;

  /**
   * @generated from field: Timestamp last_updated = 13;
   */
  lastUpdated?: Timestamp | undefined;

  /**
   * @generated from field: string website = 15;
   */
  website: string;

  /**
   * e.g. "Hong Kong HKG"
   *
   * @generated from field: string city_code = 16;
   */
  cityCode: string;
};

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

