...

Source file src/google.golang.org/grpc/health/grpc_health_v1/health.pb.go

Documentation: google.golang.org/grpc/health/grpc_health_v1

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

View as plain text