Skip to content

Conversation

@mziccard
Copy link
Contributor

@mziccard mziccard commented Jul 6, 2016

This PR adds a Payload class with 3 subclasses, one for each possible payload: UTF8 string, JSON, and protobuf object.

JsonPayload is also exposed as a Map<String, Object> (along with protobuf's Struct) to be friendlier to users and to be consistent with what we do in other parts of the library. Structs class contains utility methods to convert from Struct to Map<String, Object> and back.

@mziccard mziccard added the api: logging Issues related to the Cloud Logging API. label Jul 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 6, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 84.255% when pulling 3825e87 on mziccard:logging-payload into 48971b2 on GoogleCloudPlatform:logging-alpha.

@mziccard
Copy link
Contributor Author

mziccard commented Jul 6, 2016

/cc @lesv

@lesv
Copy link
Contributor

lesv commented Jul 6, 2016

I'm happy w/ what is there, but I would expect that something that mentions testing JSON to actually have some raw JSON to either start or compare against. The same could be said of the Struct testing as well.

If you disagree, feel free to merge.

@mziccard mziccard merged commit 99a4a16 into googleapis:logging-alpha Jul 11, 2016
mziccard added a commit to mziccard/gcloud-java that referenced this pull request Jul 20, 2016
chingor13 pushed a commit that referenced this pull request Jan 6, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Jan 22, 2026
This PR consists of cherry picks from the https://togithub.com/googleapis/java-datastore/tree/multi-db branch. They include:

#928 
#940 
#942 

This also enables parameterized testing for ITDatastoreTest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants