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