-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adding JsonToProtoMessage.java #400
feat: Adding JsonToProtoMessage.java #400
Conversation
4b83d6a
to
f337999
Compare
Codecov Report
@@ Coverage Diff @@
## master #400 +/- ##
============================================
+ Coverage 77.02% 77.82% +0.79%
- Complexity 576 623 +47
============================================
Files 55 56 +1
Lines 3391 3535 +144
Branches 193 234 +41
============================================
+ Hits 2612 2751 +139
- Misses 668 677 +9
+ Partials 111 107 -4
Continue to review full report at Codecov.
|
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...storage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessageTest.java
Outdated
Show resolved
Hide resolved
...storage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessageTest.java
Outdated
Show resolved
Hide resolved
cba9d39
to
3ea5b56
Compare
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
f601561
to
a107c68
Compare
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Show resolved
Hide resolved
...storage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessageTest.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Show resolved
Hide resolved
4e00901
to
4ffb726
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
...storage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessageTest.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...uerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessage.java
Outdated
Show resolved
Hide resolved
...storage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessageTest.java
Outdated
Show resolved
Hide resolved
…repeated types are optional
… int32 for BQDate)
…f json fields <= # of proto fields
…values first. This prevents catching unexpected JsonExceptions and blocking the actual error message.
ece766a
to
5a7c6b4
Compare
...storage/src/test/java/com/google/cloud/bigquery/storage/v1alpha2/JsonToProtoMessageTest.java
Outdated
Show resolved
Hide resolved
* test: attempt tests up to 3 times * chore: run formatter
Added JsonToProtoMessage.java which can convert json data to protocol buffer data given the protocol buffer descriptor.