Tim Burks c862de3a12 Update plugin and examples to use 0.3.0 client-creation interface. 8 years ago
..
Sources c862de3a12 Update plugin and examples to use 0.3.0 client-creation interface. 8 years ago
Makefile ab7466fd02 Remove more files in "make clean" actions. 8 years ago
Package.swift c862de3a12 Update plugin and examples to use 0.3.0 client-creation interface. 8 years ago
README.md 890b46e286 Update README for Datastore example. 8 years ago
RUNME f3926c5c6a Change access level for generated classes and methods from "public" to "internal". 8 years ago

README.md

Calling the Google Cloud Datastore API

This directory contains a very simple sample that calls the Google Cloud Datastore API. Calls are made directly to the Datastore RPC interface. In practice, these would be wrapped in idiomatic code.

Use RUNME to generate the necessary Protocol Buffer and gRPC support code. It uses protoc and the Swift Protocol Buffer and gRPC plugins, so please be sure these are in your path. The plugins can be built by running make in the top-level Plugins directory.

Calls require a Google project ID and service account credentials.

To create a project ID, visit the Google Cloud Console.

Service account support is provided by Google's Auth Library for Swift. After enabling the Cloud Natural Language API for your project, create and download service account credentials. Then set the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to the file containing these credentials.