Method | Description | |
---|---|---|
__construct ( array $config = [] ) | Pass in an array of configuration options which will be shared between clients. | |
bigQuery ( array $config = [] ) : |
Google Cloud BigQuery client. Allows you to create, manage, share and query data. Find more information at Google Cloud BigQuery Docs. | |
datastore ( array $config = [] ) : |
Google Cloud Datastore client. Cloud Datastore is a highly-scalable NoSQL database for your applications. Find more information at Google Cloud Datastore docs. | |
logging ( array $config = [] ) : |
Google Stackdriver Logging client. Allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform and Amazon Web Services. Find more information at Google Stackdriver Logging docs. | |
naturalLanguage ( array $config = [] ) : |
Google Cloud Natural Language client. Provides natural language understanding technologies to developers, including sentiment analysis, entity recognition, and syntax analysis. Currently only English, Spanish, and Japanese textual context are supported. Find more information at Google Cloud Natural Language docs. | |
pubsub ( array $config = [] ) : |
Google Cloud Pub/Sub client. Allows you to send and receive messages between independent applications. Find more information at Google Cloud Pub/Sub docs. | |
speech ( array $config = [] ) : |
Google Cloud Speech client. Enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text transcription from the Cloud Speech API service. Find more information at Google Cloud Speech API docs. | |
storage ( array $config = [] ) : |
Google Cloud Storage client. Allows you to store and retrieve data on Google's infrastructure. Find more information at Google Cloud Storage API docs. | |
translate ( array $config = [] ) : |
Google Translate client. Provides the ability to dynamically translate text between thousands of language pairs. The Google Translate API lets websites and programs integrate with Google Translate API programmatically. Google Translate API is available as a paid service. | |
vision ( array $config = [] ) : |
Google Cloud Vision client. Allows you to understand the content of an image, classify images into categories, detect text, objects, faces and more. Find more information at Google Cloud Vision docs. |
Method | Description | |
---|---|---|
resolveConfig ( array $config ) : array | Resolves configuration options. |
public __construct ( array $config = [] ) | ||
$config | array | [optional] { Configuration options. @type string $projectId The project ID from the Google Developer's Console. @type CacheItemPoolInterface $authCache A cache for storing access tokens. **Defaults to** a simple in memory implementation. @type array $authCacheOptions Cache configuration options. @type callable $authHttpHandler A handler used to deliver Psr7 requests specifically for authentication. @type callable $httpHandler A handler used to deliver Psr7 requests. Only valid for requests sent over REST. @type string $keyFile The contents of the service account credentials .json file retrieved from the Google Developer's Console. @type string $keyFilePath The full path to your service account credentials .json file retrieved from the Google Developers Console. @type int $retries Number of retries for a failed request. **Defaults to** `3`. @type array $scopes Scopes to be used for the request. } |
public bigQuery ( array $config = [] ) : |
||
$config | array | [optional] { Configuration options. See {@see \Google\Cloud\ServiceBuilder::__construct()} for the other available options. @type bool $returnInt64AsObject If true, 64 bit integers will be returned as a {@see \Google\Cloud\Int64} object for 32 bit platform compatibility. **Defaults to** false. |
return |
public datastore ( array $config = [] ) : |
||
$config | array | [optional] { Configuration options. See {@see \Google\Cloud\ServiceBuilder::__construct()} for the other available options. @type bool $returnInt64AsObject If true, 64 bit integers will be returned as a {@see \Google\Cloud\Int64} object for 32 bit platform compatibility. **Defaults to** false. |
return |
public naturalLanguage ( array $config = [] ) : |
||
$config | array | [optional] Configuration options. See {@see \Google\Cloud\ServiceBuilder::__construct()} for the available options. |
return |
public pubsub ( array $config = [] ) : |
||
$config | array | [optional] { Configuration options. See {@see \Google\Cloud\ServiceBuilder::__construct()} for the other available options. @type string $transport The transport type used for requests. May be either `grpc` or `rest`. **Defaults to** `grpc` if gRPC support is detected on the system. |
return |
public translate ( array $config = [] ) : |
||
$config | array | [optional] { Configuration options. @type string $key A public API access key. @type string $target The target language to assign to the client. Defaults to `en` (English). @type callable $httpHandler A handler used to deliver Psr7 requests. Only valid for requests sent over REST. @type int $retries Number of retries for a failed request. **Defaults to** `3`. } |
return |