2 // Copyright 2020 Intel Corporation, Inc
\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
8 // http://www.apache.org/licenses/LICENSE-2.0
\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
16 // Code generated by protoc-gen-go. DO NOT EDIT.
\r
18 // protoc-gen-go v1.24.0
\r
20 // source: contextupdate.proto
\r
22 package contextupdate
\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
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
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
47 type ContextUpdateRequest struct {
\r
48 state protoimpl.MessageState
\r
49 sizeCache protoimpl.SizeCache
\r
50 unknownFields protoimpl.UnknownFields
\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
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
65 func (x *ContextUpdateRequest) String() string {
\r
66 return protoimpl.X.MessageStringOf(x)
\r
69 func (*ContextUpdateRequest) ProtoMessage() {}
\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
80 return mi.MessageOf(x)
\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
88 func (x *ContextUpdateRequest) GetAppContext() string {
\r
95 func (x *ContextUpdateRequest) GetIntentName() string {
\r
102 type ContextUpdateResponse struct {
\r
103 state protoimpl.MessageState
\r
104 sizeCache protoimpl.SizeCache
\r
105 unknownFields protoimpl.UnknownFields
\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
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
120 func (x *ContextUpdateResponse) String() string {
\r
121 return protoimpl.X.MessageStringOf(x)
\r
124 func (*ContextUpdateResponse) ProtoMessage() {}
\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
135 return mi.MessageOf(x)
\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
143 func (x *ContextUpdateResponse) GetAppContextUpdated() bool {
\r
145 return x.AppContextUpdated
\r
150 func (x *ContextUpdateResponse) GetAppContextUpdateMessage() string {
\r
152 return x.AppContextUpdateMessage
\r
157 var File_contextupdate_proto protoreflect.FileDescriptor
\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
185 file_contextupdate_proto_rawDescOnce sync.Once
\r
186 file_contextupdate_proto_rawDescData = file_contextupdate_proto_rawDesc
\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
193 return file_contextupdate_proto_rawDescData
\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
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
211 func init() { file_contextupdate_proto_init() }
\r
212 func file_contextupdate_proto_init() {
\r
213 if File_contextupdate_proto != nil {
\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
222 return &v.sizeCache
\r
224 return &v.unknownFields
\r
229 file_contextupdate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
\r
230 switch v := v.(*ContextUpdateResponse); i {
\r
234 return &v.sizeCache
\r
236 return &v.unknownFields
\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
252 GoTypes: file_contextupdate_proto_goTypes,
\r
253 DependencyIndexes: file_contextupdate_proto_depIdxs,
\r
254 MessageInfos: file_contextupdate_proto_msgTypes,
\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
262 // Reference imports to suppress errors if they are not otherwise used.
\r
263 var _ context.Context
\r
264 var _ grpc.ClientConnInterface
\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
270 // ContextupdateClient is the client API for Contextupdate service.
\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
275 UpdateAppContext(ctx context.Context, in *ContextUpdateRequest, opts ...grpc.CallOption) (*ContextUpdateResponse, error)
\r
278 type contextupdateClient struct {
\r
279 cc grpc.ClientConnInterface
\r
282 func NewContextupdateClient(cc grpc.ClientConnInterface) ContextupdateClient {
\r
283 return &contextupdateClient{cc}
\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
295 // ContextupdateServer is the server API for Contextupdate service.
\r
296 type ContextupdateServer interface {
\r
298 UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error)
\r
301 // UnimplementedContextupdateServer can be embedded to have forward compatible implementations.
\r
302 type UnimplementedContextupdateServer struct {
\r
305 func (*UnimplementedContextupdateServer) UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error) {
\r
306 return nil, status.Errorf(codes.Unimplemented, "method UpdateAppContext not implemented")
\r
309 func RegisterContextupdateServer(s *grpc.Server, srv ContextupdateServer) {
\r
310 s.RegisterService(&_Contextupdate_serviceDesc, srv)
\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
318 if interceptor == nil {
\r
319 return srv.(ContextupdateServer).UpdateAppContext(ctx, in)
\r
321 info := &grpc.UnaryServerInfo{
\r
323 FullMethod: "/contextupdate/UpdateAppContext",
\r
325 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
\r
326 return srv.(ContextupdateServer).UpdateAppContext(ctx, req.(*ContextUpdateRequest))
\r
328 return interceptor(ctx, in, info, handler)
\r
331 var _Contextupdate_serviceDesc = grpc.ServiceDesc{
\r
332 ServiceName: "contextupdate",
\r
333 HandlerType: (*ContextupdateServer)(nil),
\r
334 Methods: []grpc.MethodDesc{
\r
336 MethodName: "UpdateAppContext",
\r
337 Handler: _Contextupdate_UpdateAppContext_Handler,
\r
340 Streams: []grpc.StreamDesc{},
\r
341 Metadata: "contextupdate.proto",
\r