Skip to content

Conversation

@hectorcast-db
Copy link
Contributor

@hectorcast-db hectorcast-db commented Oct 7, 2025

What changes are proposed in this pull request?

Add Well Known Types serialization utils. This PR configures the default ObjectMapper for the Java SDK to serialize the Google Well Known Types:
https://protobuf.dev/reference/protobuf/google.protobuf/

For Duration and Timestamp, we use the official protojson serialization. For FieldMask, we do introduce a custom serialization since the Google FieldMask serialization is not aligned with the expected server values.

How is this tested?

Added unit tests.

NO_CHANGELOG=true

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 518
  • Commit SHA: edeb8c25e4f2155e8f735a0401c7b29068b1807a

Checks will be approved automatically on success.

@Tejas-Kochar Tejas-Kochar self-requested a review October 8, 2025 14:21
Copy link

@Tejas-Kochar Tejas-Kochar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hectorcast-db hectorcast-db added this pull request to the merge queue Oct 17, 2025
Merged via the queue into main with commit 23b4016 Oct 17, 2025
16 checks passed
@hectorcast-db hectorcast-db deleted the hectorcast-db/field-mask branch October 17, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants