github.com/emcfarlane/larking@v0.0.0-20220605172417-1704b45ee6c3/apipb/healthpb/health.pb.go (about)

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