Skip to content

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

Open
sofisl wants to merge 2 commits into
mainfrom
feat/language
Open

chore(Language): remove obsolete V1beta2 samples#9558
sofisl wants to merge 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
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.

1 participant