George Barnett ca6831549c Rename the plugin: protoc-gen-swiftgrpc -> protoc-gen-grpc-swift (#584) 6 سال پیش
..
NaturalLanguage 696cd46342 Several fixes to the example projects. 7 سال پیش
NaturalLanguage.xcodeproj 696cd46342 Several fixes to the example projects. 7 سال پیش
.gitignore bf7edbdc1a minor update to cocoapods example 7 سال پیش
Podfile bf7edbdc1a minor update to cocoapods example 7 سال پیش
README.md bf7edbdc1a minor update to cocoapods example 7 سال پیش
RUNME ca6831549c Rename the plugin: protoc-gen-swiftgrpc -> protoc-gen-grpc-swift (#584) 6 سال پیش

README.md

Calling the Google Cloud Natural Language API

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

  1. Run pod install to install the SwiftGRPC pod and its dependencies.

  2. Running pod install will invoke 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 grpc-swift directory.

  3. Open NaturalLanguage.xcworkspace and set GOOGLE_API_KEY in the application delegate.

  4. Run the app.

Prerequisites

This sample requires a Google Cloud Platform account and an API key for the Cloud Natural Language service. Visit https://cloud.google.com for details.