-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from tmc/support-optional
Support proto3 optional
- Loading branch information
Showing
11 changed files
with
123 additions
and
65 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
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
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
File renamed without changes.
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,42 @@ | ||
--- | ||
title: com.example.proto3 | ||
description: API Specification for the com.example.proto3 package. | ||
--- | ||
|
||
<a name="field_presence-proto"></a><p align="right"><a href="#top">Top</a></p> | ||
|
||
<!-- begin services --> | ||
|
||
<!-- begin services --> | ||
|
||
|
||
|
||
<a name="com-example-proto3-MyMessage"></a> | ||
|
||
### MyMessage | ||
|
||
|
||
|
||
|
||
|
||
| Field | Type | Description | | ||
| ----- | ---- | ----------- | | ||
| not_tracked |int32| | | ||
| tracked (optional) |int32| Explicit presence | | ||
|
||
|
||
|
||
|
||
<!-- end nested messages --> | ||
|
||
<!-- end nested enums --> | ||
|
||
|
||
<!-- end messages --> | ||
|
||
<!-- begin file-level enums --> | ||
<!-- end file-level enums --> | ||
|
||
<!-- begin file-level extensions --> | ||
<!-- end file-level extensions --> | ||
|
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,12 @@ | ||
// Encoding and show field presence. | ||
syntax = "proto3"; | ||
|
||
package com.example.proto3; | ||
|
||
option go_package = "example.com/vehicleproto3"; | ||
|
||
message MyMessage { | ||
int32 not_tracked = 1; | ||
// Explicit presence | ||
optional int32 tracked = 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
File renamed without changes.