You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

354 lines
12 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.6.1
// source: internal/pkg/grpc/coordinator.proto
package grpc
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SensorStatus_Status int32
const (
SensorStatus_ACTIVE SensorStatus_Status = 0
SensorStatus_SENDING SensorStatus_Status = 1
SensorStatus_KILLED SensorStatus_Status = 2
)
// Enum value maps for SensorStatus_Status.
var (
SensorStatus_Status_name = map[int32]string{
0: "ACTIVE",
1: "SENDING",
2: "KILLED",
}
SensorStatus_Status_value = map[string]int32{
"ACTIVE": 0,
"SENDING": 1,
"KILLED": 2,
}
)
func (x SensorStatus_Status) Enum() *SensorStatus_Status {
p := new(SensorStatus_Status)
*p = x
return p
}
func (x SensorStatus_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SensorStatus_Status) Descriptor() protoreflect.EnumDescriptor {
return file_internal_pkg_grpc_coordinator_proto_enumTypes[0].Descriptor()
}
func (SensorStatus_Status) Type() protoreflect.EnumType {
return &file_internal_pkg_grpc_coordinator_proto_enumTypes[0]
}
func (x SensorStatus_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SensorStatus_Status.Descriptor instead.
func (SensorStatus_Status) EnumDescriptor() ([]byte, []int) {
return file_internal_pkg_grpc_coordinator_proto_rawDescGZIP(), []int{2, 0}
}
type PingRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *PingRequest) Reset() {
*x = PingRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_internal_pkg_grpc_coordinator_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PingRequest) ProtoMessage() {}
func (x *PingRequest) ProtoReflect() protoreflect.Message {
mi := &file_internal_pkg_grpc_coordinator_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) Descriptor() ([]byte, []int) {
return file_internal_pkg_grpc_coordinator_proto_rawDescGZIP(), []int{0}
}
func (x *PingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type PingResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
SensorStatus []*SensorStatus `protobuf:"bytes,2,rep,name=sensorStatus,proto3" json:"sensorStatus,omitempty"`
}
func (x *PingResponse) Reset() {
*x = PingResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_internal_pkg_grpc_coordinator_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PingResponse) ProtoMessage() {}
func (x *PingResponse) ProtoReflect() protoreflect.Message {
mi := &file_internal_pkg_grpc_coordinator_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) Descriptor() ([]byte, []int) {
return file_internal_pkg_grpc_coordinator_proto_rawDescGZIP(), []int{1}
}
func (x *PingResponse) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *PingResponse) GetSensorStatus() []*SensorStatus {
if x != nil {
return x.SensorStatus
}
return nil
}
type SensorStatus struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Status SensorStatus_Status `protobuf:"varint,2,opt,name=status,proto3,enum=grpc.SensorStatus_Status" json:"status,omitempty"`
}
func (x *SensorStatus) Reset() {
*x = SensorStatus{}
if protoimpl.UnsafeEnabled {
mi := &file_internal_pkg_grpc_coordinator_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SensorStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SensorStatus) ProtoMessage() {}
func (x *SensorStatus) ProtoReflect() protoreflect.Message {
mi := &file_internal_pkg_grpc_coordinator_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SensorStatus.ProtoReflect.Descriptor instead.
func (*SensorStatus) Descriptor() ([]byte, []int) {
return file_internal_pkg_grpc_coordinator_proto_rawDescGZIP(), []int{2}
}
func (x *SensorStatus) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *SensorStatus) GetStatus() SensorStatus_Status {
if x != nil {
return x.Status
}
return SensorStatus_ACTIVE
}
var File_internal_pkg_grpc_coordinator_proto protoreflect.FileDescriptor
var file_internal_pkg_grpc_coordinator_proto_rawDesc = []byte{
0x0a, 0x23, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67,
0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x67, 0x72, 0x70, 0x63, 0x22, 0x1d, 0x0a, 0x0b, 0x50,
0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x56, 0x0a, 0x0c, 0x50, 0x69,
0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x36, 0x0a, 0x0c, 0x73, 0x65,
0x6e, 0x73, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x12, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x52, 0x0c, 0x73, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x53,
0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2d, 0x0a, 0x06, 0x53, 0x74,
0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00,
0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a,
0x06, 0x4b, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x32, 0x43, 0x0a, 0x0b, 0x63, 0x6f, 0x6f,
0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x34, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67,
0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x50,
0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x67, 0x72, 0x70,
0x63, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x13,
0x5a, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67,
0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_internal_pkg_grpc_coordinator_proto_rawDescOnce sync.Once
file_internal_pkg_grpc_coordinator_proto_rawDescData = file_internal_pkg_grpc_coordinator_proto_rawDesc
)
func file_internal_pkg_grpc_coordinator_proto_rawDescGZIP() []byte {
file_internal_pkg_grpc_coordinator_proto_rawDescOnce.Do(func() {
file_internal_pkg_grpc_coordinator_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_pkg_grpc_coordinator_proto_rawDescData)
})
return file_internal_pkg_grpc_coordinator_proto_rawDescData
}
var file_internal_pkg_grpc_coordinator_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_internal_pkg_grpc_coordinator_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_internal_pkg_grpc_coordinator_proto_goTypes = []interface{}{
(SensorStatus_Status)(0), // 0: grpc.SensorStatus.Status
(*PingRequest)(nil), // 1: grpc.PingRequest
(*PingResponse)(nil), // 2: grpc.PingResponse
(*SensorStatus)(nil), // 3: grpc.SensorStatus
}
var file_internal_pkg_grpc_coordinator_proto_depIdxs = []int32{
3, // 0: grpc.PingResponse.sensorStatus:type_name -> grpc.SensorStatus
0, // 1: grpc.SensorStatus.status:type_name -> grpc.SensorStatus.Status
1, // 2: grpc.coordinator.PingHandler:input_type -> grpc.PingRequest
2, // 3: grpc.coordinator.PingHandler:output_type -> grpc.PingResponse
3, // [3:4] is the sub-list for method output_type
2, // [2:3] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_internal_pkg_grpc_coordinator_proto_init() }
func file_internal_pkg_grpc_coordinator_proto_init() {
if File_internal_pkg_grpc_coordinator_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_internal_pkg_grpc_coordinator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PingRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_internal_pkg_grpc_coordinator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PingResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_internal_pkg_grpc_coordinator_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SensorStatus); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_pkg_grpc_coordinator_proto_rawDesc,
NumEnums: 1,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_internal_pkg_grpc_coordinator_proto_goTypes,
DependencyIndexes: file_internal_pkg_grpc_coordinator_proto_depIdxs,
EnumInfos: file_internal_pkg_grpc_coordinator_proto_enumTypes,
MessageInfos: file_internal_pkg_grpc_coordinator_proto_msgTypes,
}.Build()
File_internal_pkg_grpc_coordinator_proto = out.File
file_internal_pkg_grpc_coordinator_proto_rawDesc = nil
file_internal_pkg_grpc_coordinator_proto_goTypes = nil
file_internal_pkg_grpc_coordinator_proto_depIdxs = nil
}