go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/upstream/health/health.pb.go (about)

     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.31.0
    21  // 	protoc        v4.24.3
    22  // source: health.proto
    23  
    24  package health
    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_health_proto_enumTypes[0].Descriptor()
    77  }
    78  
    79  func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType {
    80  	return &file_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_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_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_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_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=mondoo.cnquery.health.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
   145  	// returns rfc 3339 timestamp
   146  	Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
   147  	// returns the major api version
   148  	ApiVersion string `protobuf:"bytes,3,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
   149  	// returns the git commit checksum
   150  	Build string `protobuf:"bytes,4,opt,name=build,proto3" json:"build,omitempty"`
   151  }
   152  
   153  func (x *HealthCheckResponse) Reset() {
   154  	*x = HealthCheckResponse{}
   155  	if protoimpl.UnsafeEnabled {
   156  		mi := &file_health_proto_msgTypes[1]
   157  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   158  		ms.StoreMessageInfo(mi)
   159  	}
   160  }
   161  
   162  func (x *HealthCheckResponse) String() string {
   163  	return protoimpl.X.MessageStringOf(x)
   164  }
   165  
   166  func (*HealthCheckResponse) ProtoMessage() {}
   167  
   168  func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
   169  	mi := &file_health_proto_msgTypes[1]
   170  	if protoimpl.UnsafeEnabled && x != nil {
   171  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   172  		if ms.LoadMessageInfo() == nil {
   173  			ms.StoreMessageInfo(mi)
   174  		}
   175  		return ms
   176  	}
   177  	return mi.MessageOf(x)
   178  }
   179  
   180  // Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
   181  func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
   182  	return file_health_proto_rawDescGZIP(), []int{1}
   183  }
   184  
   185  func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus {
   186  	if x != nil {
   187  		return x.Status
   188  	}
   189  	return HealthCheckResponse_UNKNOWN
   190  }
   191  
   192  func (x *HealthCheckResponse) GetTime() string {
   193  	if x != nil {
   194  		return x.Time
   195  	}
   196  	return ""
   197  }
   198  
   199  func (x *HealthCheckResponse) GetApiVersion() string {
   200  	if x != nil {
   201  		return x.ApiVersion
   202  	}
   203  	return ""
   204  }
   205  
   206  func (x *HealthCheckResponse) GetBuild() string {
   207  	if x != nil {
   208  		return x.Build
   209  	}
   210  	return ""
   211  }
   212  
   213  var File_health_proto protoreflect.FileDescriptor
   214  
   215  var file_health_proto_rawDesc = []byte{
   216  	0x0a, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18,
   217  	0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x68,
   218  	0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x22, 0x2e, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c,
   219  	0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18,
   220  	0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   221  	0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x85, 0x02, 0x0a, 0x13, 0x48, 0x65, 0x61,
   222  	0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   223  	0x12, 0x53, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
   224  	0x32, 0x3b, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72,
   225  	0x79, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c,
   226  	0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
   227  	0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73,
   228  	0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20,
   229  	0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x69,
   230  	0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61,
   231  	0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x69,
   232  	0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x22,
   233  	0x4f, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
   234  	0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a,
   235  	0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f,
   236  	0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53,
   237  	0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03,
   238  	0x32, 0x6e, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x64, 0x0a, 0x05, 0x43, 0x68,
   239  	0x65, 0x63, 0x6b, 0x12, 0x2c, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71,
   240  	0x75, 0x65, 0x72, 0x79, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48,
   241  	0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   242  	0x74, 0x1a, 0x2d, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6e, 0x71, 0x75, 0x65,
   243  	0x72, 0x79, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61,
   244  	0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   245  	0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x2e, 0x6d, 0x6f, 0x6e, 0x64, 0x6f, 0x6f, 0x2e, 0x63, 0x6f,
   246  	0x6d, 0x2f, 0x63, 0x6e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64,
   247  	0x65, 0x72, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x70, 0x73, 0x74, 0x72,
   248  	0x65, 0x61, 0x6d, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   249  	0x6f, 0x33,
   250  }
   251  
   252  var (
   253  	file_health_proto_rawDescOnce sync.Once
   254  	file_health_proto_rawDescData = file_health_proto_rawDesc
   255  )
   256  
   257  func file_health_proto_rawDescGZIP() []byte {
   258  	file_health_proto_rawDescOnce.Do(func() {
   259  		file_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_health_proto_rawDescData)
   260  	})
   261  	return file_health_proto_rawDescData
   262  }
   263  
   264  var file_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   265  var file_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   266  var file_health_proto_goTypes = []interface{}{
   267  	(HealthCheckResponse_ServingStatus)(0), // 0: mondoo.cnquery.health.v1.HealthCheckResponse.ServingStatus
   268  	(*HealthCheckRequest)(nil),             // 1: mondoo.cnquery.health.v1.HealthCheckRequest
   269  	(*HealthCheckResponse)(nil),            // 2: mondoo.cnquery.health.v1.HealthCheckResponse
   270  }
   271  var file_health_proto_depIdxs = []int32{
   272  	0, // 0: mondoo.cnquery.health.v1.HealthCheckResponse.status:type_name -> mondoo.cnquery.health.v1.HealthCheckResponse.ServingStatus
   273  	1, // 1: mondoo.cnquery.health.v1.Health.Check:input_type -> mondoo.cnquery.health.v1.HealthCheckRequest
   274  	2, // 2: mondoo.cnquery.health.v1.Health.Check:output_type -> mondoo.cnquery.health.v1.HealthCheckResponse
   275  	2, // [2:3] is the sub-list for method output_type
   276  	1, // [1:2] is the sub-list for method input_type
   277  	1, // [1:1] is the sub-list for extension type_name
   278  	1, // [1:1] is the sub-list for extension extendee
   279  	0, // [0:1] is the sub-list for field type_name
   280  }
   281  
   282  func init() { file_health_proto_init() }
   283  func file_health_proto_init() {
   284  	if File_health_proto != nil {
   285  		return
   286  	}
   287  	if !protoimpl.UnsafeEnabled {
   288  		file_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   289  			switch v := v.(*HealthCheckRequest); i {
   290  			case 0:
   291  				return &v.state
   292  			case 1:
   293  				return &v.sizeCache
   294  			case 2:
   295  				return &v.unknownFields
   296  			default:
   297  				return nil
   298  			}
   299  		}
   300  		file_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   301  			switch v := v.(*HealthCheckResponse); i {
   302  			case 0:
   303  				return &v.state
   304  			case 1:
   305  				return &v.sizeCache
   306  			case 2:
   307  				return &v.unknownFields
   308  			default:
   309  				return nil
   310  			}
   311  		}
   312  	}
   313  	type x struct{}
   314  	out := protoimpl.TypeBuilder{
   315  		File: protoimpl.DescBuilder{
   316  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   317  			RawDescriptor: file_health_proto_rawDesc,
   318  			NumEnums:      1,
   319  			NumMessages:   2,
   320  			NumExtensions: 0,
   321  			NumServices:   1,
   322  		},
   323  		GoTypes:           file_health_proto_goTypes,
   324  		DependencyIndexes: file_health_proto_depIdxs,
   325  		EnumInfos:         file_health_proto_enumTypes,
   326  		MessageInfos:      file_health_proto_msgTypes,
   327  	}.Build()
   328  	File_health_proto = out.File
   329  	file_health_proto_rawDesc = nil
   330  	file_health_proto_goTypes = nil
   331  	file_health_proto_depIdxs = nil
   332  }