Add support for grpc.SupportPackageIsVersion3 back (#1331)

* Support byte slice file descriptor as metadata and add SupportPackageIsVersion3 back

* add v3 test, generate testv3.pb.go with old codegen
This commit is contained in:
Menghan Li
2017-06-22 13:56:59 -07:00
committed by GitHub
parent 8855ede8e3
commit 1d797552ae
5 changed files with 307 additions and 3 deletions

View File

@ -504,6 +504,12 @@ func getMaxSize(mcMax, doptMax *int, defaultVal int) *int {
return doptMax
}
// SupportPackageIsVersion3 is referenced from generated protocol buffer files.
// The latest support package version is 4.
// SupportPackageIsVersion3 is kept for compability. It will be removed in the
// next support package version update.
const SupportPackageIsVersion3 = true
// SupportPackageIsVersion4 is referenced from generated protocol buffer files
// to assert that that code is compatible with this version of the grpc package.
//