-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use pkg-config to discover well known types and hover on imports (
#53) A step closer...
- Loading branch information
Showing
23 changed files
with
231 additions
and
1,439 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[config] | ||
include_paths = ["sample", "src/workspace/input"] | ||
include_paths = ["src/workspace/input"] |
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,64 @@ | ||
syntax = "proto3"; | ||
|
||
// Import Google's Well-Known Types | ||
import "google/protobuf/timestamp.proto"; | ||
import "google/protobuf/duration.proto"; | ||
import "google/protobuf/empty.proto"; | ||
import "google/protobuf/struct.proto"; | ||
import "google/protobuf/any.proto"; | ||
|
||
package example; | ||
|
||
// Enum example | ||
enum Status { | ||
UNKNOWN = 0; | ||
ACTIVE = 1; | ||
INACTIVE = 2; | ||
} | ||
|
||
// Nested message example | ||
message Address { | ||
string street = 1; | ||
string city = 2; | ||
string state = 3; | ||
string zip_code = 4; | ||
} | ||
|
||
// Main message example | ||
message Person { | ||
// Scalar types | ||
string name = 1; | ||
int32 age = 2; | ||
bool is_verified = 3; | ||
|
||
// Repeated field (array) | ||
repeated string phone_numbers = 4; | ||
|
||
// Map example | ||
map<string, string> attributes = 5; | ||
|
||
// Enum field | ||
Status status = 6; | ||
|
||
// Nested message | ||
Address address = 7; | ||
|
||
// Oneof example | ||
oneof contact_method { | ||
string email = 8; | ||
string phone = 9; | ||
} | ||
|
||
// Google Well-Known Types | ||
google.protobuf.Timestamp last_updated = 10; | ||
google.protobuf.Duration session_duration = 11; | ||
google.protobuf.Empty metadata = 12; | ||
google.protobuf.Struct extra_data = 13; | ||
google.protobuf.Any any_data = 14; | ||
} | ||
|
||
// Service example | ||
service PersonService { | ||
rpc GetPerson(google.protobuf.Empty) returns (Person); | ||
rpc UpdatePerson(Person) returns (google.protobuf.Empty); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.