feat(storage): Simulate object custom contexts#764
Merged
xlai20 merged 8 commits intogoogleapis:mainfrom Feb 25, 2026
Merged
Conversation
090d731 to
70ef0a5
Compare
7403fca to
36cfd1f
Compare
v-pratap
reviewed
Feb 23, 2026
ee4b618 to
ae2f5e2
Compare
v-pratap
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
b/457332685
This simulates the Json and gRPC responses for object contexts, which
will be helpful in gcp c++ integration tests in gcp c++ feature implementation:
Based on responses observed from real backend and API definition,
Insert or Complete Update
Input: {contexts: {custom: {key: value}}}
Update_mask: contexts
Simulation: Add new entries to the object.contexts and furnish with create_time and update_time
Patch (Update an existing key)
Input: {contexts: {custom: {key: new-value}}}
Update_mask: contexts.custom.key
Simulation: Update the value of the key to "new-value" and furnish with update_time
Patch (Delete an existing key)
Input: {contexts: {custom: {key: null}}}
Update_mask: contexts.custom.key
Simulation: Delete that entry with that key from object.contexts
Patch (Delete all the contexts)
Input: {contexts: {custom: null}}
Update_mask: contexts:custom
Simulation: Delete the contexts field from object, making that object looks like its default