Merge pull request #722 from menghanl/package_version_2_to_3
Change SupportPackageIsVersion, may cause building failure
This commit is contained in:
Коммит
e78224b060
|
@ -24,7 +24,7 @@ var _ grpc.ClientConn
|
|||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion2
|
||||
const _ = grpc.SupportPackageIsVersion3
|
||||
|
||||
// Client API for BenchmarkService service
|
||||
|
||||
|
@ -161,6 +161,7 @@ var _BenchmarkService_serviceDesc = grpc.ServiceDesc{
|
|||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: fileDescriptor3,
|
||||
}
|
||||
|
||||
// Client API for WorkerService service
|
||||
|
@ -416,6 +417,7 @@ var _WorkerService_serviceDesc = grpc.ServiceDesc{
|
|||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: fileDescriptor3,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("services.proto", fileDescriptor3) }
|
||||
|
|
|
@ -65,7 +65,7 @@ var _ grpc.ClientConn
|
|||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion2
|
||||
const _ = grpc.SupportPackageIsVersion3
|
||||
|
||||
// Client API for Greeter service
|
||||
|
||||
|
@ -129,7 +129,8 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
|
|||
Handler: _Greeter_SayHello_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: fileDescriptor0,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("helloworld.proto", fileDescriptor0) }
|
||||
|
|
|
@ -156,7 +156,7 @@ var _ grpc.ClientConn
|
|||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion2
|
||||
const _ = grpc.SupportPackageIsVersion3
|
||||
|
||||
// Client API for RouteGuide service
|
||||
|
||||
|
@ -452,6 +452,7 @@ var _RouteGuide_serviceDesc = grpc.ServiceDesc{
|
|||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: fileDescriptor0,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("route_guide.proto", fileDescriptor0) }
|
||||
|
|
|
@ -90,7 +90,7 @@ var _ grpc.ClientConn
|
|||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion2
|
||||
const _ = grpc.SupportPackageIsVersion3
|
||||
|
||||
// Client API for Health service
|
||||
|
||||
|
@ -152,7 +152,8 @@ var _Health_serviceDesc = grpc.ServiceDesc{
|
|||
Handler: _Health_Check_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: fileDescriptor0,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("health.proto", fileDescriptor0) }
|
||||
|
|
|
@ -360,7 +360,7 @@ var _ grpc.ClientConn
|
|||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion2
|
||||
const _ = grpc.SupportPackageIsVersion3
|
||||
|
||||
// Client API for TestService service
|
||||
|
||||
|
@ -742,6 +742,7 @@ var _TestService_serviceDesc = grpc.ServiceDesc{
|
|||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: fileDescriptor0,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("test.proto", fileDescriptor0) }
|
||||
|
|
|
@ -406,10 +406,10 @@ func convertCode(err error) codes.Code {
|
|||
return codes.Unknown
|
||||
}
|
||||
|
||||
// SupportPackageIsVersion2 is referenced from generated protocol buffer files
|
||||
// SupportPackageIsVersion3 is referenced from generated protocol buffer files
|
||||
// to assert that that code is compatible with this version of the grpc package.
|
||||
//
|
||||
// This constant may be renamed in the future if a change in the generated code
|
||||
// requires a synchronised update of grpc-go and protoc-gen-go. This constant
|
||||
// should not be referenced from any other code.
|
||||
const SupportPackageIsVersion2 = true
|
||||
const SupportPackageIsVersion3 = true
|
||||
|
|
|
@ -205,7 +205,7 @@ var _ grpc.ClientConn
|
|||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion2
|
||||
const _ = grpc.SupportPackageIsVersion3
|
||||
|
||||
// Client API for MetricsService service
|
||||
|
||||
|
@ -335,6 +335,7 @@ var _MetricsService_serviceDesc = grpc.ServiceDesc{
|
|||
ServerStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: fileDescriptor0,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("metrics.proto", fileDescriptor0) }
|
||||
|
|
|
@ -360,7 +360,7 @@ var _ grpc.ClientConn
|
|||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion2
|
||||
const _ = grpc.SupportPackageIsVersion3
|
||||
|
||||
// Client API for TestService service
|
||||
|
||||
|
@ -742,6 +742,7 @@ var _TestService_serviceDesc = grpc.ServiceDesc{
|
|||
ClientStreams: true,
|
||||
},
|
||||
},
|
||||
Metadata: fileDescriptor0,
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("test.proto", fileDescriptor0) }
|
||||
|
|
Загрузка…
Ссылка в новой задаче