-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes to compiler protocol (#493)
- Protocol fixes - Adding copyright - Removing old jackson annotations
- Loading branch information
1 parent
d66f94a
commit 9f89f06
Showing
7 changed files
with
185 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
protocol-compiler/src/main/protobuf/com/rawlabs/protocol/compiler/completions.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* Copyright 2024 RAW Labs S.A. | ||
* | ||
* Use of this software is governed by the Business Source License | ||
* included in the file licenses/BSL.txt. | ||
* | ||
* As of the Change Date specified in that file, in accordance with | ||
* the Business Source License, use of this software will be governed | ||
* by the Apache License, Version 2.0, included in the file | ||
* licenses/APL.txt. | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
option java_package = "com.rawlabs.protocol.compiler"; | ||
option java_multiple_files = true; | ||
|
||
import "com/rawlabs/protocol/compiler/docs.proto"; | ||
|
||
package com.rawlabs.protocol.compiler; | ||
|
||
message Completion { | ||
oneof completion { | ||
TypeCompletion type = 1; | ||
FieldCompletion field = 2; | ||
LetBindCompletion letBind = 3; | ||
LetFunCompletion letFun = 4; | ||
LetFunRecCompletion letFunRec = 5; | ||
FunParamCompletion funParam = 6; | ||
PackageCompletion package = 7; | ||
EntryCompletion entry = 8; | ||
} | ||
} | ||
|
||
message TypeCompletion { | ||
string name = 1; | ||
string type = 2; | ||
} | ||
|
||
message FieldCompletion { | ||
string name = 1; | ||
string type = 2; | ||
} | ||
|
||
message LetBindCompletion { | ||
string name = 1; | ||
string type = 2; | ||
} | ||
|
||
message LetFunCompletion { | ||
string name = 1; | ||
string type = 2; | ||
} | ||
|
||
message LetFunRecCompletion { | ||
string name = 1; | ||
string type = 2; | ||
} | ||
|
||
message FunParamCompletion { | ||
string name = 1; | ||
string type = 2; | ||
} | ||
|
||
message PackageCompletion { | ||
string name = 1; | ||
PackageDoc doc = 2; | ||
} | ||
|
||
message EntryCompletion { | ||
string name = 1; | ||
EntryDoc doc = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.