-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e00c56
commit 66b97ca
Showing
5 changed files
with
62 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
// Copyright 2015 gRPC authors. | ||
// | ||
syntax = "proto3"; | ||
|
||
option go_package = "github.com/pact-foundation/pact-go/v2/examples/grpc/primary"; | ||
option java_multiple_files = true; | ||
option java_package = "io.grpc.examples.primary"; | ||
option java_outer_classname = "PrimaryProto"; | ||
|
||
package primary; | ||
|
||
// A request payload to get a Rectangle. | ||
message RectangleLocationRequest { | ||
// The width of the rectangle. | ||
int32 x = 1; | ||
int32 y = 2; | ||
int32 width = 3; | ||
int32 length = 4; | ||
} |
52 changes: 19 additions & 33 deletions
52
...ts/imported_message/primary/primary.proto → ...s/imported_message/primary/response.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
|
||
// Copyright 2015 gRPC authors. | ||
// | ||
syntax = "proto3"; | ||
|
||
option go_package = "github.com/pact-foundation/pact-go/v2/examples/grpc/primary"; | ||
option java_multiple_files = true; | ||
option java_package = "io.grpc.examples.primary"; | ||
option java_outer_classname = "PrimaryProto"; | ||
|
||
import "primary/rectangle.proto"; | ||
import "zimported/zimported.proto"; | ||
|
||
package primary; | ||
|
||
service Primary { | ||
rpc GetRectangle(RectangleLocationRequest) returns (RectangleLocationResponse) {} | ||
} | ||
|
||
// A request payload to get a Rectangle. | ||
message RectangleLocationRequest { | ||
// The width of the rectangle. | ||
int32 x = 1; | ||
int32 y = 2; | ||
int32 width = 3; | ||
int32 length = 4; | ||
} | ||
|
||
// A response payload containing a Rectangle. | ||
message RectangleLocationResponse { | ||
// The location of the rectangle. | ||
Rectangle rectangle = 1; | ||
} | ||
|
||
// Copyright 2015 gRPC authors. | ||
// | ||
syntax = "proto3"; | ||
|
||
option go_package = "github.com/pact-foundation/pact-go/v2/examples/grpc/primary"; | ||
option java_multiple_files = true; | ||
option java_package = "io.grpc.examples.primary"; | ||
option java_outer_classname = "PrimaryProto"; | ||
|
||
import "primary/rectangle.proto"; | ||
|
||
package primary; | ||
|
||
// A response payload containing a Rectangle. | ||
message RectangleLocationResponse { | ||
// The location of the rectangle. | ||
Rectangle rectangle = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
// Copyright 2015 gRPC authors. | ||
// | ||
syntax = "proto3"; | ||
|
||
option go_package = "github.com/pact-foundation/pact-go/v2/examples/grpc/primary"; | ||
option java_multiple_files = true; | ||
option java_package = "io.grpc.examples.primary"; | ||
option java_outer_classname = "PrimaryProto"; | ||
|
||
import "primary/request.proto"; | ||
import "primary/response.proto"; | ||
|
||
package primary; | ||
|
||
service Primary { | ||
rpc GetRectangle(RectangleLocationRequest) returns (RectangleLocationResponse) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters