mirror of https://github.com/grpc/grpc.git
Merge pull request #19940 from jbolinger/fix-rubyname-gen
Allow Ruby style (::) package names in Ruby codegenpull/19428/head
commit
4a1ef56a54
5 changed files with 133 additions and 42 deletions
@ -0,0 +1,22 @@ |
|||||||
|
// Copyright 2019 gRPC authors. |
||||||
|
// |
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
// you may not use this file except in compliance with the License. |
||||||
|
// You may obtain a copy of the License at |
||||||
|
// |
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
// |
||||||
|
// Unless required by applicable law or agreed to in writing, software |
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
// See the License for the specific language governing permissions and |
||||||
|
// limitations under the License. |
||||||
|
|
||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package grpc.testing; |
||||||
|
|
||||||
|
// For sanity checking package definitions |
||||||
|
option ruby_package = "A::Other"; |
||||||
|
|
||||||
|
message Thing { } |
@ -0,0 +1,34 @@ |
|||||||
|
// Copyright 2019 gRPC authors. |
||||||
|
// |
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
// you may not use this file except in compliance with the License. |
||||||
|
// You may obtain a copy of the License at |
||||||
|
// |
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
// |
||||||
|
// Unless required by applicable law or agreed to in writing, software |
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
// See the License for the specific language governing permissions and |
||||||
|
// limitations under the License. |
||||||
|
|
||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package grpc.testing; |
||||||
|
|
||||||
|
import "grpc/testing/package_options_import.proto"; |
||||||
|
|
||||||
|
// For sanity checking package definitions |
||||||
|
option ruby_package = "RPC::Test::New::Package::Options"; |
||||||
|
|
||||||
|
message AnotherTestRequest { } |
||||||
|
|
||||||
|
message AnotherTestResponse { } |
||||||
|
|
||||||
|
message Foo { } |
||||||
|
|
||||||
|
service AnotherTestService { |
||||||
|
rpc GetTest(AnotherTestRequest) returns (AnotherTestResponse) { } |
||||||
|
rpc OtherTest(Thing) returns (Thing) { } |
||||||
|
rpc FooTest(Foo) returns (Foo) { } |
||||||
|
} |
Loading…
Reference in new issue