Skip to content

Conversation

@rajuGT
Copy link

@rajuGT rajuGT commented Nov 3, 2025

This handler treats Value as a plain string:

  • Converts between String and Value
  • Ignores nested structures (STRUCT_VALUE, LIST_VALUE)
  • Useful as a lightweight workaround to recursion in google.protobuf.Value

 * There are two concerns with google.protobuf.Value type
 * 1. It has cyclic reference - https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/struct.proto#L94
 * 2. oneof usage; i.e. It has no specific type information, every message can be of different type
 *  - https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/struct.proto#L64
 *
 * <p>This handler treats {@link Value} as a plain string:
 * - Converts between String and Value
 * - Ignores nested structures (STRUCT_VALUE, LIST_VALUE)
 * - Useful as a lightweight workaround to recursion in google.protobuf.Value
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.

2 participants