* formats: Add support for protobuf format
Adds support for the Protocol Buffer CloudEvent format defined at
https://github.com/cloudevents/spec/blob/v1.0.1/protobuf-format.md.
Compiles the Proto3 file taken from the spec repo into generated Java
protobuf classes. These classes are used to convert the SDK
representation of a CloudEvent to and from the protobuf format.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Address feedback in PR #348
- Adds service file for event format autoloading
- Addresses some field access issues
- Treats unset fields as omitted
- Updates and adds documentation
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Add missing attribute writer methods for CloudEventBuilders
Without these methods, binary attributes are interpreted as
Strings instead of byte[].
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Added test data files.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* - Now executes tests related to wire-format files.
- Supports V03 dialect
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* - Added new ProtoCloudEventData construct to support proto message based data.
- Added some more test files.
- When the PR related to binary context attributes is merged we can extend the
test use-cases appropriately.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* - Merged changes related to binary context attributes.
- Modified proto format to process binary context attributes
- Added CloudEventData varient to hold proto messages (requires tests)
- Will add further tests once the failing test is addressed
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Added test for protobuf data
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Indicate that v0.3 events are supported by Protobuf Format
Even though the protobuf spec came out for v1, the attributes are
fairly easily mapped back to v0.3.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Add missing comments; fix formatting; minor refactoring
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Create a full Protobuf CloudEventWriter
Converts the ProtoContextWriter class to a ProtoCloudEventWriter class
and modifies the format code to use it instead of manually writing
data to the output.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* - Addressed Review Comments.
- Introduced a default ProtoDataWrapper
- Tests updated.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Address Review Comments
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Test cleanup and timezone testing
This does some tweaking to tests by moving to using assertj and fixing
whitespace. It also adds a new test to ensure that timezones are handled
correctly.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Formatting cleanup
- Remove unecessary whitespace
- Fix Javadocs
- Delete unused code
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
Co-authored-by: Day, Jeremy(jday) <jday@paypal.com>
* Halfway through it
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* That should be it
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Prettier run
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Removed code sample
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Suggestions + fixed up the mess made by prettier
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Suggestion
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added readme
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Improved the quarkus example
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added amqp proton
Fixed and added stuff to the root readme
Added link to examples readme to the main readme
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Enabled editorconfig check
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Run editorconfig + a bunch of exclusions
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added javadocs links both to READMEs and docs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Removed old docs of v1 of the sdk
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Improved a bit the docs
Changed the docs website theme
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Using constants
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Reorganized some READMEs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Suggestions
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Progress
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Last fix
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Proposed set of apis for CloudEvent
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Changes
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Javadocs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Removed CloudEventBuilder.java
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Nits
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* WIP kafka
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Worked on some abstractions to simplify implementation of Message
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Reworked kafka module
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Applied suggestions + documented Kafka module usage
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Renaming
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Docs fix
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* small fixes
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* small fixes
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Started http-vertx module reworking
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Vertx integration done
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Adjusted the READMEs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Case sensitivity fix
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Changed version to 2.0.0-SNAPSHOT
Changed the README for the V2 to specify the sdk is currently under development
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fixed poms
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fixed json-jackson pom
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>