blob: 7dd373d9908b40f01a706da34eca5629e0683f64 [file] [log] [blame]
hkouser24361d42020-12-14 19:21:47 +05301// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: api/bbsim/bbsim_dmi.proto
3
4package bbsim
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 grpc "google.golang.org/grpc"
11 codes "google.golang.org/grpc/codes"
12 status "google.golang.org/grpc/status"
13 math "math"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
26
27type DmiEvent struct {
28 EventName string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
29 XXX_NoUnkeyedLiteral struct{} `json:"-"`
30 XXX_unrecognized []byte `json:"-"`
31 XXX_sizecache int32 `json:"-"`
32}
33
34func (m *DmiEvent) Reset() { *m = DmiEvent{} }
35func (m *DmiEvent) String() string { return proto.CompactTextString(m) }
36func (*DmiEvent) ProtoMessage() {}
37func (*DmiEvent) Descriptor() ([]byte, []int) {
38 return fileDescriptor_49e784b4938902cc, []int{0}
39}
40
41func (m *DmiEvent) XXX_Unmarshal(b []byte) error {
42 return xxx_messageInfo_DmiEvent.Unmarshal(m, b)
43}
44func (m *DmiEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
45 return xxx_messageInfo_DmiEvent.Marshal(b, m, deterministic)
46}
47func (m *DmiEvent) XXX_Merge(src proto.Message) {
48 xxx_messageInfo_DmiEvent.Merge(m, src)
49}
50func (m *DmiEvent) XXX_Size() int {
51 return xxx_messageInfo_DmiEvent.Size(m)
52}
53func (m *DmiEvent) XXX_DiscardUnknown() {
54 xxx_messageInfo_DmiEvent.DiscardUnknown(m)
55}
56
57var xxx_messageInfo_DmiEvent proto.InternalMessageInfo
58
59func (m *DmiEvent) GetEventName() string {
60 if m != nil {
61 return m.EventName
62 }
63 return ""
64}
65
66type DmiCreateEventResponse struct {
67 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
68 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
69 XXX_NoUnkeyedLiteral struct{} `json:"-"`
70 XXX_unrecognized []byte `json:"-"`
71 XXX_sizecache int32 `json:"-"`
72}
73
74func (m *DmiCreateEventResponse) Reset() { *m = DmiCreateEventResponse{} }
75func (m *DmiCreateEventResponse) String() string { return proto.CompactTextString(m) }
76func (*DmiCreateEventResponse) ProtoMessage() {}
77func (*DmiCreateEventResponse) Descriptor() ([]byte, []int) {
78 return fileDescriptor_49e784b4938902cc, []int{1}
79}
80
81func (m *DmiCreateEventResponse) XXX_Unmarshal(b []byte) error {
82 return xxx_messageInfo_DmiCreateEventResponse.Unmarshal(m, b)
83}
84func (m *DmiCreateEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
85 return xxx_messageInfo_DmiCreateEventResponse.Marshal(b, m, deterministic)
86}
87func (m *DmiCreateEventResponse) XXX_Merge(src proto.Message) {
88 xxx_messageInfo_DmiCreateEventResponse.Merge(m, src)
89}
90func (m *DmiCreateEventResponse) XXX_Size() int {
91 return xxx_messageInfo_DmiCreateEventResponse.Size(m)
92}
93func (m *DmiCreateEventResponse) XXX_DiscardUnknown() {
94 xxx_messageInfo_DmiCreateEventResponse.DiscardUnknown(m)
95}
96
97var xxx_messageInfo_DmiCreateEventResponse proto.InternalMessageInfo
98
99func (m *DmiCreateEventResponse) GetStatusCode() int32 {
100 if m != nil {
101 return m.StatusCode
102 }
103 return 0
104}
105
106func (m *DmiCreateEventResponse) GetMessage() string {
107 if m != nil {
108 return m.Message
109 }
110 return ""
111}
112
113func init() {
114 proto.RegisterType((*DmiEvent)(nil), "bbsim.DmiEvent")
115 proto.RegisterType((*DmiCreateEventResponse)(nil), "bbsim.DmiCreateEventResponse")
116}
117
118func init() { proto.RegisterFile("api/bbsim/bbsim_dmi.proto", fileDescriptor_49e784b4938902cc) }
119
120var fileDescriptor_49e784b4938902cc = []byte{
121 // 190 bytes of a gzipped FileDescriptorProto
122 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0x2c, 0xc8, 0xd4,
123 0x4f, 0x4a, 0x2a, 0xce, 0xcc, 0x85, 0x90, 0xf1, 0x29, 0xb9, 0x99, 0x7a, 0x05, 0x45, 0xf9, 0x25,
124 0xf9, 0x42, 0xac, 0x60, 0x01, 0x25, 0x4d, 0x2e, 0x0e, 0x97, 0xdc, 0x4c, 0xd7, 0xb2, 0xd4, 0xbc,
125 0x12, 0x21, 0x59, 0x2e, 0xae, 0x54, 0x10, 0x23, 0x3e, 0x2f, 0x31, 0x37, 0x55, 0x82, 0x51, 0x81,
126 0x51, 0x83, 0x33, 0x88, 0x13, 0x2c, 0xe2, 0x97, 0x98, 0x9b, 0xaa, 0x14, 0xcc, 0x25, 0xe6, 0x92,
127 0x9b, 0xe9, 0x5c, 0x94, 0x9a, 0x58, 0x92, 0x0a, 0xd6, 0x10, 0x94, 0x5a, 0x5c, 0x90, 0x9f, 0x57,
128 0x9c, 0x2a, 0x24, 0xcf, 0xc5, 0x5d, 0x5c, 0x92, 0x58, 0x52, 0x5a, 0x1c, 0x9f, 0x9c, 0x9f, 0x02,
129 0xd1, 0xc9, 0x1a, 0xc4, 0x05, 0x11, 0x72, 0xce, 0x4f, 0x49, 0x15, 0x92, 0xe0, 0x62, 0xcf, 0x4d,
130 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x95, 0x60, 0x02, 0x1b, 0x0b, 0xe3, 0x1a, 0xf9, 0x70, 0x71, 0x3a,
131 0x39, 0x41, 0x5d, 0x26, 0x64, 0xcf, 0xc5, 0x8d, 0x64, 0xbc, 0x10, 0xbf, 0x1e, 0xd8, 0x8d, 0x7a,
132 0x30, 0x07, 0x4a, 0xc9, 0x22, 0x04, 0xb0, 0x38, 0x43, 0x89, 0x21, 0x89, 0x0d, 0xec, 0x37, 0x63,
133 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x8b, 0xf2, 0xfd, 0xf8, 0x00, 0x00, 0x00,
134}
135
136// Reference imports to suppress errors if they are not otherwise used.
137var _ context.Context
138var _ grpc.ClientConn
139
140// This is a compile-time assertion to ensure that this generated file
141// is compatible with the grpc package it is being compiled against.
142const _ = grpc.SupportPackageIsVersion4
143
144// BBsimDmiClient is the client API for BBsimDmi service.
145//
146// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
147type BBsimDmiClient interface {
148 // Ask the DMI Server to create an event
149 CreateEvent(ctx context.Context, in *DmiEvent, opts ...grpc.CallOption) (*DmiCreateEventResponse, error)
150}
151
152type bBsimDmiClient struct {
153 cc *grpc.ClientConn
154}
155
156func NewBBsimDmiClient(cc *grpc.ClientConn) BBsimDmiClient {
157 return &bBsimDmiClient{cc}
158}
159
160func (c *bBsimDmiClient) CreateEvent(ctx context.Context, in *DmiEvent, opts ...grpc.CallOption) (*DmiCreateEventResponse, error) {
161 out := new(DmiCreateEventResponse)
162 err := c.cc.Invoke(ctx, "/bbsim.BBsim_dmi/CreateEvent", in, out, opts...)
163 if err != nil {
164 return nil, err
165 }
166 return out, nil
167}
168
169// BBsimDmiServer is the server API for BBsimDmi service.
170type BBsimDmiServer interface {
171 // Ask the DMI Server to create an event
172 CreateEvent(context.Context, *DmiEvent) (*DmiCreateEventResponse, error)
173}
174
175// UnimplementedBBsimDmiServer can be embedded to have forward compatible implementations.
176type UnimplementedBBsimDmiServer struct {
177}
178
179func (*UnimplementedBBsimDmiServer) CreateEvent(ctx context.Context, req *DmiEvent) (*DmiCreateEventResponse, error) {
180 return nil, status.Errorf(codes.Unimplemented, "method CreateEvent not implemented")
181}
182
183func RegisterBBsimDmiServer(s *grpc.Server, srv BBsimDmiServer) {
184 s.RegisterService(&_BBsimDmi_serviceDesc, srv)
185}
186
187func _BBsimDmi_CreateEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
188 in := new(DmiEvent)
189 if err := dec(in); err != nil {
190 return nil, err
191 }
192 if interceptor == nil {
193 return srv.(BBsimDmiServer).CreateEvent(ctx, in)
194 }
195 info := &grpc.UnaryServerInfo{
196 Server: srv,
197 FullMethod: "/bbsim.BBsim_dmi/CreateEvent",
198 }
199 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
200 return srv.(BBsimDmiServer).CreateEvent(ctx, req.(*DmiEvent))
201 }
202 return interceptor(ctx, in, info, handler)
203}
204
205var _BBsimDmi_serviceDesc = grpc.ServiceDesc{
206 ServiceName: "bbsim.BBsim_dmi",
207 HandlerType: (*BBsimDmiServer)(nil),
208 Methods: []grpc.MethodDesc{
209 {
210 MethodName: "CreateEvent",
211 Handler: _BBsimDmi_CreateEvent_Handler,
212 },
213 },
214 Streams: []grpc.StreamDesc{},
215 Metadata: "api/bbsim/bbsim_dmi.proto",
216}