Google Cloud Document AI namespace issue

I'm currently working on a project that involves using the Google Cloud Document AI Client Library in my PHP application.

However, I've encountered an issue with the library's namespace that's been causing some trouble.

The Problem: The official documentation for the Google Cloud Document AI Client Library specifies the following namespace: Google\Cloud\DocumentAI\V1

As I understand, this is consistent with the usual naming conventions for Google Cloud libraries. However, when I try to check this namespace is correct using the following

class_exists('Google\Cloud\DocumentAI\V1\DocumentServiceClient')

The above returns false.

What I've Tried: I have double-checked the library installation, and it appears to be correctly installed in my project's vendor directory. I have cleared any cached files using composer dump-autoload, but the issue persists.

Can anyone help me understand why I might be encountering this issue and how to resolve it? Any suggestions you can share would be greatly appreciated.

1 1 142
1 REPLY 1

การปรับใช้ Google Cloud