@@ -98,37 +98,37 @@ lower in the file hierarchy supersedes one above it.
98
98
The [ ` grpc-swift-protobuf ` ] ( https://github.com/grpc/grpc-swift-protobuf ) package provides
99
99
` protoc-gen-grpc-swift-2 ` , a program which is a plugin for the Protocol Buffers compiler, ` protoc ` .
100
100
To generate gRPC stubs for your ` .proto ` files directly you must run the ` protoc ` command with
101
- the ` --grpc-swift_out =<DIRECTORY> ` option:
101
+ the ` --grpc-swift-2_out =<DIRECTORY> ` option:
102
102
103
103
``` console
104
- protoc --grpc-swift_out =. my-service.proto
104
+ protoc --grpc-swift-2_out =. my-service.proto
105
105
```
106
106
107
107
> ` protoc-gen-grpc-swift-2 ` only generates gRPC stubs, it doesn't generate messages. You must use
108
108
> ` protoc-gen-swift ` to generate messages in addition to gRPC Stubs.
109
109
110
- The presence of ` --grpc-swift_out ` tells ` protoc ` to use the ` protoc-gen-grpc-swift-2 ` plugin. By
110
+ The presence of ` --grpc-swift-2_out ` tells ` protoc ` to use the ` protoc-gen-grpc-swift-2 ` plugin. By
111
111
default it'll look for the plugin in your ` PATH ` . You can also specify the path to the plugin
112
112
explicitly:
113
113
114
114
``` console
115
- protoc --plugin=/path/to/protoc-gen-grpc-swift-2 --grpc-swift_out =. my-service.proto
115
+ protoc --plugin=/path/to/protoc-gen-grpc-swift-2 --grpc-swift-2_out =. my-service.proto
116
116
```
117
117
118
118
You can also specify various option the ` protoc-gen-grpc-swift-2 ` via ` protoc ` using
119
- the ` --grpc-swift_opt ` argument:
119
+ the ` --grpc-swift-2_opt ` argument:
120
120
121
121
``` console
122
- protoc --grpc-swift_opt =<OPTION_NAME>=<OPTION_VALUE> --grpc-swift_out =.
122
+ protoc --grpc-swift-2_opt =<OPTION_NAME>=<OPTION_VALUE> --grpc-swift-2_out =.
123
123
```
124
124
125
- You can specify multiple options by passing the ` --grpc-swift_opt ` argument multiple times:
125
+ You can specify multiple options by passing the ` --grpc-swift-2_opt ` argument multiple times:
126
126
127
127
``` console
128
128
protoc \
129
- --grpc-swift_opt =<OPTION_NAME1>=<OPTION_VALUE1> \
130
- --grpc-swift_opt =<OPTION_NAME2>=<OPTION_VALUE2> \
131
- --grpc-swift_out =.
129
+ --grpc-swift-2_opt =<OPTION_NAME1>=<OPTION_VALUE1> \
130
+ --grpc-swift-2_opt =<OPTION_NAME2>=<OPTION_VALUE2> \
131
+ --grpc-swift-2_out =.
132
132
```
133
133
134
134
#### Generator options
0 commit comments