Skip to content

chore(Language): remove obsolete V1beta2 samples - #9558

Merged
bshaffer merged 2 commits into
mainfrom
feat/language
Aug 25, 2026
Merged

chore(Language): remove obsolete V1beta2 samples#9558
bshaffer merged 2 commits into
mainfrom
feat/language

Conversation

@sofisl

@sofisl sofisl commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

This PR removes obsolete sample files for Language that are no longer generated.

Testing Deletions

No core library classes were deleted in this PR, only orphaned sample files. The src/V1beta2 surface was already deleted in a prior PR, but its corresponding samples were mistakenly left behind.

Test Script:

<?php
require 'vendor/autoload.php';
echo "Testing client existence...\n";
if (class_exists('Google\Cloud\Language\V1beta2\LanguageServiceClient')) {
    echo "ERROR: LanguageServiceClient V1beta2 still exists!\n";
    exit(1);
} else {
    echo "SUCCESS: LanguageServiceClient V1beta2 does not exist.\n";
}

Output:

Testing client existence...
SUCCESS: LanguageServiceClient V1beta2 does not exist.

When the V1beta2 surface was previously deprecated and removed from google-cloud-php in PR #7385, OwlBot successfully deleted the core src/V1beta2 directory but failed to clean up the associated samples/V1beta2 directory. Librarian correctly removes these orphaned artifacts. There is no impact to the core client functionality since the underlying client code was already removed in the past.

For googleapis/librarian#7366

@sofisl
sofisl requested a review from a team as a code owner August 21, 2026 21:54
@snippet-bot

snippet-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to delete 7 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

@product-auto-label product-auto-label Bot added api: language Issues related to the Cloud Natural Language API API. samples Issues that are directly related to samples. labels Aug 21, 2026
@bshaffer
bshaffer merged commit 49e51a9 into main Aug 25, 2026
61 checks passed
@bshaffer
bshaffer deleted the feat/language branch August 25, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: language Issues related to the Cloud Natural Language API API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants