grpc-swift
grpc-swift copied to clipboard
can any body guide me where to write url in gRPC
can anybody guide me where to write url in gRPC and also how i can convert photo to swift if proto contains import "google/api/annotations.proto";
import "protoc-gen-openapiv2/options/annotations.proto"; ?
i use this library latest version : https://cocoapods.org/pods/gRPC-Swift
can anybody guide me where to write url in gRPC and also how i can convert photo to swift if proto contains import "google/api/annotations.proto";
import "protoc-gen-openapiv2/options/annotations.proto"; ?
From the protocol buffers documentation (https://developers.google.com/protocol-buffers/docs/overview#importing_definitions):
The protocol compiler searches for imported files in a set of directories specified on the protocol compiler command line using the -I/--proto_path flag.
I.e. when you call protoc you need to include the path where protoc-gen-openapiv2/options/annotations.proto is defined as an argument to --proto_path.
can anybody guide me where to write url in gRPC and also how i can convert photo to swift if proto contains import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; ?
From the protocol buffers documentation (https://developers.google.com/protocol-buffers/docs/overview#importing_definitions):
The protocol compiler searches for imported files in a set of directories specified on the protocol compiler command line using the -I/--proto_path flag.
I.e. when you call
protocyou need to include the path whereprotoc-gen-openapiv2/options/annotations.protois defined as an argument to--proto_path.
Thanks for ur reply but could you give me example for code because its first time i work on grpc service