Skip to content

Add Well Known Types serialization utils#518

Merged
hectorcast-db merged 1 commit into
mainfrom
hectorcast-db/field-mask
Oct 17, 2025
Merged

Add Well Known Types serialization utils#518
hectorcast-db merged 1 commit into
mainfrom
hectorcast-db/field-mask

Conversation

@hectorcast-db

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

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

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.

@tejaskochar-db tejaskochar-db left a comment

Copy link
Copy Markdown
Contributor

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.

3 participants