dubbo.apache.org/dubbo-go/v3@v3.1.1/protocol/dubbo3/health/triple_health_v1/health.pb.go (about)

     1  /*
     2   * Licensed to the Apache Software Foundation (ASF) under one or more
     3   * contributor license agreements.  See the NOTICE file distributed with
     4   * this work for additional information regarding copyright ownership.
     5   * The ASF licenses this file to You under the Apache License, Version 2.0
     6   * (the "License"); you may not use this file except in compliance with
     7   * the License.  You may obtain a copy of the License at
     8   *
     9   *     http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  
    18  // The canonical version of this proto can be found at
    19  // https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
    20  
    21  // Code generated by protoc-gen-go. DO NOT EDIT.
    22  // versions:
    23  // 	protoc-gen-go v1.30.0
    24  // 	protoc        v3.21.12
    25  // source: health.proto
    26  
    27  package triple_health_v1
    28  
    29  import (
    30  	reflect "reflect"
    31  	sync "sync"
    32  )
    33  
    34  import (
    35  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    36  
    37  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    38  )
    39  
    40  const (
    41  	// Verify that this generated code is sufficiently up-to-date.
    42  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    43  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    44  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    45  )
    46  
    47  type HealthCheckResponse_ServingStatus int32
    48  
    49  const (
    50  	HealthCheckResponse_UNKNOWN         HealthCheckResponse_ServingStatus = 0
    51  	HealthCheckResponse_SERVING         HealthCheckResponse_ServingStatus = 1
    52  	HealthCheckResponse_NOT_SERVING     HealthCheckResponse_ServingStatus = 2
    53  	HealthCheckResponse_SERVICE_UNKNOWN HealthCheckResponse_ServingStatus = 3 // Used only by the Watch method.
    54  )
    55  
    56  // Enum value maps for HealthCheckResponse_ServingStatus.
    57  var (
    58  	HealthCheckResponse_ServingStatus_name = map[int32]string{
    59  		0: "UNKNOWN",
    60  		1: "SERVING",
    61  		2: "NOT_SERVING",
    62  		3: "SERVICE_UNKNOWN",
    63  	}
    64  	HealthCheckResponse_ServingStatus_value = map[string]int32{
    65  		"UNKNOWN":         0,
    66  		"SERVING":         1,
    67  		"NOT_SERVING":     2,
    68  		"SERVICE_UNKNOWN": 3,
    69  	}
    70  )
    71  
    72  func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus {
    73  	p := new(HealthCheckResponse_ServingStatus)
    74  	*p = x
    75  	return p
    76  }
    77  
    78  func (x HealthCheckResponse_ServingStatus) String() string {
    79  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    80  }
    81  
    82  func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor {
    83  	return file_health_proto_enumTypes[0].Descriptor()
    84  }
    85  
    86  func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType {
    87  	return &file_health_proto_enumTypes[0]
    88  }
    89  
    90  func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber {
    91  	return protoreflect.EnumNumber(x)
    92  }
    93  
    94  // Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead.
    95  func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {
    96  	return file_health_proto_rawDescGZIP(), []int{1, 0}
    97  }
    98  
    99  type HealthCheckRequest struct {
   100  	state         protoimpl.MessageState
   101  	sizeCache     protoimpl.SizeCache
   102  	unknownFields protoimpl.UnknownFields
   103  
   104  	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
   105  }
   106  
   107  func (x *HealthCheckRequest) Reset() {
   108  	*x = HealthCheckRequest{}
   109  	if protoimpl.UnsafeEnabled {
   110  		mi := &file_health_proto_msgTypes[0]
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		ms.StoreMessageInfo(mi)
   113  	}
   114  }
   115  
   116  func (x *HealthCheckRequest) String() string {
   117  	return protoimpl.X.MessageStringOf(x)
   118  }
   119  
   120  func (*HealthCheckRequest) ProtoMessage() {}
   121  
   122  func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {
   123  	mi := &file_health_proto_msgTypes[0]
   124  	if protoimpl.UnsafeEnabled && x != nil {
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		if ms.LoadMessageInfo() == nil {
   127  			ms.StoreMessageInfo(mi)
   128  		}
   129  		return ms
   130  	}
   131  	return mi.MessageOf(x)
   132  }
   133  
   134  // Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
   135  func (*HealthCheckRequest) Descriptor() ([]byte, []int) {
   136  	return file_health_proto_rawDescGZIP(), []int{0}
   137  }
   138  
   139  func (x *HealthCheckRequest) GetService() string {
   140  	if x != nil {
   141  		return x.Service
   142  	}
   143  	return ""
   144  }
   145  
   146  type HealthCheckResponse struct {
   147  	state         protoimpl.MessageState
   148  	sizeCache     protoimpl.SizeCache
   149  	unknownFields protoimpl.UnknownFields
   150  
   151  	Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=dubbogo.health.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
   152  }
   153  
   154  func (x *HealthCheckResponse) Reset() {
   155  	*x = HealthCheckResponse{}
   156  	if protoimpl.UnsafeEnabled {
   157  		mi := &file_health_proto_msgTypes[1]
   158  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   159  		ms.StoreMessageInfo(mi)
   160  	}
   161  }
   162  
   163  func (x *HealthCheckResponse) String() string {
   164  	return protoimpl.X.MessageStringOf(x)
   165  }
   166  
   167  func (*HealthCheckResponse) ProtoMessage() {}
   168  
   169  func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
   170  	mi := &file_health_proto_msgTypes[1]
   171  	if protoimpl.UnsafeEnabled && x != nil {
   172  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   173  		if ms.LoadMessageInfo() == nil {
   174  			ms.StoreMessageInfo(mi)
   175  		}
   176  		return ms
   177  	}
   178  	return mi.MessageOf(x)
   179  }
   180  
   181  // Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
   182  func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
   183  	return file_health_proto_rawDescGZIP(), []int{1}
   184  }
   185  
   186  func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus {
   187  	if x != nil {
   188  		return x.Status
   189  	}
   190  	return HealthCheckResponse_UNKNOWN
   191  }
   192  
   193  var File_health_proto protoreflect.FileDescriptor
   194  
   195  var file_health_proto_rawDesc = []byte{
   196  	0x0a, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11,
   197  	0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76,
   198  	0x31, 0x22, 0x2e, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b,
   199  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
   200  	0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
   201  	0x65, 0x22, 0xb4, 0x01, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,
   202  	0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x73, 0x74, 0x61,
   203  	0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x64, 0x75, 0x62, 0x62,
   204  	0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65,
   205  	0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
   206  	0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
   207  	0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4f, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69,
   208  	0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e,
   209  	0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47,
   210  	0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e,
   211  	0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x55,
   212  	0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x32, 0xba, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61,
   213  	0x6c, 0x74, 0x68, 0x12, 0x56, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x25, 0x2e, 0x64,
   214  	0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31,
   215  	0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75,
   216  	0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65,
   217  	0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68,
   218  	0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x05, 0x57,
   219  	0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68,
   220  	0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43,
   221  	0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x64, 0x75,
   222  	0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e,
   223  	0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f,
   224  	0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   225  	0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x75, 0x62, 0x62, 0x6f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x70, 0x63,
   226  	0x2d, 0x67, 0x6f, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x74, 0x72, 0x69, 0x70, 0x6c,
   227  	0x65, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
   228  	0x74, 0x6f, 0x33,
   229  }
   230  
   231  var (
   232  	file_health_proto_rawDescOnce sync.Once
   233  	file_health_proto_rawDescData = file_health_proto_rawDesc
   234  )
   235  
   236  func file_health_proto_rawDescGZIP() []byte {
   237  	file_health_proto_rawDescOnce.Do(func() {
   238  		file_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_health_proto_rawDescData)
   239  	})
   240  	return file_health_proto_rawDescData
   241  }
   242  
   243  var file_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   244  var file_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   245  var file_health_proto_goTypes = []interface{}{
   246  	(HealthCheckResponse_ServingStatus)(0), // 0: dubbogo.health.v1.HealthCheckResponse.ServingStatus
   247  	(*HealthCheckRequest)(nil),             // 1: dubbogo.health.v1.HealthCheckRequest
   248  	(*HealthCheckResponse)(nil),            // 2: dubbogo.health.v1.HealthCheckResponse
   249  }
   250  var file_health_proto_depIdxs = []int32{
   251  	0, // 0: dubbogo.health.v1.HealthCheckResponse.status:type_name -> dubbogo.health.v1.HealthCheckResponse.ServingStatus
   252  	1, // 1: dubbogo.health.v1.Health.Check:input_type -> dubbogo.health.v1.HealthCheckRequest
   253  	1, // 2: dubbogo.health.v1.Health.Watch:input_type -> dubbogo.health.v1.HealthCheckRequest
   254  	2, // 3: dubbogo.health.v1.Health.Check:output_type -> dubbogo.health.v1.HealthCheckResponse
   255  	2, // 4: dubbogo.health.v1.Health.Watch:output_type -> dubbogo.health.v1.HealthCheckResponse
   256  	3, // [3:5] is the sub-list for method output_type
   257  	1, // [1:3] is the sub-list for method input_type
   258  	1, // [1:1] is the sub-list for extension type_name
   259  	1, // [1:1] is the sub-list for extension extendee
   260  	0, // [0:1] is the sub-list for field type_name
   261  }
   262  
   263  func init() { file_health_proto_init() }
   264  func file_health_proto_init() {
   265  	if File_health_proto != nil {
   266  		return
   267  	}
   268  	if !protoimpl.UnsafeEnabled {
   269  		file_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   270  			switch v := v.(*HealthCheckRequest); i {
   271  			case 0:
   272  				return &v.state
   273  			case 1:
   274  				return &v.sizeCache
   275  			case 2:
   276  				return &v.unknownFields
   277  			default:
   278  				return nil
   279  			}
   280  		}
   281  		file_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   282  			switch v := v.(*HealthCheckResponse); i {
   283  			case 0:
   284  				return &v.state
   285  			case 1:
   286  				return &v.sizeCache
   287  			case 2:
   288  				return &v.unknownFields
   289  			default:
   290  				return nil
   291  			}
   292  		}
   293  	}
   294  	type x struct{}
   295  	out := protoimpl.TypeBuilder{
   296  		File: protoimpl.DescBuilder{
   297  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   298  			RawDescriptor: file_health_proto_rawDesc,
   299  			NumEnums:      1,
   300  			NumMessages:   2,
   301  			NumExtensions: 0,
   302  			NumServices:   1,
   303  		},
   304  		GoTypes:           file_health_proto_goTypes,
   305  		DependencyIndexes: file_health_proto_depIdxs,
   306  		EnumInfos:         file_health_proto_enumTypes,
   307  		MessageInfos:      file_health_proto_msgTypes,
   308  	}.Build()
   309  	File_health_proto = out.File
   310  	file_health_proto_rawDesc = nil
   311  	file_health_proto_goTypes = nil
   312  	file_health_proto_depIdxs = nil
   313  }