Skip to content

chore: update googleapis commitish to 694f87c#13886

Open
cloud-java-bot wants to merge 2 commits into
mainfrom
update-librarian-googleapis-main
Open

chore: update googleapis commitish to 694f87c#13886
cloud-java-bot wants to merge 2 commits into
mainfrom
update-librarian-googleapis-main

Conversation

@cloud-java-bot

Copy link
Copy Markdown
Collaborator

Updated googleapis commitish in librarian.yaml to googleapis/googleapis@694f87c

💡 Note: If this PR is still open when the daily update workflow runs next, it will be closed and replaced with a new PR containing the latest updates.

@cloud-java-bot
cloud-java-bot requested review from a team as code owners July 24, 2026 05:30
@snippet-bot

snippet-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 165 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the Java Ad Manager client library by adding new service clients (CreativeSetServiceClient and SlateServiceClient), introducing several batch methods across existing clients (such as ContentBundleServiceClient, OrderServiceClient, and TargetingPresetServiceClient), and updating API documentation. The review feedback highlights a potential NullPointerException risk in the auto-generated clients where @nullable parameters are passed directly to Protobuf setters, suggesting an update to the code generator to handle null values safely.

Comment on lines +260 to +263
public final CreativeSet getCreativeSet(@Nullable CreativeSetName name) {
GetCreativeSetRequest request =
GetCreativeSetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return getCreativeSet(request);

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.

medium

The parameter name is annotated with @Nullable, indicating that null is a valid argument. However, if name is null, the expression name == null ? null : name.toString() evaluates to null, which is then passed directly to GetCreativeSetRequest.Builder.setName(null). In Protobuf Java, passing null to a string field setter throws a NullPointerException.

Since this file is auto-generated, please avoid editing it manually. Instead, the generator (gapic-generator-java) should be updated to handle nullable resource name parameters safely (for example, by only calling the setter if the value is non-null, or by using an empty string if appropriate).

References
  1. When annotating a method with @nullable, verify if any callers pass the returned value directly to APIs that do not accept nulls. If null checks are missing, they should be added or tracked for follow-up work.

Comment on lines +566 to +574
public final BatchActivateContentBundlesResponse batchActivateContentBundles(
@Nullable NetworkName parent, List<String> names) {
BatchActivateContentBundlesRequest request =
BatchActivateContentBundlesRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.addAllNames(names)
.build();
return batchActivateContentBundles(request);
}

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.

medium

The parameter parent is annotated with @Nullable, indicating that null is a valid argument. However, if parent is null, the expression parent == null ? null : parent.toString() evaluates to null, which is then passed directly to BatchActivateContentBundlesRequest.Builder.setParent(null). In Protobuf Java, passing null to a string field setter throws a NullPointerException.

Since this file is auto-generated, please avoid editing it manually. Instead, the generator (gapic-generator-java) should be updated to handle nullable resource name parameters safely (for example, by only calling the setter if the value is non-null, or by using an empty string if appropriate).

References
  1. When annotating a method with @nullable, verify if any callers pass the returned value directly to APIs that do not accept nulls. If null checks are missing, they should be added or tracked for follow-up work.

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.

1 participant