GeezerVison is showing github.com — Provide a way to unset blob metadata by mziccard · Pull Request #279 · googleapis/google-cloud-java
Conversation
This PR follows from #60 and provides a different solution from #276.
If blobInfo metadata are set to null then Data.nullOf(ImmutableEmptyMap.class) is used. This way patch is capable of unsetting the metadata if need be.
This PR also documents patch behavior in Blob and Storage javadocs, code snippets are added to show how to unset blob's metadata.
We could consider moving ImmutableEmptyMap out of BlobInfo, thoughts?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Good job, I like it and I think we should go with this option for fixing #60.
@mziccard What do you think?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@aozarov I agree, this is much cleaner than #276 and provides a reasonable way of circumventing #60. I'll take care of addressing all your comments.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- Use HashMap instead of ImmutableMap in builder.metadata
- Use Collections.unmodifiableMap in blobInfo.metadata getter
- Convert null values in metadata to Data.nullOf in blobInfo.toPb
- Add integration tests
- Add javadoc to mark BlobInfo.ImmutableEmptyMap as internal
aozarov
added a commit
that referenced
this pull request
Oct 23, 2015
Provide a way to unset blob metadata
chingor13
added a commit
that referenced
this pull request
Feb 24, 2026
* Add Signer for impersonatied credentials
* add lint fixes
* back to the future
* Update oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java
Co-Authored-By: Jeff Ching <[email protected]>
chingor13
added a commit
that referenced
this pull request
Mar 12, 2026
* Add Signer for impersonatied credentials
* add lint fixes
* back to the future
* Update oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java
Co-Authored-By: Jeff Ching <[email protected]>
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
meltsufin
pushed a commit
that referenced
this pull request
Apr 29, 2026
Since we have several deprecated method in the ITPubSubTest,
I think we can begin to migrate it to non-deprecated method one.
meltsufin
pushed a commit
that referenced
this pull request
May 1, 2026
Since we have several deprecated method in the ITPubSubTest,
I think we can begin to migrate it to non-deprecated method one.
benjaminp
pushed a commit
to benjaminp/google-cloud-java
that referenced
this pull request
Jul 13, 2026
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [com.google.api.grpc:grpc-google-common-protos](https://togithub.com/googleapis/java-iam) | minor | `1.17.0` -> `1.18.0` |
| [com.google.api.grpc:proto-google-common-protos](https://togithub.com/googleapis/java-iam) | minor | `1.17.0` -> `1.18.0` |
---
### Renovate configuration
:date: **Schedule**: At any time (no schedule defined).
:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-bigtable).
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
api: storage
Issues related to the Cloud Storage API.
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|