-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
135 additions
and
100 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
19 changes: 19 additions & 0 deletions
19
vertx-codegen-protobuf/src/main/java/io/vertx/codegen/protobuf/ProtobufEncodingMode.java
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,19 @@ | ||
package io.vertx.codegen.protobuf; | ||
|
||
/** | ||
* Enumeration representing different encoding modes for Protocol Buffers encoding. | ||
*/ | ||
public enum ProtobufEncodingMode { | ||
/** | ||
* In this encoding mode, the converter uses a non-standard protobuf encoding to allow boxed types | ||
* (e.g., Integer, Double) and String to be nullable. This encoding mode is intended for use when | ||
* communicating with another Vert.x converter that supports nullable values. | ||
*/ | ||
VERTX_NULLABLE, | ||
|
||
/** | ||
* In this encoding mode, the converter uses the standard protobuf encoding, which is compatible with | ||
* Google's protobuf decoder. Null values are not allowed for boxed types and String in this mode. | ||
*/ | ||
GOOGLE_COMPATIBLE, | ||
} |
Oops, something went wrong.