// Code generated by protoc-gen-go. DO NOT EDIT. // source: register/InstancePing.proto package register import ( context "context" fmt "fmt" common "github.com/SkyAPM/go2sky/reporter/grpc/common" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ServiceInstancePingPkg struct { ServiceInstanceId int32 `protobuf:"varint,1,opt,name=serviceInstanceId,proto3" json:"serviceInstanceId,omitempty"` Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` ServiceInstanceUUID string `protobuf:"bytes,3,opt,name=serviceInstanceUUID,proto3" json:"serviceInstanceUUID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ServiceInstancePingPkg) Reset() { *m = ServiceInstancePingPkg{} } func (m *ServiceInstancePingPkg) String() string { return proto.CompactTextString(m) } func (*ServiceInstancePingPkg) ProtoMessage() {} func (*ServiceInstancePingPkg) Descriptor() ([]byte, []int) { return fileDescriptor_c10bfdff83d834ed, []int{0} } func (m *ServiceInstancePingPkg) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ServiceInstancePingPkg.Unmarshal(m, b) } func (m *ServiceInstancePingPkg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ServiceInstancePingPkg.Marshal(b, m, deterministic) } func (m *ServiceInstancePingPkg) XXX_Merge(src proto.Message) { xxx_messageInfo_ServiceInstancePingPkg.Merge(m, src) } func (m *ServiceInstancePingPkg) XXX_Size() int { return xxx_messageInfo_ServiceInstancePingPkg.Size(m) } func (m *ServiceInstancePingPkg) XXX_DiscardUnknown() { xxx_messageInfo_ServiceInstancePingPkg.DiscardUnknown(m) } var xxx_messageInfo_ServiceInstancePingPkg proto.InternalMessageInfo func (m *ServiceInstancePingPkg) GetServiceInstanceId() int32 { if m != nil { return m.ServiceInstanceId } return 0 } func (m *ServiceInstancePingPkg) GetTime() int64 { if m != nil { return m.Time } return 0 } func (m *ServiceInstancePingPkg) GetServiceInstanceUUID() string { if m != nil { return m.ServiceInstanceUUID } return "" } func init() { proto.RegisterType((*ServiceInstancePingPkg)(nil), "ServiceInstancePingPkg") } func init() { proto.RegisterFile("register/InstancePing.proto", fileDescriptor_c10bfdff83d834ed) } var fileDescriptor_c10bfdff83d834ed = []byte{ // 275 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xbd, 0x6a, 0xf3, 0x30, 0x18, 0x85, 0x3f, 0x25, 0x5f, 0x03, 0xd1, 0x56, 0x07, 0x5a, 0xe3, 0x2e, 0x26, 0x93, 0x87, 0x56, 0x2a, 0x6e, 0xaf, 0xa0, 0x3f, 0x83, 0x97, 0x62, 0x1c, 0x42, 0xa1, 0x9b, 0x2c, 0x0b, 0xc5, 0xc8, 0xd2, 0x6b, 0x24, 0x35, 0xc1, 0x7b, 0xc7, 0x5e, 0x49, 0xaf, 0xb2, 0xd8, 0x6e, 0xa0, 0x3f, 0x9e, 0x74, 0xd0, 0x79, 0xcf, 0xe1, 0xf0, 0xe0, 0x0b, 0x2b, 0x64, 0xed, 0xbc, 0xb0, 0x34, 0x33, 0xce, 0x33, 0xc3, 0x45, 0x5e, 0x1b, 0x49, 0x5a, 0x0b, 0x1e, 0xa2, 0x15, 0x07, 0xad, 0xc1, 0xd0, 0xf1, 0x19, 0x3f, 0xd7, 0xef, 0x08, 0x9f, 0x6d, 0x84, 0xdd, 0xd7, 0x5c, 0x7c, 0x8f, 0xe4, 0x4a, 0x06, 0x97, 0xf8, 0xd4, 0xfd, 0x74, 0xb2, 0x2a, 0x44, 0x31, 0x4a, 0x4e, 0x8a, 0xbf, 0x46, 0x10, 0xe0, 0xff, 0xbe, 0xd6, 0x22, 0x9c, 0xc5, 0x28, 0x99, 0x17, 0x83, 0x0e, 0xae, 0xf1, 0xea, 0xd7, 0xe1, 0x76, 0x9b, 0x3d, 0x84, 0xf3, 0x18, 0x25, 0xcb, 0x62, 0xca, 0x4a, 0x1f, 0xf1, 0x6a, 0x62, 0x4d, 0x40, 0xf0, 0xa2, 0x82, 0x41, 0x9d, 0x93, 0xe9, 0xb5, 0xd1, 0x92, 0xdc, 0x83, 0xd6, 0xcc, 0x54, 0x6e, 0xfd, 0xef, 0xee, 0x0d, 0xe1, 0x2b, 0xb0, 0x92, 0xb0, 0x96, 0xf1, 0x9d, 0x20, 0x4e, 0x75, 0x07, 0xd6, 0xa8, 0x1e, 0x05, 0x6b, 0x35, 0x31, 0xc2, 0x1f, 0xc0, 0x2a, 0x72, 0x84, 0x45, 0xf6, 0x69, 0x8e, 0x5e, 0x6e, 0x65, 0xed, 0x77, 0xaf, 0x25, 0xe1, 0xa0, 0xa9, 0x17, 0xde, 0x32, 0x2f, 0x1a, 0x56, 0x3a, 0x2a, 0x21, 0x75, 0xaa, 0xa3, 0x56, 0xb4, 0x60, 0x7b, 0xb2, 0xd2, 0xb6, 0x9c, 0x1e, 0xa3, 0x1f, 0xb3, 0x68, 0xa3, 0xba, 0xe7, 0xaf, 0xf2, 0xa7, 0xb1, 0x38, 0xef, 0xc9, 0x72, 0x68, 0xca, 0xc5, 0xc0, 0xf8, 0xe6, 0x33, 0x00, 0x00, 0xff, 0xff, 0x96, 0x3f, 0xab, 0xa5, 0x97, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // ServiceInstancePingClient is the client API for ServiceInstancePing service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ServiceInstancePingClient interface { DoPing(ctx context.Context, in *ServiceInstancePingPkg, opts ...grpc.CallOption) (*common.Commands, error) } type serviceInstancePingClient struct { cc *grpc.ClientConn } func NewServiceInstancePingClient(cc *grpc.ClientConn) ServiceInstancePingClient { return &serviceInstancePingClient{cc} } func (c *serviceInstancePingClient) DoPing(ctx context.Context, in *ServiceInstancePingPkg, opts ...grpc.CallOption) (*common.Commands, error) { out := new(common.Commands) err := c.cc.Invoke(ctx, "/ServiceInstancePing/doPing", in, out, opts...) if err != nil { return nil, err } return out, nil } // ServiceInstancePingServer is the server API for ServiceInstancePing service. type ServiceInstancePingServer interface { DoPing(context.Context, *ServiceInstancePingPkg) (*common.Commands, error) } // UnimplementedServiceInstancePingServer can be embedded to have forward compatible implementations. type UnimplementedServiceInstancePingServer struct { } func (*UnimplementedServiceInstancePingServer) DoPing(ctx context.Context, req *ServiceInstancePingPkg) (*common.Commands, error) { return nil, status.Errorf(codes.Unimplemented, "method DoPing not implemented") } func RegisterServiceInstancePingServer(s *grpc.Server, srv ServiceInstancePingServer) { s.RegisterService(&_ServiceInstancePing_serviceDesc, srv) } func _ServiceInstancePing_DoPing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServiceInstancePingPkg) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ServiceInstancePingServer).DoPing(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/ServiceInstancePing/DoPing", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceInstancePingServer).DoPing(ctx, req.(*ServiceInstancePingPkg)) } return interceptor(ctx, in, info, handler) } var _ServiceInstancePing_serviceDesc = grpc.ServiceDesc{ ServiceName: "ServiceInstancePing", HandlerType: (*ServiceInstancePingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "doPing", Handler: _ServiceInstancePing_DoPing_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "register/InstancePing.proto", }