Skip to content

feat: Update UASLAgentService proto definitions - #14

Open
anishdhakal15 wants to merge 1 commit into
developfrom
feature/uasl_system_mvp2_support
Open

feat: Update UASLAgentService proto definitions#14
anishdhakal15 wants to merge 1 commit into
developfrom
feature/uasl_system_mvp2_support

Conversation

@anishdhakal15

Copy link
Copy Markdown
Member

Migrated apis from airway_agent service
2025/mvp2 support

Migrated apis from airway_agent service
2025/mvp2 support

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates UASLAgentService proto definitions to migrate APIs from the former airway agent service and add 2025/mvp2 support for UASL reservation retrieval, UASL registration, and assigned-UASL lookup.

Changes:

  • Added UASL reservation list/detail RPCs and associated request/response messages.
  • Added UASL registration RPC/message schema (including waypoint/segment and external system linkage fields).
  • Added GetAssignedUasl RPC and response schema for assigned section details.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +146 to +149
string flight_purpose = 3;
// 予約ステータス
Status status = 4;
// 見積もり合計金額(税込)
Comment on lines +182 to +184
// RFC3339形式の日時文字列
optional google.protobuf.Timestamp start_at = 4;
// RFC3339形式の日時文字列
rpc GetAssignedUasl(GetAssignedUaslRequest) returns (GetAssignedUaslResponse){
option (google.api.http) = {
// GETリクエストとして定義。クエリパラメータで uasl_id を指定する形式となります。
// 例: /uasl_agent/get_assigned_uasl?uasl_id.uasl_systems_uasl_id=123&uasl_id.uasl_system_id=1
// ただし、外部システムの既存航路に接続するときは設定しない。
optional string external_point_id = 4;
// information related to create uasl point
repeated UaslPointSegment uasl_point_segment = 5;
}
message GetAssignedUaslResponse {
// 管理組織ID
int64 organization_id = 1;
RESERVATION_STATUS_UNSPECIFIED = 0;
// 予約完了
RESERVATION_STATUS_RESERVED = 1;
// 予約失敗
@HarutakaMatsumoto HarutakaMatsumoto added the enhancement New feature or request label May 12, 2026

@HarutakaMatsumoto HarutakaMatsumoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed this pull request in the middle.
Please check it.

// repeated string uasl_section_ids = 5;
// }
enum Standard {
ALTITUDE_ATTR_UNSPECIFIED = 0 ;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not conform to https://protobuf.dev/programming-guides/style/#enums.
Please follow that guide.

// }
enum Standard {
ALTITUDE_ATTR_UNSPECIFIED = 0 ;
RELATIVE= 1; // 離陸地点を基準とする相対高度。ItemParameterにより使用可

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This protocol does not have ItemParameter.
Remove ItemParameter.

// UASL予約ID
optional string uasl_reservation_id = 2;
// 予約開始日時
optional google.protobuf.Timestamp start_at = 6;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// 予約開始日時
optional google.protobuf.Timestamp start_at = 6;
// 予約終了日時
optional google.protobuf.Timestamp end_at = 8;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// 見積もり合計金額(税込)
optional int32 total_amount = 5;
// 予約確定日時(確定していない場合は空)
google.protobuf.Timestamp reserved_at = 6;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// 使用種別
PortUsageType usage_type = 3;
// ポート予約開始時刻
google.protobuf.Timestamp start_at = 4;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// ポート予約開始時刻
google.protobuf.Timestamp start_at = 4;
// ポート予約終了時刻
google.protobuf.Timestamp end_at = 5;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string reasons = 5;

enum FailureType {
FAILURE_TYPE_UNSPECIFIED = 0; // null/OK

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This enumeration type includes "OK," so the name "Failure*" is inappropriate.
Please rename it.

AircraftInfo aircraft_info = 2;
// 適合性評価結果 true : 適合性評価結果OK false: 適合性評価結果NG
bool evaluation_results = 3;
// 適合性評価結果がNGの場合の種別

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field can be "OK", so this comment is incorrect.
Please remove "NGの場合".

bool evaluation_results = 3;
// 適合性評価結果がNGの場合の種別
FailureType type = 4;
// 適合性評価結果がNGの場合の詳細

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants