grpc-swift icon indicating copy to clipboard operation
grpc-swift copied to clipboard

can any body guide me where to write url in gRPC

Open YallaPayInc opened this issue 3 years ago • 2 comments

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

YallaPayInc avatar Jan 22 '22 12:01 YallaPayInc

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.

glbrntt avatar Jan 24 '22 09:01 glbrntt

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.

Thanks for ur reply but could you give me example for code because its first time i work on grpc service

YallaPayInc avatar Jan 27 '22 06:01 YallaPayInc