e172c940a5480180d7feaaa0d1bc848eeb764b4a
[icn/sdwan.git] /
1 //\r
2 // Copyright 2020 Intel Corporation, Inc\r
3 //\r
4 // Licensed under the Apache License, Version 2.0 (the "License");\r
5 // you may not use this file except in compliance with the License.\r
6 // You may obtain a copy of the License at\r
7 //\r
8 //     http://www.apache.org/licenses/LICENSE-2.0\r
9 //\r
10 // Unless required by applicable law or agreed to in writing, software\r
11 // distributed under the License is distributed on an "AS IS" BASIS,\r
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13 // See the License for the specific language governing permissions and\r
14 // limitations under the License.\r
15 \r
16 // Code generated by protoc-gen-go. DO NOT EDIT.\r
17 // versions:\r
18 //      protoc-gen-go v1.24.0\r
19 //      protoc        v3.11.4\r
20 // source: contextupdate.proto\r
21 \r
22 package contextupdate\r
23 \r
24 import (\r
25         context "context"\r
26         proto "github.com/golang/protobuf/proto"\r
27         grpc "google.golang.org/grpc"\r
28         codes "google.golang.org/grpc/codes"\r
29         status "google.golang.org/grpc/status"\r
30         protoreflect "google.golang.org/protobuf/reflect/protoreflect"\r
31         protoimpl "google.golang.org/protobuf/runtime/protoimpl"\r
32         reflect "reflect"\r
33         sync "sync"\r
34 )\r
35 \r
36 const (\r
37         // Verify that this generated code is sufficiently up-to-date.\r
38         _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)\r
39         // Verify that runtime/protoimpl is sufficiently up-to-date.\r
40         _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)\r
41 )\r
42 \r
43 // This is a compile-time assertion that a sufficiently up-to-date version\r
44 // of the legacy proto package is being used.\r
45 const _ = proto.ProtoPackageIsVersion4\r
46 \r
47 type ContextUpdateRequest struct {\r
48         state         protoimpl.MessageState\r
49         sizeCache     protoimpl.SizeCache\r
50         unknownFields protoimpl.UnknownFields\r
51 \r
52         AppContext string `protobuf:"bytes,1,opt,name=app_context,json=appContext,proto3" json:"app_context,omitempty"`\r
53         IntentName string `protobuf:"bytes,2,opt,name=intent_name,json=intentName,proto3" json:"intent_name,omitempty"`\r
54 }\r
55 \r
56 func (x *ContextUpdateRequest) Reset() {\r
57         *x = ContextUpdateRequest{}\r
58         if protoimpl.UnsafeEnabled {\r
59                 mi := &file_contextupdate_proto_msgTypes[0]\r
60                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))\r
61                 ms.StoreMessageInfo(mi)\r
62         }\r
63 }\r
64 \r
65 func (x *ContextUpdateRequest) String() string {\r
66         return protoimpl.X.MessageStringOf(x)\r
67 }\r
68 \r
69 func (*ContextUpdateRequest) ProtoMessage() {}\r
70 \r
71 func (x *ContextUpdateRequest) ProtoReflect() protoreflect.Message {\r
72         mi := &file_contextupdate_proto_msgTypes[0]\r
73         if protoimpl.UnsafeEnabled && x != nil {\r
74                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))\r
75                 if ms.LoadMessageInfo() == nil {\r
76                         ms.StoreMessageInfo(mi)\r
77                 }\r
78                 return ms\r
79         }\r
80         return mi.MessageOf(x)\r
81 }\r
82 \r
83 // Deprecated: Use ContextUpdateRequest.ProtoReflect.Descriptor instead.\r
84 func (*ContextUpdateRequest) Descriptor() ([]byte, []int) {\r
85         return file_contextupdate_proto_rawDescGZIP(), []int{0}\r
86 }\r
87 \r
88 func (x *ContextUpdateRequest) GetAppContext() string {\r
89         if x != nil {\r
90                 return x.AppContext\r
91         }\r
92         return ""\r
93 }\r
94 \r
95 func (x *ContextUpdateRequest) GetIntentName() string {\r
96         if x != nil {\r
97                 return x.IntentName\r
98         }\r
99         return ""\r
100 }\r
101 \r
102 type ContextUpdateResponse struct {\r
103         state         protoimpl.MessageState\r
104         sizeCache     protoimpl.SizeCache\r
105         unknownFields protoimpl.UnknownFields\r
106 \r
107         AppContextUpdated       bool   `protobuf:"varint,1,opt,name=app_context_updated,json=appContextUpdated,proto3" json:"app_context_updated,omitempty"`\r
108         AppContextUpdateMessage string `protobuf:"bytes,2,opt,name=app_context_update_message,json=appContextUpdateMessage,proto3" json:"app_context_update_message,omitempty"`\r
109 }\r
110 \r
111 func (x *ContextUpdateResponse) Reset() {\r
112         *x = ContextUpdateResponse{}\r
113         if protoimpl.UnsafeEnabled {\r
114                 mi := &file_contextupdate_proto_msgTypes[1]\r
115                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))\r
116                 ms.StoreMessageInfo(mi)\r
117         }\r
118 }\r
119 \r
120 func (x *ContextUpdateResponse) String() string {\r
121         return protoimpl.X.MessageStringOf(x)\r
122 }\r
123 \r
124 func (*ContextUpdateResponse) ProtoMessage() {}\r
125 \r
126 func (x *ContextUpdateResponse) ProtoReflect() protoreflect.Message {\r
127         mi := &file_contextupdate_proto_msgTypes[1]\r
128         if protoimpl.UnsafeEnabled && x != nil {\r
129                 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))\r
130                 if ms.LoadMessageInfo() == nil {\r
131                         ms.StoreMessageInfo(mi)\r
132                 }\r
133                 return ms\r
134         }\r
135         return mi.MessageOf(x)\r
136 }\r
137 \r
138 // Deprecated: Use ContextUpdateResponse.ProtoReflect.Descriptor instead.\r
139 func (*ContextUpdateResponse) Descriptor() ([]byte, []int) {\r
140         return file_contextupdate_proto_rawDescGZIP(), []int{1}\r
141 }\r
142 \r
143 func (x *ContextUpdateResponse) GetAppContextUpdated() bool {\r
144         if x != nil {\r
145                 return x.AppContextUpdated\r
146         }\r
147         return false\r
148 }\r
149 \r
150 func (x *ContextUpdateResponse) GetAppContextUpdateMessage() string {\r
151         if x != nil {\r
152                 return x.AppContextUpdateMessage\r
153         }\r
154         return ""\r
155 }\r
156 \r
157 var File_contextupdate_proto protoreflect.FileDescriptor\r
158 \r
159 var file_contextupdate_proto_rawDesc = []byte{\r
160         0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e,\r
161         0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,\r
162         0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a,\r
163         0x0b, 0x61, 0x70, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01,\r
164         0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f,\r
165         0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,\r
166         0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22,\r
167         0x84, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74,\r
168         0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x70, 0x70,\r
169         0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,\r
170         0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x61, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x65,\r
171         0x78, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x61, 0x70, 0x70,\r
172         0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,\r
173         0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x61,\r
174         0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,\r
175         0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x54, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,\r
176         0x74, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74,\r
177         0x65, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x15, 0x2e, 0x43, 0x6f,\r
178         0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,\r
179         0x73, 0x74, 0x1a, 0x16, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x55, 0x70, 0x64, 0x61,\r
180         0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72,\r
181         0x6f, 0x74, 0x6f, 0x33,\r
182 }\r
183 \r
184 var (\r
185         file_contextupdate_proto_rawDescOnce sync.Once\r
186         file_contextupdate_proto_rawDescData = file_contextupdate_proto_rawDesc\r
187 )\r
188 \r
189 func file_contextupdate_proto_rawDescGZIP() []byte {\r
190         file_contextupdate_proto_rawDescOnce.Do(func() {\r
191                 file_contextupdate_proto_rawDescData = protoimpl.X.CompressGZIP(file_contextupdate_proto_rawDescData)\r
192         })\r
193         return file_contextupdate_proto_rawDescData\r
194 }\r
195 \r
196 var file_contextupdate_proto_msgTypes = make([]protoimpl.MessageInfo, 2)\r
197 var file_contextupdate_proto_goTypes = []interface{}{\r
198         (*ContextUpdateRequest)(nil),  // 0: ContextUpdateRequest\r
199         (*ContextUpdateResponse)(nil), // 1: ContextUpdateResponse\r
200 }\r
201 var file_contextupdate_proto_depIdxs = []int32{\r
202         0, // 0: contextupdate.UpdateAppContext:input_type -> ContextUpdateRequest\r
203         1, // 1: contextupdate.UpdateAppContext:output_type -> ContextUpdateResponse\r
204         1, // [1:2] is the sub-list for method output_type\r
205         0, // [0:1] is the sub-list for method input_type\r
206         0, // [0:0] is the sub-list for extension type_name\r
207         0, // [0:0] is the sub-list for extension extendee\r
208         0, // [0:0] is the sub-list for field type_name\r
209 }\r
210 \r
211 func init() { file_contextupdate_proto_init() }\r
212 func file_contextupdate_proto_init() {\r
213         if File_contextupdate_proto != nil {\r
214                 return\r
215         }\r
216         if !protoimpl.UnsafeEnabled {\r
217                 file_contextupdate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {\r
218                         switch v := v.(*ContextUpdateRequest); i {\r
219                         case 0:\r
220                                 return &v.state\r
221                         case 1:\r
222                                 return &v.sizeCache\r
223                         case 2:\r
224                                 return &v.unknownFields\r
225                         default:\r
226                                 return nil\r
227                         }\r
228                 }\r
229                 file_contextupdate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {\r
230                         switch v := v.(*ContextUpdateResponse); i {\r
231                         case 0:\r
232                                 return &v.state\r
233                         case 1:\r
234                                 return &v.sizeCache\r
235                         case 2:\r
236                                 return &v.unknownFields\r
237                         default:\r
238                                 return nil\r
239                         }\r
240                 }\r
241         }\r
242         type x struct{}\r
243         out := protoimpl.TypeBuilder{\r
244                 File: protoimpl.DescBuilder{\r
245                         GoPackagePath: reflect.TypeOf(x{}).PkgPath(),\r
246                         RawDescriptor: file_contextupdate_proto_rawDesc,\r
247                         NumEnums:      0,\r
248                         NumMessages:   2,\r
249                         NumExtensions: 0,\r
250                         NumServices:   1,\r
251                 },\r
252                 GoTypes:           file_contextupdate_proto_goTypes,\r
253                 DependencyIndexes: file_contextupdate_proto_depIdxs,\r
254                 MessageInfos:      file_contextupdate_proto_msgTypes,\r
255         }.Build()\r
256         File_contextupdate_proto = out.File\r
257         file_contextupdate_proto_rawDesc = nil\r
258         file_contextupdate_proto_goTypes = nil\r
259         file_contextupdate_proto_depIdxs = nil\r
260 }\r
261 \r
262 // Reference imports to suppress errors if they are not otherwise used.\r
263 var _ context.Context\r
264 var _ grpc.ClientConnInterface\r
265 \r
266 // This is a compile-time assertion to ensure that this generated file\r
267 // is compatible with the grpc package it is being compiled against.\r
268 const _ = grpc.SupportPackageIsVersion6\r
269 \r
270 // ContextupdateClient is the client API for Contextupdate service.\r
271 //\r
272 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.\r
273 type ContextupdateClient interface {\r
274         // Controllers\r
275         UpdateAppContext(ctx context.Context, in *ContextUpdateRequest, opts ...grpc.CallOption) (*ContextUpdateResponse, error)\r
276 }\r
277 \r
278 type contextupdateClient struct {\r
279         cc grpc.ClientConnInterface\r
280 }\r
281 \r
282 func NewContextupdateClient(cc grpc.ClientConnInterface) ContextupdateClient {\r
283         return &contextupdateClient{cc}\r
284 }\r
285 \r
286 func (c *contextupdateClient) UpdateAppContext(ctx context.Context, in *ContextUpdateRequest, opts ...grpc.CallOption) (*ContextUpdateResponse, error) {\r
287         out := new(ContextUpdateResponse)\r
288         err := c.cc.Invoke(ctx, "/contextupdate/UpdateAppContext", in, out, opts...)\r
289         if err != nil {\r
290                 return nil, err\r
291         }\r
292         return out, nil\r
293 }\r
294 \r
295 // ContextupdateServer is the server API for Contextupdate service.\r
296 type ContextupdateServer interface {\r
297         // Controllers\r
298         UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error)\r
299 }\r
300 \r
301 // UnimplementedContextupdateServer can be embedded to have forward compatible implementations.\r
302 type UnimplementedContextupdateServer struct {\r
303 }\r
304 \r
305 func (*UnimplementedContextupdateServer) UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error) {\r
306         return nil, status.Errorf(codes.Unimplemented, "method UpdateAppContext not implemented")\r
307 }\r
308 \r
309 func RegisterContextupdateServer(s *grpc.Server, srv ContextupdateServer) {\r
310         s.RegisterService(&_Contextupdate_serviceDesc, srv)\r
311 }\r
312 \r
313 func _Contextupdate_UpdateAppContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {\r
314         in := new(ContextUpdateRequest)\r
315         if err := dec(in); err != nil {\r
316                 return nil, err\r
317         }\r
318         if interceptor == nil {\r
319                 return srv.(ContextupdateServer).UpdateAppContext(ctx, in)\r
320         }\r
321         info := &grpc.UnaryServerInfo{\r
322                 Server:     srv,\r
323                 FullMethod: "/contextupdate/UpdateAppContext",\r
324         }\r
325         handler := func(ctx context.Context, req interface{}) (interface{}, error) {\r
326                 return srv.(ContextupdateServer).UpdateAppContext(ctx, req.(*ContextUpdateRequest))\r
327         }\r
328         return interceptor(ctx, in, info, handler)\r
329 }\r
330 \r
331 var _Contextupdate_serviceDesc = grpc.ServiceDesc{\r
332         ServiceName: "contextupdate",\r
333         HandlerType: (*ContextupdateServer)(nil),\r
334         Methods: []grpc.MethodDesc{\r
335                 {\r
336                         MethodName: "UpdateAppContext",\r
337                         Handler:    _Contextupdate_UpdateAppContext_Handler,\r
338                 },\r
339         },\r
340         Streams:  []grpc.StreamDesc{},\r
341         Metadata: "contextupdate.proto",\r
342 }\r