blob: d2cc5f82d3e01aeb4ef1788d3d3e85b5d1d60912 [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{
amit.ghoshee17c002021-06-10 12:14:38 +0200121 // 216 bytes of a gzipped FileDescriptorProto
122 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x31, 0x4b, 0xc5, 0x30,
123 0x14, 0x85, 0x7d, 0xc2, 0x53, 0x7b, 0xdf, 0x20, 0x64, 0x90, 0x2a, 0x3c, 0x94, 0x8a, 0xa0, 0x4b,
124 0x0a, 0xfa, 0x03, 0x84, 0xb6, 0x6e, 0xe2, 0x50, 0x37, 0x97, 0x92, 0x34, 0x97, 0x9a, 0xe1, 0xe6,
125 0x86, 0x26, 0xf5, 0xf7, 0x8b, 0x69, 0xab, 0x0e, 0x6f, 0x09, 0xb9, 0x1f, 0x9c, 0xc3, 0xc7, 0x81,
126 0x4b, 0xe5, 0x6d, 0xa9, 0x75, 0xb0, 0x34, 0xbf, 0x9d, 0x21, 0x2b, 0xfd, 0xc8, 0x91, 0xc5, 0x36,
127 0x81, 0xe2, 0x01, 0xce, 0x1a, 0xb2, 0x2f, 0x5f, 0xe8, 0xa2, 0xd8, 0x03, 0xe0, 0xcf, 0xa7, 0x73,
128 0x8a, 0x30, 0xdf, 0xdc, 0x6c, 0xee, 0xb3, 0x36, 0x4b, 0xe4, 0x4d, 0x11, 0x16, 0xef, 0x70, 0xd1,
129 0x90, 0xad, 0x47, 0x54, 0x11, 0x53, 0xa0, 0xc5, 0xe0, 0xd9, 0x05, 0x14, 0xd7, 0xb0, 0x0b, 0x51,
130 0xc5, 0x29, 0x74, 0x3d, 0x9b, 0x39, 0xb9, 0x6d, 0x61, 0x46, 0x35, 0x1b, 0x14, 0x39, 0x9c, 0x12,
131 0x86, 0xa0, 0x06, 0xcc, 0x8f, 0x53, 0xed, 0x7a, 0x3e, 0xbe, 0x42, 0x56, 0x55, 0x8b, 0x99, 0x78,
132 0x86, 0xdd, 0xbf, 0x7a, 0x71, 0x2e, 0x93, 0xa3, 0x5c, 0x05, 0xaf, 0xf6, 0x7f, 0xe0, 0x80, 0x46,
133 0x71, 0x54, 0xdd, 0x7d, 0xdc, 0x0e, 0x36, 0x7e, 0x4e, 0x5a, 0xf6, 0x4c, 0x25, 0x7b, 0x74, 0x3d,
134 0x8f, 0x66, 0x59, 0xe0, 0x77, 0x0b, 0x7d, 0x92, 0x26, 0x78, 0xfa, 0x0e, 0x00, 0x00, 0xff, 0xff,
135 0xd2, 0x6b, 0xb3, 0x25, 0x1f, 0x01, 0x00, 0x00,
hkouser24361d42020-12-14 19:21:47 +0530136}
137
138// Reference imports to suppress errors if they are not otherwise used.
139var _ context.Context
140var _ grpc.ClientConn
141
142// This is a compile-time assertion to ensure that this generated file
143// is compatible with the grpc package it is being compiled against.
144const _ = grpc.SupportPackageIsVersion4
145
146// BBsimDmiClient is the client API for BBsimDmi service.
147//
148// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
149type BBsimDmiClient interface {
150 // Ask the DMI Server to create an event
151 CreateEvent(ctx context.Context, in *DmiEvent, opts ...grpc.CallOption) (*DmiCreateEventResponse, error)
152}
153
154type bBsimDmiClient struct {
155 cc *grpc.ClientConn
156}
157
158func NewBBsimDmiClient(cc *grpc.ClientConn) BBsimDmiClient {
159 return &bBsimDmiClient{cc}
160}
161
162func (c *bBsimDmiClient) CreateEvent(ctx context.Context, in *DmiEvent, opts ...grpc.CallOption) (*DmiCreateEventResponse, error) {
163 out := new(DmiCreateEventResponse)
164 err := c.cc.Invoke(ctx, "/bbsim.BBsim_dmi/CreateEvent", in, out, opts...)
165 if err != nil {
166 return nil, err
167 }
168 return out, nil
169}
170
171// BBsimDmiServer is the server API for BBsimDmi service.
172type BBsimDmiServer interface {
173 // Ask the DMI Server to create an event
174 CreateEvent(context.Context, *DmiEvent) (*DmiCreateEventResponse, error)
175}
176
177// UnimplementedBBsimDmiServer can be embedded to have forward compatible implementations.
178type UnimplementedBBsimDmiServer struct {
179}
180
181func (*UnimplementedBBsimDmiServer) CreateEvent(ctx context.Context, req *DmiEvent) (*DmiCreateEventResponse, error) {
182 return nil, status.Errorf(codes.Unimplemented, "method CreateEvent not implemented")
183}
184
185func RegisterBBsimDmiServer(s *grpc.Server, srv BBsimDmiServer) {
186 s.RegisterService(&_BBsimDmi_serviceDesc, srv)
187}
188
189func _BBsimDmi_CreateEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
190 in := new(DmiEvent)
191 if err := dec(in); err != nil {
192 return nil, err
193 }
194 if interceptor == nil {
195 return srv.(BBsimDmiServer).CreateEvent(ctx, in)
196 }
197 info := &grpc.UnaryServerInfo{
198 Server: srv,
199 FullMethod: "/bbsim.BBsim_dmi/CreateEvent",
200 }
201 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
202 return srv.(BBsimDmiServer).CreateEvent(ctx, req.(*DmiEvent))
203 }
204 return interceptor(ctx, in, info, handler)
205}
206
207var _BBsimDmi_serviceDesc = grpc.ServiceDesc{
208 ServiceName: "bbsim.BBsim_dmi",
209 HandlerType: (*BBsimDmiServer)(nil),
210 Methods: []grpc.MethodDesc{
211 {
212 MethodName: "CreateEvent",
213 Handler: _BBsimDmi_CreateEvent_Handler,
214 },
215 },
216 Streams: []grpc.StreamDesc{},
217 Metadata: "api/bbsim/bbsim_dmi.proto",
218}