src.dualinventive.com/go/devsim/simulator.pb.go

519 lines
18 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: simulator.proto
package devsim
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
type SimulatorStatus int32
const (
SimulatorStatus_Inactive SimulatorStatus = 0
SimulatorStatus_Running SimulatorStatus = 1
)
var SimulatorStatus_name = map[int32]string{
0: "Inactive",
1: "Running",
}
var SimulatorStatus_value = map[string]int32{
"Inactive": 0,
"Running": 1,
}
func (x SimulatorStatus) String() string {
return proto.EnumName(SimulatorStatus_name, int32(x))
}
func (SimulatorStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_16714ce4f39d8016, []int{0}
}
type SimulatorInfo struct {
DeviceUID string `protobuf:"bytes,1,opt,name=deviceUID,proto3" json:"deviceUID,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
Author string `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SimulatorInfo) Reset() { *m = SimulatorInfo{} }
func (m *SimulatorInfo) String() string { return proto.CompactTextString(m) }
func (*SimulatorInfo) ProtoMessage() {}
func (*SimulatorInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_16714ce4f39d8016, []int{0}
}
func (m *SimulatorInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SimulatorInfo.Unmarshal(m, b)
}
func (m *SimulatorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SimulatorInfo.Marshal(b, m, deterministic)
}
func (m *SimulatorInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_SimulatorInfo.Merge(m, src)
}
func (m *SimulatorInfo) XXX_Size() int {
return xxx_messageInfo_SimulatorInfo.Size(m)
}
func (m *SimulatorInfo) XXX_DiscardUnknown() {
xxx_messageInfo_SimulatorInfo.DiscardUnknown(m)
}
var xxx_messageInfo_SimulatorInfo proto.InternalMessageInfo
func (m *SimulatorInfo) GetDeviceUID() string {
if m != nil {
return m.DeviceUID
}
return ""
}
func (m *SimulatorInfo) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *SimulatorInfo) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *SimulatorInfo) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *SimulatorInfo) GetAuthor() string {
if m != nil {
return m.Author
}
return ""
}
type SimulatorCreateRequest struct {
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SimulatorCreateRequest) Reset() { *m = SimulatorCreateRequest{} }
func (m *SimulatorCreateRequest) String() string { return proto.CompactTextString(m) }
func (*SimulatorCreateRequest) ProtoMessage() {}
func (*SimulatorCreateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_16714ce4f39d8016, []int{1}
}
func (m *SimulatorCreateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SimulatorCreateRequest.Unmarshal(m, b)
}
func (m *SimulatorCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SimulatorCreateRequest.Marshal(b, m, deterministic)
}
func (m *SimulatorCreateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SimulatorCreateRequest.Merge(m, src)
}
func (m *SimulatorCreateRequest) XXX_Size() int {
return xxx_messageInfo_SimulatorCreateRequest.Size(m)
}
func (m *SimulatorCreateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SimulatorCreateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SimulatorCreateRequest proto.InternalMessageInfo
func (m *SimulatorCreateRequest) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *SimulatorCreateRequest) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
type SimulatorCreateReply struct {
DeviceUID string `protobuf:"bytes,1,opt,name=deviceUID,proto3" json:"deviceUID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SimulatorCreateReply) Reset() { *m = SimulatorCreateReply{} }
func (m *SimulatorCreateReply) String() string { return proto.CompactTextString(m) }
func (*SimulatorCreateReply) ProtoMessage() {}
func (*SimulatorCreateReply) Descriptor() ([]byte, []int) {
return fileDescriptor_16714ce4f39d8016, []int{2}
}
func (m *SimulatorCreateReply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SimulatorCreateReply.Unmarshal(m, b)
}
func (m *SimulatorCreateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SimulatorCreateReply.Marshal(b, m, deterministic)
}
func (m *SimulatorCreateReply) XXX_Merge(src proto.Message) {
xxx_messageInfo_SimulatorCreateReply.Merge(m, src)
}
func (m *SimulatorCreateReply) XXX_Size() int {
return xxx_messageInfo_SimulatorCreateReply.Size(m)
}
func (m *SimulatorCreateReply) XXX_DiscardUnknown() {
xxx_messageInfo_SimulatorCreateReply.DiscardUnknown(m)
}
var xxx_messageInfo_SimulatorCreateReply proto.InternalMessageInfo
func (m *SimulatorCreateReply) GetDeviceUID() string {
if m != nil {
return m.DeviceUID
}
return ""
}
type SimulatorRequest struct {
DeviceUID string `protobuf:"bytes,1,opt,name=deviceUID,proto3" json:"deviceUID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SimulatorRequest) Reset() { *m = SimulatorRequest{} }
func (m *SimulatorRequest) String() string { return proto.CompactTextString(m) }
func (*SimulatorRequest) ProtoMessage() {}
func (*SimulatorRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_16714ce4f39d8016, []int{3}
}
func (m *SimulatorRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SimulatorRequest.Unmarshal(m, b)
}
func (m *SimulatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SimulatorRequest.Marshal(b, m, deterministic)
}
func (m *SimulatorRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SimulatorRequest.Merge(m, src)
}
func (m *SimulatorRequest) XXX_Size() int {
return xxx_messageInfo_SimulatorRequest.Size(m)
}
func (m *SimulatorRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SimulatorRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SimulatorRequest proto.InternalMessageInfo
func (m *SimulatorRequest) GetDeviceUID() string {
if m != nil {
return m.DeviceUID
}
return ""
}
func init() {
proto.RegisterEnum("devsim.SimulatorStatus", SimulatorStatus_name, SimulatorStatus_value)
proto.RegisterType((*SimulatorInfo)(nil), "devsim.SimulatorInfo")
proto.RegisterType((*SimulatorCreateRequest)(nil), "devsim.SimulatorCreateRequest")
proto.RegisterType((*SimulatorCreateReply)(nil), "devsim.SimulatorCreateReply")
proto.RegisterType((*SimulatorRequest)(nil), "devsim.SimulatorRequest")
}
// 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
// SimulatorServiceClient is the client API for SimulatorService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SimulatorServiceClient interface {
Info(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (SimulatorService_InfoClient, error)
Create(ctx context.Context, in *SimulatorCreateRequest, opts ...grpc.CallOption) (*SimulatorCreateReply, error)
Remove(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (*Empty, error)
Start(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (*Empty, error)
Stop(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (*Empty, error)
}
type simulatorServiceClient struct {
cc *grpc.ClientConn
}
func NewSimulatorServiceClient(cc *grpc.ClientConn) SimulatorServiceClient {
return &simulatorServiceClient{cc}
}
func (c *simulatorServiceClient) Info(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (SimulatorService_InfoClient, error) {
stream, err := c.cc.NewStream(ctx, &_SimulatorService_serviceDesc.Streams[0], "/devsim.SimulatorService/Info", opts...)
if err != nil {
return nil, err
}
x := &simulatorServiceInfoClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type SimulatorService_InfoClient interface {
Recv() (*SimulatorInfo, error)
grpc.ClientStream
}
type simulatorServiceInfoClient struct {
grpc.ClientStream
}
func (x *simulatorServiceInfoClient) Recv() (*SimulatorInfo, error) {
m := new(SimulatorInfo)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *simulatorServiceClient) Create(ctx context.Context, in *SimulatorCreateRequest, opts ...grpc.CallOption) (*SimulatorCreateReply, error) {
out := new(SimulatorCreateReply)
err := c.cc.Invoke(ctx, "/devsim.SimulatorService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *simulatorServiceClient) Remove(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/devsim.SimulatorService/Remove", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *simulatorServiceClient) Start(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/devsim.SimulatorService/Start", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *simulatorServiceClient) Stop(ctx context.Context, in *SimulatorRequest, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/devsim.SimulatorService/Stop", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// SimulatorServiceServer is the server API for SimulatorService service.
type SimulatorServiceServer interface {
Info(*SimulatorRequest, SimulatorService_InfoServer) error
Create(context.Context, *SimulatorCreateRequest) (*SimulatorCreateReply, error)
Remove(context.Context, *SimulatorRequest) (*Empty, error)
Start(context.Context, *SimulatorRequest) (*Empty, error)
Stop(context.Context, *SimulatorRequest) (*Empty, error)
}
func RegisterSimulatorServiceServer(s *grpc.Server, srv SimulatorServiceServer) {
s.RegisterService(&_SimulatorService_serviceDesc, srv)
}
func _SimulatorService_Info_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(SimulatorRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(SimulatorServiceServer).Info(m, &simulatorServiceInfoServer{stream})
}
type SimulatorService_InfoServer interface {
Send(*SimulatorInfo) error
grpc.ServerStream
}
type simulatorServiceInfoServer struct {
grpc.ServerStream
}
func (x *simulatorServiceInfoServer) Send(m *SimulatorInfo) error {
return x.ServerStream.SendMsg(m)
}
func _SimulatorService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SimulatorCreateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SimulatorServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/devsim.SimulatorService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SimulatorServiceServer).Create(ctx, req.(*SimulatorCreateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SimulatorService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SimulatorRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SimulatorServiceServer).Remove(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/devsim.SimulatorService/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SimulatorServiceServer).Remove(ctx, req.(*SimulatorRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SimulatorService_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SimulatorRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SimulatorServiceServer).Start(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/devsim.SimulatorService/Start",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SimulatorServiceServer).Start(ctx, req.(*SimulatorRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SimulatorService_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SimulatorRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SimulatorServiceServer).Stop(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/devsim.SimulatorService/Stop",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SimulatorServiceServer).Stop(ctx, req.(*SimulatorRequest))
}
return interceptor(ctx, in, info, handler)
}
var _SimulatorService_serviceDesc = grpc.ServiceDesc{
ServiceName: "devsim.SimulatorService",
HandlerType: (*SimulatorServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _SimulatorService_Create_Handler,
},
{
MethodName: "Remove",
Handler: _SimulatorService_Remove_Handler,
},
{
MethodName: "Start",
Handler: _SimulatorService_Start_Handler,
},
{
MethodName: "Stop",
Handler: _SimulatorService_Stop_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "Info",
Handler: _SimulatorService_Info_Handler,
ServerStreams: true,
},
},
Metadata: "simulator.proto",
}
func init() { proto.RegisterFile("simulator.proto", fileDescriptor_16714ce4f39d8016) }
var fileDescriptor_16714ce4f39d8016 = []byte{
// 381 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xd1, 0x4e, 0xe2, 0x40,
0x14, 0xdd, 0x96, 0x52, 0x96, 0xbb, 0xb0, 0x34, 0x93, 0x5d, 0xd2, 0xed, 0x92, 0xcd, 0xa6, 0x4f,
0x9b, 0x8d, 0x52, 0x10, 0xff, 0x40, 0x34, 0xe1, 0xb5, 0x8d, 0x2f, 0xbe, 0x8d, 0x70, 0xc5, 0x89,
0x74, 0xa6, 0x4e, 0xa7, 0x4d, 0x88, 0xf1, 0xc5, 0xc4, 0x2f, 0xf0, 0xd3, 0xfc, 0x01, 0x1f, 0xfc,
0x10, 0xd3, 0x96, 0x56, 0x90, 0x48, 0x78, 0xbb, 0xf7, 0xdc, 0x39, 0xe7, 0x9e, 0x9e, 0x5e, 0xe8,
0xc4, 0x2c, 0x4c, 0x16, 0x54, 0x09, 0xd9, 0x8f, 0xa4, 0x50, 0x82, 0x98, 0x33, 0x4c, 0x63, 0x16,
0x3a, 0xbd, 0xb9, 0x10, 0xf3, 0x05, 0x7a, 0x34, 0x62, 0x1e, 0xe5, 0x5c, 0x28, 0xaa, 0x98, 0xe0,
0x71, 0xf1, 0xca, 0x69, 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