1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright (c) 2020 Intel Corporation
4 // Code generated by protoc-gen-go. DO NOT EDIT.
6 // protoc-gen-go v1.24.0
8 // source: contextupdate.proto
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"
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)
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
35 type ContextUpdateRequest struct {
36 state protoimpl.MessageState
37 sizeCache protoimpl.SizeCache
38 unknownFields protoimpl.UnknownFields
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"`
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)
53 func (x *ContextUpdateRequest) String() string {
54 return protoimpl.X.MessageStringOf(x)
57 func (*ContextUpdateRequest) ProtoMessage() {}
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)
68 return mi.MessageOf(x)
71 // Deprecated: Use ContextUpdateRequest.ProtoReflect.Descriptor instead.
72 func (*ContextUpdateRequest) Descriptor() ([]byte, []int) {
73 return file_contextupdate_proto_rawDescGZIP(), []int{0}
76 func (x *ContextUpdateRequest) GetAppContext() string {
83 func (x *ContextUpdateRequest) GetIntentName() string {
90 type ContextUpdateResponse struct {
91 state protoimpl.MessageState
92 sizeCache protoimpl.SizeCache
93 unknownFields protoimpl.UnknownFields
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"`
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)
108 func (x *ContextUpdateResponse) String() string {
109 return protoimpl.X.MessageStringOf(x)
112 func (*ContextUpdateResponse) ProtoMessage() {}
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)
123 return mi.MessageOf(x)
126 // Deprecated: Use ContextUpdateResponse.ProtoReflect.Descriptor instead.
127 func (*ContextUpdateResponse) Descriptor() ([]byte, []int) {
128 return file_contextupdate_proto_rawDescGZIP(), []int{1}
131 func (x *ContextUpdateResponse) GetAppContextUpdated() bool {
133 return x.AppContextUpdated
138 func (x *ContextUpdateResponse) GetAppContextUpdateMessage() string {
140 return x.AppContextUpdateMessage
145 var File_contextupdate_proto protoreflect.FileDescriptor
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,
173 file_contextupdate_proto_rawDescOnce sync.Once
174 file_contextupdate_proto_rawDescData = file_contextupdate_proto_rawDesc
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)
181 return file_contextupdate_proto_rawDescData
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
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
199 func init() { file_contextupdate_proto_init() }
200 func file_contextupdate_proto_init() {
201 if File_contextupdate_proto != nil {
204 if !protoimpl.UnsafeEnabled {
205 file_contextupdate_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
206 switch v := v.(*ContextUpdateRequest); i {
212 return &v.unknownFields
217 file_contextupdate_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
218 switch v := v.(*ContextUpdateResponse); i {
224 return &v.unknownFields
231 out := protoimpl.TypeBuilder{
232 File: protoimpl.DescBuilder{
233 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
234 RawDescriptor: file_contextupdate_proto_rawDesc,
240 GoTypes: file_contextupdate_proto_goTypes,
241 DependencyIndexes: file_contextupdate_proto_depIdxs,
242 MessageInfos: file_contextupdate_proto_msgTypes,
244 File_contextupdate_proto = out.File
245 file_contextupdate_proto_rawDesc = nil
246 file_contextupdate_proto_goTypes = nil
247 file_contextupdate_proto_depIdxs = nil
250 // Reference imports to suppress errors if they are not otherwise used.
251 var _ context.Context
252 var _ grpc.ClientConnInterface
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
258 // ContextupdateClient is the client API for Contextupdate service.
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 {
263 UpdateAppContext(ctx context.Context, in *ContextUpdateRequest, opts ...grpc.CallOption) (*ContextUpdateResponse, error)
266 type contextupdateClient struct {
267 cc grpc.ClientConnInterface
270 func NewContextupdateClient(cc grpc.ClientConnInterface) ContextupdateClient {
271 return &contextupdateClient{cc}
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...)
283 // ContextupdateServer is the server API for Contextupdate service.
284 type ContextupdateServer interface {
286 UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error)
289 // UnimplementedContextupdateServer can be embedded to have forward compatible implementations.
290 type UnimplementedContextupdateServer struct {
293 func (*UnimplementedContextupdateServer) UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error) {
294 return nil, status.Errorf(codes.Unimplemented, "method UpdateAppContext not implemented")
297 func RegisterContextupdateServer(s *grpc.Server, srv ContextupdateServer) {
298 s.RegisterService(&_Contextupdate_serviceDesc, srv)
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 {
306 if interceptor == nil {
307 return srv.(ContextupdateServer).UpdateAppContext(ctx, in)
309 info := &grpc.UnaryServerInfo{
311 FullMethod: "/contextupdate/UpdateAppContext",
313 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
314 return srv.(ContextupdateServer).UpdateAppContext(ctx, req.(*ContextUpdateRequest))
316 return interceptor(ctx, in, info, handler)
319 var _Contextupdate_serviceDesc = grpc.ServiceDesc{
320 ServiceName: "contextupdate",
321 HandlerType: (*ContextupdateServer)(nil),
322 Methods: []grpc.MethodDesc{
324 MethodName: "UpdateAppContext",
325 Handler: _Contextupdate_UpdateAppContext_Handler,
328 Streams: []grpc.StreamDesc{},
329 Metadata: "contextupdate.proto",