Граф коммитов

53 Коммитов

Автор SHA1 Сообщение Дата
Aliaksandr Mianzhynski d6abfb4598
cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment (#4313) 2021-04-09 16:30:59 -07:00
Easwar Swaminathan 7bb497f784
grpc: Update protobuf regenrate script (#4177)
- Pull in protobuf repo since one of our protos pulls in duration.proto
- Update grpc_testing/messages.pb.go to pull in a recent change
2021-01-27 16:36:06 -08:00
Doug Fawley 938f6e2f75
cmd/protoc-gen-go-grpc: add gRPC-Go version comment and update release version (#4152) 2021-01-14 14:28:25 -08:00
Doug Fawley 5e3cbb54d2
interop/grpc_testing: update generated code after recent grpc-proto changes (#4149) 2021-01-13 13:23:43 -08:00
Doug Fawley ecc9a99b66
interop: remove test.proto clones/variants and use grpc-proto repo instead (#4129) 2021-01-07 14:19:11 -08:00
Garrett Gutierrez 73671aeeee
Updated test.proto to facilitate xds interop testing (#4109) 2020-12-15 14:35:14 -08:00
Edmond 8f3cc6cc26
protoc-gen-go-grpc: export grpc.ServiceDesc (#4035) 2020-11-23 14:56:57 -08:00
Timothy Gu 20636e76a9
protobuf: update protoc to latest version (#4038)
Presently, protoc 3.3.0 (released in 2017) is still being used. This
commit updates the vet.sh script as well as existing generated files to
use protoc 3.14.0 instead.

The only concrete change this brings is updated import paths of
Timestamp and Duration types. However, in practice this is a no-op,
since the types themselves are already aliased to the new import path:

- https://pkg.go.dev/github.com/golang/protobuf@v1.4.3/ptypes/duration#Duration
- https://pkg.go.dev/github.com/golang/protobuf@v1.4.3/ptypes/timestamp#Timestamp
2020-11-16 16:59:46 -08:00
Doug Fawley 4e8458e5c6
protobuf: update all generated code to google.golang.org/protobuf (#3932) 2020-10-21 16:05:44 -07:00
Doug Fawley 9519efffeb
cmd/protoc-gen-go-grpc: use grpc.ServiceRegistrar instead of *grpc.Server (#3968) 2020-10-20 13:02:25 -07:00
Doug Fawley 02cd07d9bb
cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911) 2020-09-29 15:17:06 -07:00
Doug Fawley ff9dd65c90
protoc-gen-go-grpc: generate interfaces optionally; remove NewFooService (#3876) 2020-09-16 10:15:56 -07:00
Doug Fawley d31b671000
cmd/protoc-gen-go-grpc: call interceptor even if handler is unset (#3849) 2020-08-26 16:05:36 -07:00
Doug Fawley 44d73dff99
cmd/protoc-gen-go-grpc: rework service registration (#3828) 2020-08-25 09:28:01 -07:00
Menghan Li 8b7764bddb
xds interop: update interop client to support new tests (#3737) 2020-07-27 18:27:21 -07:00
Doug Fawley ad51f572fd
protoc-gen-go-grpc: add requirement of embedding UnimplementedServer in services (#3657) 2020-06-04 10:56:13 -07:00
Damien Neil f818fd2a02
all: regenerate .pb.go files using cmd/protoc-gen-go-grpc (#3646)
Change regenerate.sh to use cmd/protoc-gen-go-grpc and rerun it.
This splits the gRPC service definitions into separate files, but
otherwise has no changes.
2020-05-28 13:52:49 -07:00
Damien Neil 15653fec60
all: refactor .pb.go generation (#3451)
Replace various //go:generate lines and regenerate.sh scripts with a
single, top-level regenerate.sh that regenerates all .pb.go files.

Placing generation in a single script ensures that all files are
generated with similar parameters. The new regenerate.sh uses the
protoc-gen-go version defined in test/tools/go.mod and automatically
handles new .proto files as they are added.

Do some minor refactoring on .proto files: Every file now has a
go_package option (which will be required by a future version of the
code generator), and file imports are all relative to the repository
root.
2020-04-24 08:54:03 -07:00
Menghan Li f8ad812d8e
internal: update interop test.pb.go (#3405) 2020-02-27 13:17:00 -08:00
Eric Gribkoff a43f3ee96c
interop: add xds test client and server (#3326)
https://github.com/grpc/grpc/blob/master/doc/xds-test-descriptions.md
2020-02-24 13:45:21 -08:00
Doug Fawley b88d2d7465
protobuf: update protoc-gen-go version and generated code (#3345) 2020-01-30 10:23:21 -08:00
apolcyn d903dd74ec interop: add grpclb fallback test (#2994) 2019-11-08 13:14:23 -08:00
Doug Fawley e2cfd1c28f
internal: update proto library version (#3025)
Also, two fixes:

- Fix long-standing `.travis.yml` bug where `VET_SKIP_PROTO` was not `export`ed (so not seen by `vet.sh`).
- Update `vet.sh` to work with new `goimports -l` that does not print a `:` after filenames.
2019-09-17 13:49:26 -07:00
Menghan Li ee9f7f0c9a
interop: add test case for "pick_first" (#2762) 2019-04-11 14:22:58 -07:00
Menghan Li 39a411827d
internal: Update proto generated code (#2133) 2018-06-08 17:54:26 -07:00
Menghan Li f669235193
internal: update proto generated code (#2093) 2018-05-21 09:59:26 -07:00
lyuxuan a36eb4675a
regenerate *.pb.go files due to proto-gen-go update (#2070) 2018-05-11 18:57:54 -07:00
Menghan Li e538e04cad proto: update generated code (#2039) 2018-05-01 12:53:20 -07:00
Menghan Li 5131c1f096 Use proto3 in interop tests and end2end tests (#1574) 2017-10-12 14:05:19 -07:00
dfawley 25b4a426b4 go-generate pb.go files and check in Travis to make sure they don't change (#1426) 2017-08-17 16:00:51 -07:00
田欧 3c33c26290 add license for some proto files (#1322) 2017-06-27 09:54:34 -07:00
Qi Zhao 0d9891286a Merge pull request #967 from ncteisen/advanced_go_interop_tests
Go Advanced Interop Tests
2016-11-11 13:29:59 -08:00
Noah Eisen 687c958422 Reimplement unimplemented_method and address gofmt issues 2016-11-02 14:53:28 -07:00
Noah Eisen 5b6bca7d0c Add unimplemented test cases to Go interop client
Add UnimplementedService/UnimplementedCall and
TestService/UnimplementedCall to test.proto then regenerated the proto
file.
2016-11-02 09:49:56 -07:00
Mahak Mukhi 883bfc7bc8 pb.go file update 2016-10-28 12:37:56 -07:00
Mak Mukhi 727a60e4d1 update server reflection code to comply with the change to the grpc generator 2016-10-21 18:06:55 -07:00
Mark D. Roth 714db19b0b Add response_status field to test.proto. 2016-06-30 14:44:55 -07:00
Menghan Li abe672d5ed Update generated files 2016-06-10 14:20:04 -07:00
Menghan Li 0da018f37e Update generated files 2016-06-09 15:02:17 -07:00
iamqizhao 61e92eacc3 Phase 1 to add the server interceptor 2016-04-18 16:18:34 -07:00
Tamir Duberstein accbf4c185 `make proto` 2016-02-04 17:35:04 -05:00
iamqizhao a15e3b9562 decodeFunc -> dec 2015-10-01 16:26:00 -07:00
iamqizhao 1d81cf4f22 fix all the generated code 2015-10-01 14:35:07 -07:00
Peter Edge 7b50c34edb add make proto and update protos 2015-05-24 16:14:32 +02:00
iamqizhao 0f85408fd4 Eliminate proto.Unmarshal in the generated code 2015-04-27 14:47:09 -07:00
iamqizhao 8b08b2d7b2 Interface change to accommodate the support of non-protobuf data formats 2015-03-25 15:18:07 -07:00
iamqizhao 2f821c8afc migrate to the new codegen solution 2015-02-19 18:43:28 -08:00
iamqizhao fc10c7b40c Let RecvProto return nil for client stream rpc 2015-02-19 16:48:59 -08:00
iamqizhao 634392a1c6 Remove the 2nd RecvProto in the generated code for client streaming 2015-02-18 22:18:01 -08:00
iamqizhao 78d3bc72bf Make the generated code return nil intead of io.EOF when everything succeeds. 2015-02-13 17:10:37 -08:00