Skip to content

chore: update googleapis commitish to 437254f - #13895

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

chore: update googleapis commitish to 437254f#13895
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@437254f

💡 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 26, 2026 05:41
@snippet-bot

snippet-bot Bot commented Jul 26, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 173 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 introduces new service clients (CreativeSetServiceClient and SlateServiceClient) and adds batch methods (such as batchActivateContentBundles and batchUpdateTargetingPresets) to existing clients, alongside Javadoc documentation updates. A critical issue was identified across the newly added and modified client methods: parameters annotated with @Nullable are passed to protobuf builders via name == null ? null : name.toString(), which will throw a NullPointerException at runtime if null is passed. Since these clients are auto-generated, the generator or source metadata should be updated to resolve this pattern globally.

Comment on lines +256 to +260
* @param name Required. The resource name of the CreativeSet. Format:
* `networks/{network_code}/creativeSets/{creative_set_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CreativeSet getCreativeSet(@Nullable CreativeSetName name) {

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 it can be null. However, if null is passed, name == null ? null : name.toString() evaluates to null, and passing null to the protobuf builder's setName() method will throw a NullPointerException because protobuf string setters do not accept null values.

To prevent this, we should only call setName() if name is not null. Since this is an auto-generated file, please ensure the generator or source metadata is updated to address this pattern across all generated clients rather than editing this file manually.

Suggested change
* @param name Required. The resource name of the CreativeSet. Format:
* `networks/{network_code}/creativeSets/{creative_set_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final CreativeSet getCreativeSet(@Nullable CreativeSetName name) {
public final CreativeSet getCreativeSet(@Nullable CreativeSetName name) {
GetCreativeSetRequest.Builder builder = GetCreativeSetRequest.newBuilder();
if (name != null) {
builder.setName(name.toString());
}
return getCreativeSet(builder.build());
}
References
  1. Avoid manually editing auto-generated files because changes will be overwritten. Modify the generator or the source metadata instead.

Comment on lines +321 to +325
*
* @param name Required. The resource name of the Slate to retrieve. Format:
* `networks/{network_code}/slates/{slate_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/

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 it can be null. However, if null is passed, name == null ? null : name.toString() evaluates to null, and passing null to the protobuf builder's setName() method will throw a NullPointerException because protobuf string setters do not accept null values.

To prevent this, we should only call setName() if name is not null. Since this is an auto-generated file, please ensure the generator or source metadata is updated to address this pattern across all generated clients rather than editing this file manually.

Suggested change
*
* @param name Required. The resource name of the Slate to retrieve. Format:
* `networks/{network_code}/slates/{slate_id}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Slate getSlate(@Nullable SlateName name) {
GetSlateRequest.Builder builder = GetSlateRequest.newBuilder();
if (name != null) {
builder.setName(name.toString());
}
return getSlate(builder.build());
}
References
  1. Avoid manually editing auto-generated files because changes will be overwritten. Modify the generator or the source metadata instead.

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 it can be null. However, if null is passed, parent == null ? null : parent.toString() evaluates to null, and passing null to the protobuf builder's setParent() method will throw a NullPointerException because protobuf string setters do not accept null values.

To prevent this, we should only call setParent() if parent is not null. Since this is an auto-generated file, please ensure the generator or source metadata is updated to address this pattern across all generated clients rather than editing this file manually.

Suggested change
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);
}
public final BatchActivateContentBundlesResponse batchActivateContentBundles(
@Nullable NetworkName parent, List<String> names) {
BatchActivateContentBundlesRequest.Builder builder =
BatchActivateContentBundlesRequest.newBuilder();
if (parent != null) {
builder.setParent(parent.toString());
}
builder.addAllNames(names);
return batchActivateContentBundles(builder.build());
}
References
  1. Avoid manually editing auto-generated files because changes will be overwritten. Modify the generator or the source metadata instead.

Comment on lines +999 to +1007
public final BatchUpdateTargetingPresetsResponse batchUpdateTargetingPresets(
@Nullable NetworkName parent, List<UpdateTargetingPresetRequest> requests) {
BatchUpdateTargetingPresetsRequest request =
BatchUpdateTargetingPresetsRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.addAllRequests(requests)
.build();
return batchUpdateTargetingPresets(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 it can be null. However, if null is passed, parent == null ? null : parent.toString() evaluates to null, and passing null to the protobuf builder's setParent() method will throw a NullPointerException because protobuf string setters do not accept null values.

To prevent this, we should only call setParent() if parent is not null. Since this is an auto-generated file, please ensure the generator or source metadata is updated to address this pattern across all generated clients rather than editing this file manually.

Suggested change
public final BatchUpdateTargetingPresetsResponse batchUpdateTargetingPresets(
@Nullable NetworkName parent, List<UpdateTargetingPresetRequest> requests) {
BatchUpdateTargetingPresetsRequest request =
BatchUpdateTargetingPresetsRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.addAllRequests(requests)
.build();
return batchUpdateTargetingPresets(request);
}
public final BatchUpdateTargetingPresetsResponse batchUpdateTargetingPresets(
@Nullable NetworkName parent, List<UpdateTargetingPresetRequest> requests) {
BatchUpdateTargetingPresetsRequest.Builder builder =
BatchUpdateTargetingPresetsRequest.newBuilder();
if (parent != null) {
builder.setParent(parent.toString());
}
builder.addAllRequests(requests);
return batchUpdateTargetingPresets(builder.build());
}
References
  1. Avoid manually editing auto-generated files because changes will be overwritten. Modify the generator or the source metadata instead.

@cloud-java-bot
cloud-java-bot deleted the update-librarian-googleapis-main branch July 27, 2026 04:17
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