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

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

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

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

  /**
   * @generated from field: string inbound_flight_id = 2;
   */
  inboundFlightId: string;

  /**
   * @generated from field: string outbound_flight_id = 3;
   */
  outboundFlightId: string;

  /**
   * @generated from field: Airport airport = 4;
   */
  airport?: Airport | undefined;

  /**
   * @generated from field: string user_id = 5;
   */
  userId: string;

  /**
   * @generated from field: Timestamp created_at = 6;
   */
  createdAt?: Timestamp | undefined;

  /**
   * @generated from field: Timestamp updated_at = 7;
   */
  updatedAt?: Timestamp | undefined;

  /**
   * @generated from field: Timestamp deleted_at = 8;
   */
  deletedAt?: Timestamp | undefined;

  /**
   * @generated from field: ConnectionTimes connection_times = 9;
   */
  connectionTimes?: ConnectionTimes | undefined;
};

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

/**
 * @generated from message ConnectionTimes
 */
export type ConnectionTimes = Message<"ConnectionTimes"> & {
  /**
   * @generated from field: int32 minimum_connection_time = 1;
   */
  minimumConnectionTime: number;

  /**
   * thresh between risky and tight
   *
   * @generated from field: int32 risky_threshold = 2;
   */
  riskyThreshold: number;

  /**
   * thresh between tight and normal
   *
   * @generated from field: int32 tight_threshold = 3;
   */
  tightThreshold: number;

  /**
   * thresh between normal and relaxed
   *
   * @generated from field: int32 normal_threshold = 4;
   */
  normalThreshold: number;
};

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

