This is an automated email from the ASF dual-hosted git repository.
justxuewei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/main by this push:
new 4b9bbd8e8 fix: health.proto has name conflict with the one in
google.golang.org/grpc (#2395)
4b9bbd8e8 is described below
commit 4b9bbd8e8ceb55e43d48250d0734d930b0384842
Author: Qin <[email protected]>
AuthorDate: Tue Sep 5 11:55:32 2023 +0800
fix: health.proto has name conflict with the one in google.golang.org/grpc
(#2395)
* fix: health.proto has name conflict with the one in google.golang.org/grpc
health check in
"dubbo.apache.org/dubbo-go/v3/protocol/dubbo3/health/triple_health_v1"
conflicts with the one in "google.golang.org/grpc/health/grpc_health_v1".
Fixes #2394
* update license
---
.../dubbo3/health/triple_health_v1/health.pb.go | 169 ++++++++++-----------
.../dubbo3/health/triple_health_v1/health.proto | 2 +-
.../health/triple_health_v1/health_triple.pb.go | 27 ++--
3 files changed, 93 insertions(+), 105 deletions(-)
diff --git a/protocol/dubbo3/health/triple_health_v1/health.pb.go
b/protocol/dubbo3/health/triple_health_v1/health.pb.go
index e8bc5f970..499740042 100644
--- a/protocol/dubbo3/health/triple_health_v1/health.pb.go
+++ b/protocol/dubbo3/health/triple_health_v1/health.pb.go
@@ -20,21 +20,17 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
-// protoc v3.20.1
-// source: protocol/dubbo3/health/triple_health_v1/health.proto
+// protoc-gen-go v1.30.0
+// protoc v3.21.12
+// source: health.proto
package triple_health_v1
-import (
- reflect "reflect"
- sync "sync"
-)
-
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
-
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
)
const (
@@ -80,11 +76,11 @@ func (x HealthCheckResponse_ServingStatus) String() string {
}
func (HealthCheckResponse_ServingStatus) Descriptor()
protoreflect.EnumDescriptor {
- return
file_protocol_dubbo3_health_triple_health_v1_health_proto_enumTypes[0].Descriptor()
+ return file_health_proto_enumTypes[0].Descriptor()
}
func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType {
- return
&file_protocol_dubbo3_health_triple_health_v1_health_proto_enumTypes[0]
+ return &file_health_proto_enumTypes[0]
}
func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber {
@@ -93,7 +89,7 @@ func (x HealthCheckResponse_ServingStatus) Number()
protoreflect.EnumNumber {
// Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead.
func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {
- return
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescGZIP(),
[]int{1, 0}
+ return file_health_proto_rawDescGZIP(), []int{1, 0}
}
type HealthCheckRequest struct {
@@ -107,7 +103,7 @@ type HealthCheckRequest struct {
func (x *HealthCheckRequest) Reset() {
*x = HealthCheckRequest{}
if protoimpl.UnsafeEnabled {
- mi :=
&file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes[0]
+ mi := &file_health_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -120,7 +116,7 @@ func (x *HealthCheckRequest) String() string {
func (*HealthCheckRequest) ProtoMessage() {}
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {
- mi :=
&file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes[0]
+ mi := &file_health_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -133,7 +129,7 @@ func (x *HealthCheckRequest) ProtoReflect()
protoreflect.Message {
// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest) Descriptor() ([]byte, []int) {
- return
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescGZIP(),
[]int{0}
+ return file_health_proto_rawDescGZIP(), []int{0}
}
func (x *HealthCheckRequest) GetService() string {
@@ -148,13 +144,13 @@ type HealthCheckResponse struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- Status HealthCheckResponse_ServingStatus
`protobuf:"varint,1,opt,name=status,proto3,enum=grpc.health.v1.HealthCheckResponse_ServingStatus"
json:"status,omitempty"`
+ Status HealthCheckResponse_ServingStatus
`protobuf:"varint,1,opt,name=status,proto3,enum=dubbogo.health.v1.HealthCheckResponse_ServingStatus"
json:"status,omitempty"`
}
func (x *HealthCheckResponse) Reset() {
*x = HealthCheckResponse{}
if protoimpl.UnsafeEnabled {
- mi :=
&file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes[1]
+ mi := &file_health_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -167,7 +163,7 @@ func (x *HealthCheckResponse) String() string {
func (*HealthCheckResponse) ProtoMessage() {}
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
- mi :=
&file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes[1]
+ mi := &file_health_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -180,7 +176,7 @@ func (x *HealthCheckResponse) ProtoReflect()
protoreflect.Message {
// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
- return
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescGZIP(),
[]int{1}
+ return file_health_proto_rawDescGZIP(), []int{1}
}
func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus {
@@ -190,70 +186,69 @@ func (x *HealthCheckResponse) GetStatus()
HealthCheckResponse_ServingStatus {
return HealthCheckResponse_UNKNOWN
}
-var File_protocol_dubbo3_health_triple_health_v1_health_proto
protoreflect.FileDescriptor
-
-var file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDesc = []byte{
- 0x0a, 0x34, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x64,
0x75, 0x62, 0x62, 0x6f,
- 0x33, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x74, 0x72, 0x69,
0x70, 0x6c, 0x65, 0x5f,
- 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x76, 0x31, 0x2f, 0x68, 0x65,
0x61, 0x6c, 0x74, 0x68,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x67, 0x72, 0x70, 0x63,
0x2e, 0x68, 0x65, 0x61,
- 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x22, 0x2e, 0x0a, 0x12, 0x48, 0x65,
0x61, 0x6c, 0x74, 0x68,
- 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x18, 0x0a, 0x07,
- 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x73,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x48,
0x65, 0x61, 0x6c, 0x74,
- 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x49,
- 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x31,
- 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x2e, 0x76, 0x31, 0x2e,
+var File_health_proto protoreflect.FileDescriptor
+
+var file_health_proto_rawDesc = []byte{
+ 0x0a, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x11,
+ 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c,
0x74, 0x68, 0x2e, 0x76,
+ 0x31, 0x22, 0x2e, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43,
0x68, 0x65, 0x63, 0x6b,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73,
0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63,
+ 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x43, 0x68, 0x65, 0x63,
+ 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a,
0x06, 0x73, 0x74, 0x61,
+ 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e,
0x64, 0x75, 0x62, 0x62,
+ 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x48, 0x65,
+ 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73,
+ 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x52,
+ 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4f, 0x0a, 0x0d, 0x53,
0x65, 0x72, 0x76, 0x69,
+ 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07,
0x55, 0x4e, 0x4b, 0x4e,
+ 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x52,
0x56, 0x49, 0x4e, 0x47,
+ 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45,
0x52, 0x56, 0x49, 0x4e,
+ 0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x49,
0x43, 0x45, 0x5f, 0x55,
+ 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x32, 0xba, 0x01, 0x0a,
0x06, 0x48, 0x65, 0x61,
+ 0x6c, 0x74, 0x68, 0x12, 0x56, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b,
0x12, 0x25, 0x2e, 0x64,
+ 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74,
0x68, 0x2e, 0x76, 0x31,
+ 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b,
0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67,
0x6f, 0x2e, 0x68, 0x65,
+ 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c,
0x74, 0x68, 0x43, 0x68,
+ 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x58, 0x0a, 0x05, 0x57,
+ 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f,
0x67, 0x6f, 0x2e, 0x68,
+ 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61,
0x6c, 0x74, 0x68, 0x43,
+ 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x26, 0x2e, 0x64, 0x75,
+ 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x2e, 0x76, 0x31, 0x2e,
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53,
0x74, 0x61, 0x74, 0x75,
- 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4f, 0x0a,
0x0d, 0x53, 0x65, 0x72,
- 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b,
0x0a, 0x07, 0x55, 0x4e,
- 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53,
0x45, 0x52, 0x56, 0x49,
- 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f,
0x53, 0x45, 0x52, 0x56,
- 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52,
0x56, 0x49, 0x43, 0x45,
- 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x32, 0xae,
0x01, 0x0a, 0x06, 0x48,
- 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x50, 0x0a, 0x05, 0x43, 0x68, 0x65,
0x63, 0x6b, 0x12, 0x22,
- 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x2e, 0x76, 0x31, 0x2e,
- 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65,
0x61, 0x6c, 0x74, 0x68,
- 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
0x65, 0x63, 0x6b, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x05, 0x57,
0x61, 0x74, 0x63, 0x68,
- 0x12, 0x22, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c,
0x74, 0x68, 0x2e, 0x76,
- 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,
0x6b, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e,
0x68, 0x65, 0x61, 0x6c,
- 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x43, 0x68, 0x65, 0x63,
- 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42,
0x34, 0x5a, 0x32, 0x67,
- 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75,
0x62, 0x62, 0x6f, 0x67,
- 0x6f, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x67, 0x6f, 0x2f, 0x68, 0x65,
0x61, 0x6c, 0x74, 0x68,
- 0x2f, 0x74, 0x72, 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x6c,
0x74, 0x68, 0x5f, 0x76,
- 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e,
+ 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2f,
0x67, 0x72, 0x70, 0x63,
+ 0x2d, 0x67, 0x6f, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x74,
0x72, 0x69, 0x70, 0x6c,
+ 0x65, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x76, 0x31, 0x62,
0x06, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x33,
}
var (
- file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescOnce
sync.Once
- file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescData =
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDesc
+ file_health_proto_rawDescOnce sync.Once
+ file_health_proto_rawDescData = file_health_proto_rawDesc
)
-func file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescGZIP()
[]byte {
-
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescOnce.Do(func()
{
-
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescData =
protoimpl.X.CompressGZIP(file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescData)
+func file_health_proto_rawDescGZIP() []byte {
+ file_health_proto_rawDescOnce.Do(func() {
+ file_health_proto_rawDescData =
protoimpl.X.CompressGZIP(file_health_proto_rawDescData)
})
- return
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDescData
+ return file_health_proto_rawDescData
}
-var file_protocol_dubbo3_health_triple_health_v1_health_proto_enumTypes =
make([]protoimpl.EnumInfo, 1)
-var file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes =
make([]protoimpl.MessageInfo, 2)
-var file_protocol_dubbo3_health_triple_health_v1_health_proto_goTypes =
[]interface{}{
- (HealthCheckResponse_ServingStatus)(0), // 0:
grpc.health.v1.HealthCheckResponse.ServingStatus
- (*HealthCheckRequest)(nil), // 1:
grpc.health.v1.HealthCheckRequest
- (*HealthCheckResponse)(nil), // 2:
grpc.health.v1.HealthCheckResponse
+var file_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_health_proto_goTypes = []interface{}{
+ (HealthCheckResponse_ServingStatus)(0), // 0:
dubbogo.health.v1.HealthCheckResponse.ServingStatus
+ (*HealthCheckRequest)(nil), // 1:
dubbogo.health.v1.HealthCheckRequest
+ (*HealthCheckResponse)(nil), // 2:
dubbogo.health.v1.HealthCheckResponse
}
-var file_protocol_dubbo3_health_triple_health_v1_health_proto_depIdxs =
[]int32{
- 0, // 0: grpc.health.v1.HealthCheckResponse.status:type_name ->
grpc.health.v1.HealthCheckResponse.ServingStatus
- 1, // 1: grpc.health.v1.Health.Check:input_type ->
grpc.health.v1.HealthCheckRequest
- 1, // 2: grpc.health.v1.Health.Watch:input_type ->
grpc.health.v1.HealthCheckRequest
- 2, // 3: grpc.health.v1.Health.Check:output_type ->
grpc.health.v1.HealthCheckResponse
- 2, // 4: grpc.health.v1.Health.Watch:output_type ->
grpc.health.v1.HealthCheckResponse
+var file_health_proto_depIdxs = []int32{
+ 0, // 0: dubbogo.health.v1.HealthCheckResponse.status:type_name ->
dubbogo.health.v1.HealthCheckResponse.ServingStatus
+ 1, // 1: dubbogo.health.v1.Health.Check:input_type ->
dubbogo.health.v1.HealthCheckRequest
+ 1, // 2: dubbogo.health.v1.Health.Watch:input_type ->
dubbogo.health.v1.HealthCheckRequest
+ 2, // 3: dubbogo.health.v1.Health.Check:output_type ->
dubbogo.health.v1.HealthCheckResponse
+ 2, // 4: dubbogo.health.v1.Health.Watch:output_type ->
dubbogo.health.v1.HealthCheckResponse
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
@@ -261,13 +256,13 @@ var
file_protocol_dubbo3_health_triple_health_v1_health_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
-func init() { file_protocol_dubbo3_health_triple_health_v1_health_proto_init()
}
-func file_protocol_dubbo3_health_triple_health_v1_health_proto_init() {
- if File_protocol_dubbo3_health_triple_health_v1_health_proto != nil {
+func init() { file_health_proto_init() }
+func file_health_proto_init() {
+ if File_health_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
-
file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes[0].Exporter
= func(v interface{}, i int) interface{} {
+ file_health_proto_msgTypes[0].Exporter = func(v interface{}, i
int) interface{} {
switch v := v.(*HealthCheckRequest); i {
case 0:
return &v.state
@@ -279,7 +274,7 @@ func
file_protocol_dubbo3_health_triple_health_v1_health_proto_init() {
return nil
}
}
-
file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes[1].Exporter
= func(v interface{}, i int) interface{} {
+ file_health_proto_msgTypes[1].Exporter = func(v interface{}, i
int) interface{} {
switch v := v.(*HealthCheckResponse); i {
case 0:
return &v.state
@@ -296,19 +291,19 @@ func
file_protocol_dubbo3_health_triple_health_v1_health_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor:
file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDesc,
+ RawDescriptor: file_health_proto_rawDesc,
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
- GoTypes:
file_protocol_dubbo3_health_triple_health_v1_health_proto_goTypes,
- DependencyIndexes:
file_protocol_dubbo3_health_triple_health_v1_health_proto_depIdxs,
- EnumInfos:
file_protocol_dubbo3_health_triple_health_v1_health_proto_enumTypes,
- MessageInfos:
file_protocol_dubbo3_health_triple_health_v1_health_proto_msgTypes,
+ GoTypes: file_health_proto_goTypes,
+ DependencyIndexes: file_health_proto_depIdxs,
+ EnumInfos: file_health_proto_enumTypes,
+ MessageInfos: file_health_proto_msgTypes,
}.Build()
- File_protocol_dubbo3_health_triple_health_v1_health_proto = out.File
- file_protocol_dubbo3_health_triple_health_v1_health_proto_rawDesc = nil
- file_protocol_dubbo3_health_triple_health_v1_health_proto_goTypes = nil
- file_protocol_dubbo3_health_triple_health_v1_health_proto_depIdxs = nil
+ File_health_proto = out.File
+ file_health_proto_rawDesc = nil
+ file_health_proto_goTypes = nil
+ file_health_proto_depIdxs = nil
}
diff --git a/protocol/dubbo3/health/triple_health_v1/health.proto
b/protocol/dubbo3/health/triple_health_v1/health.proto
index ae5534838..b636b80f9 100644
--- a/protocol/dubbo3/health/triple_health_v1/health.proto
+++ b/protocol/dubbo3/health/triple_health_v1/health.proto
@@ -20,7 +20,7 @@
syntax = "proto3";
-package grpc.health.v1;
+package dubbogo.health.v1;
option go_package = "github.com/dubbogo/grpc-go/health/triple_health_v1";
diff --git a/protocol/dubbo3/health/triple_health_v1/health_triple.pb.go
b/protocol/dubbo3/health/triple_health_v1/health_triple.pb.go
index a63d394d5..00633ccfa 100644
--- a/protocol/dubbo3/health/triple_health_v1/health_triple.pb.go
+++ b/protocol/dubbo3/health/triple_health_v1/health_triple.pb.go
@@ -18,34 +18,27 @@
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.8
-// - protoc v3.20.1
-// source: protocol/dubbo3/health/triple_health_v1/health.proto
+// - protoc v3.21.12
+// source: health.proto
package triple_health_v1
import (
context "context"
+ constant1 "dubbo.apache.org/dubbo-go/v3/common/constant"
+ protocol "dubbo.apache.org/dubbo-go/v3/protocol"
+ dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3"
+ invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation"
fmt "fmt"
-)
-
-import (
grpc_go "github.com/dubbogo/grpc-go"
codes "github.com/dubbogo/grpc-go/codes"
metadata "github.com/dubbogo/grpc-go/metadata"
status "github.com/dubbogo/grpc-go/status"
-
common "github.com/dubbogo/triple/pkg/common"
constant "github.com/dubbogo/triple/pkg/common/constant"
triple "github.com/dubbogo/triple/pkg/triple"
)
-import (
- constant1 "dubbo.apache.org/dubbo-go/v3/common/constant"
- protocol "dubbo.apache.org/dubbo-go/v3/protocol"
- dubbo3 "dubbo.apache.org/dubbo-go/v3/protocol/dubbo3"
- invocation "dubbo.apache.org/dubbo-go/v3/protocol/invocation"
-)
-
// 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_go.SupportPackageIsVersion7
@@ -89,7 +82,7 @@ func (c *HealthClientImpl) GetDubboStub(cc
*triple.TripleConn) HealthClient {
}
func (c *HealthClientImpl) XXX_InterfaceName() string {
- return "grpc.health.v1.Health"
+ return "dubbogo.health.v1.Health"
}
func NewHealthClient(cc *triple.TripleConn) HealthClient {
@@ -184,7 +177,7 @@ func (s *UnimplementedHealthServer) XXX_ServiceDesc()
*grpc_go.ServiceDesc {
return &Health_ServiceDesc
}
func (s *UnimplementedHealthServer) XXX_InterfaceName() string {
- return "grpc.health.v1.Health"
+ return "dubbogo.health.v1.Health"
}
func (UnimplementedHealthServer) mustEmbedUnimplementedHealthServer() {}
@@ -267,7 +260,7 @@ func (x *healthWatchServer) Send(m *HealthCheckResponse)
error {
// It's only intended for direct use with grpc_go.RegisterService,
// and not to be introspected or modified (even as a copy)
var Health_ServiceDesc = grpc_go.ServiceDesc{
- ServiceName: "grpc.health.v1.Health",
+ ServiceName: "dubbogo.health.v1.Health",
HandlerType: (*HealthServer)(nil),
Methods: []grpc_go.MethodDesc{
{
@@ -282,5 +275,5 @@ var Health_ServiceDesc = grpc_go.ServiceDesc{
ServerStreams: true,
},
},
- Metadata: "protocol/dubbo3/health/triple_health_v1/health.proto",
+ Metadata: "health.proto",
}