@@ -29,6 +29,7 @@ pub struct SendMessageRequest {
2929 pub msg : :: std:: string:: String ,
3030 pub pubkey : :: std:: string:: String ,
3131 pub amount : i64 ,
32+ pub reply_to_id : :: std:: string:: String ,
3233 // special fields
3334 pub unknown_fields : :: protobuf:: UnknownFields ,
3435 pub cached_size : :: protobuf:: CachedSize ,
@@ -111,6 +112,32 @@ impl SendMessageRequest {
111112 pub fn set_amount ( & mut self , v : i64 ) {
112113 self . amount = v;
113114 }
115+
116+ // string reply_to_id = 4;
117+
118+
119+ pub fn get_reply_to_id ( & self ) -> & str {
120+ & self . reply_to_id
121+ }
122+ pub fn clear_reply_to_id ( & mut self ) {
123+ self . reply_to_id . clear ( ) ;
124+ }
125+
126+ // Param is passed by value, moved
127+ pub fn set_reply_to_id ( & mut self , v : :: std:: string:: String ) {
128+ self . reply_to_id = v;
129+ }
130+
131+ // Mutable pointer to the field.
132+ // If field is not initialized, it is initialized with default value first.
133+ pub fn mut_reply_to_id ( & mut self ) -> & mut :: std:: string:: String {
134+ & mut self . reply_to_id
135+ }
136+
137+ // Take field
138+ pub fn take_reply_to_id ( & mut self ) -> :: std:: string:: String {
139+ :: std:: mem:: replace ( & mut self . reply_to_id , :: std:: string:: String :: new ( ) )
140+ }
114141}
115142
116143impl :: protobuf:: Message for SendMessageRequest {
@@ -135,6 +162,9 @@ impl ::protobuf::Message for SendMessageRequest {
135162 let tmp = is. read_int64 ( ) ?;
136163 self . amount = tmp;
137164 } ,
165+ 4 => {
166+ :: protobuf:: rt:: read_singular_proto3_string_into ( wire_type, is, & mut self . reply_to_id ) ?;
167+ } ,
138168 _ => {
139169 :: protobuf:: rt:: read_unknown_or_skip_group ( field_number, wire_type, is, self . mut_unknown_fields ( ) ) ?;
140170 } ,
@@ -156,6 +186,9 @@ impl ::protobuf::Message for SendMessageRequest {
156186 if self . amount != 0 {
157187 my_size += :: protobuf:: rt:: value_size ( 3 , self . amount , :: protobuf:: wire_format:: WireTypeVarint ) ;
158188 }
189+ if !self . reply_to_id . is_empty ( ) {
190+ my_size += :: protobuf:: rt:: string_size ( 4 , & self . reply_to_id ) ;
191+ }
159192 my_size += :: protobuf:: rt:: unknown_fields_size ( self . get_unknown_fields ( ) ) ;
160193 self . cached_size . set ( my_size) ;
161194 my_size
@@ -171,6 +204,9 @@ impl ::protobuf::Message for SendMessageRequest {
171204 if self . amount != 0 {
172205 os. write_int64 ( 3 , self . amount ) ?;
173206 }
207+ if !self . reply_to_id . is_empty ( ) {
208+ os. write_string ( 4 , & self . reply_to_id ) ?;
209+ }
174210 os. write_unknown_fields ( self . get_unknown_fields ( ) ) ?;
175211 :: std:: result:: Result :: Ok ( ( ) )
176212 }
@@ -224,6 +260,11 @@ impl ::protobuf::Message for SendMessageRequest {
224260 |m : & SendMessageRequest | { & m. amount } ,
225261 |m : & mut SendMessageRequest | { & mut m. amount } ,
226262 ) ) ;
263+ fields. push ( :: protobuf:: reflect:: accessor:: make_simple_field_accessor :: < _ , :: protobuf:: types:: ProtobufTypeString > (
264+ "reply_to_id" ,
265+ |m : & SendMessageRequest | { & m. reply_to_id } ,
266+ |m : & mut SendMessageRequest | { & mut m. reply_to_id } ,
267+ ) ) ;
227268 :: protobuf:: reflect:: MessageDescriptor :: new_pb_name :: < SendMessageRequest > (
228269 "SendMessageRequest" ,
229270 fields,
@@ -243,6 +284,7 @@ impl ::protobuf::Clear for SendMessageRequest {
243284 self . msg . clear ( ) ;
244285 self . pubkey . clear ( ) ;
245286 self . amount = 0 ;
287+ self . reply_to_id . clear ( ) ;
246288 self . unknown_fields . clear ( ) ;
247289 }
248290}
@@ -421,49 +463,53 @@ impl ::protobuf::reflect::ProtobufValue for SendMessageResponse {
421463static file_descriptor_proto_data: & ' static [ u8 ] = b"\
422464 \n 'proto/imp/api/messaging/messaging.proto\x12 \t messaging\x1a \x1c google/\
423465 api/annotations.proto\x1a .protoc-gen-openapiv2/options/annotations.proto\
424- \" V \n \x12 SendMessageRequest\x12 \x10 \n \x03 msg\x18 \x01 \x20 \x01 (\t R\x03 msg\
466+ \" v \n \x12 SendMessageRequest\x12 \x10 \n \x03 msg\x18 \x01 \x20 \x01 (\t R\x03 msg\
425467 \x12 \x16 \n \x06 pubkey\x18 \x02 \x20 \x01 (\t R\x06 pubkey\x12 \x16 \n \x06 amount\
426- \x18 \x03 \x20 \x01 (\x03 R\x06 amount\" %\n \x13 SendMessageResponse\x12 \x0e \n \
427- \x02 id\x18 \x01 \x20 \x01 (\t R\x02 id2v\n \t Messaging\x12 i\n \x0b SendMessage\
428- \x12 \x1d .messaging.SendMessageRequest\x1a \x1e .messaging.SendMessageRespo\
429- nse\" \x1b \x82 \xd3 \xe4 \x93 \x02 \x15 \" \x10 /v1/message/send:\x01 *B\xc9 \x01 Z#\
430- github.com/imperviousai/freeimp/gen\x92 A\xa0 \x01 \x12 A\n \x12 Messaging\x20 \
431- Services\" &\n \r Impervious\x20 AI\x12 \x15 https://impervious.ai2\x03 1.0*\
432- \x03 \x01 \x02 \x04 2\x10 application/json:\x10 application/jsonr2\n \x14 Docume\
433- ntation\x20 on\x20 IMP\x12 \x1a https://docs.impervious.aiJ\xd3 \x07 \n \x06 \
434- \x12 \x04 \x01 \0 ;\x01 \n >\n \x01 \x0c \x12 \x03 \x01 \0 \x12 \x1a 4/\x20 Allows\x20 fo\
435- r\x20 p2p\x20 messaging\x20 between\x20 Impervious\x20 nodes\n \n \x08 \n \x01 \
436- \x02 \x12 \x03 \x03 \0 \x12 \n \x08 \n \x01 \x08 \x12 \x03 \x05 \0 :\n \t \n \x02 \x08 \x0b \
437- \x12 \x03 \x05 \0 :\n \t \n \x02 \x03 \0 \x12 \x03 \x07 \0 &\n \t \n \x02 \x03 \x01 \x12 \x03 \
438- \x08 \0 8\n \t \n \x01 \x08 \x12 \x04 \n \0 \x1c \x02 \n \x0b \n \x03 \x08 \x92 \x08 \x12 \
439- \x04 \n \0 \x1c \x02 \n T\n \x02 \x06 \0 \x12 \x04 !\0 +\x01 \x1a H*\n \x20 Messaging\x20 \
440- service\x20 allows\x20 for\x20 p2p\x20 messaging\x20 between\x20 Impervious\
441- \x20 nodes.\n \n \n \n \x03 \x06 \0 \x01 \x12 \x03 !\x08 \x11 \n C\n \x04 \x06 \0 \x02 \0 \
442- \x12 \x04 %\x08 *\t \x1a 5*\n \x20 SendMessage\x20 sends\x20 a\x20 text\x20 message\
443- \x20 to\x20 another\x20 node.\n \n \x0c \n \x05 \x06 \0 \x02 \0 \x01 \x12 \x03 %\x0c \
444- \x17 \n \x0c \n \x05 \x06 \0 \x02 \0 \x02 \x12 \x03 %\x18 *\n \x0c \n \x05 \x06 \0 \x02 \0 \
445- \x03 \x12 \x03 %5H\n \r \n \x05 \x06 \0 \x02 \0 \x04 \x12 \x04 &\x10 )\x12 \n \x11 \n \t \
446- \x06 \0 \x02 \0 \x04 \xb0 \xca \xbc \" \x12 \x04 &\x10 )\x12 \n ;\n \x02 \x04 \0 \x12 \x04 0\
447- \0 4\x01 \x1a /*\n \x20 Represents\x20 a\x20 message\x20 send\x20 to\x20 a\x20 far\
448- \x20 end\x20 node\n \n \n \n \x03 \x04 \0 \x01 \x12 \x03 0\x08 \x1a \n D\n \x04 \x04 \0 \
449- \x02 \0 \x12 \x03 1\x08 \x17 \" 7\x20 the\x20 raw\x20 message\x20 itself\x20 to\x20 b\
450- e\x20 sent\x20 to\x20 the\x20 far\x20 end\x20 node\n \n \x0c \n \x05 \x04 \0 \x02 \0 \
451- \x05 \x12 \x03 1\x08 \x0e \n \x0c \n \x05 \x04 \0 \x02 \0 \x01 \x12 \x03 1\x0f \x12 \n \x0c \
452- \n \x05 \x04 \0 \x02 \0 \x03 \x12 \x03 1\x15 \x16 \n G\n \x04 \x04 \0 \x02 \x01 \x12 \x03 2\
453- \x08 \x1a \" :\x20 The\x20 public\x20 key\x20 of\x20 the\x20 far\x20 end\x20 lightn\
454- ing\x20 node\x20 running\x20 IMP\n \n \x0c \n \x05 \x04 \0 \x02 \x01 \x05 \x12 \x03 2\
455- \x08 \x0e \n \x0c \n \x05 \x04 \0 \x02 \x01 \x01 \x12 \x03 2\x0f \x15 \n \x0c \n \x05 \x04 \
456- \0 \x02 \x01 \x03 \x12 \x03 2\x18 \x19 \n Y\n \x04 \x04 \0 \x02 \x02 \x12 \x03 3\x08 \x19 \
457- \" L\x20 Optional\x20 satoshi\x20 amount\x20 to\x20 send\x20 along\x20 with\x20 t\
458- he\x20 message,\x20 defaults\x20 to\x20 1\x20 sat.\n \n \x0c \n \x05 \x04 \0 \x02 \
459- \x02 \x05 \x12 \x03 3\x08 \r \n \x0c \n \x05 \x04 \0 \x02 \x02 \x01 \x12 \x03 3\x0e \x14 \n \
460- \x0c \n \x05 \x04 \0 \x02 \x02 \x03 \x12 \x03 3\x17 \x18 \n >\n \x02 \x04 \x01 \x12 \x04 9\
461- \0 ;\x01 \x1a 2*\n \x20 Represents\x20 a\x20 response\x20 back\x20 from\x20 a\x20 s\
462- ent\x20 message\n \n \n \n \x03 \x04 \x01 \x01 \x12 \x03 9\x08 \x1b \n \" \n \x04 \x04 \
463- \x01 \x02 \0 \x12 \x03 :\x08 \x16 \" \x15 \x20 returned\x20 message\x20 ID\n \n \x0c \n \
464- \x05 \x04 \x01 \x02 \0 \x05 \x12 \x03 :\x08 \x0e \n \x0c \n \x05 \x04 \x01 \x02 \0 \x01 \
465- \x12 \x03 :\x0f \x11 \n \x0c \n \x05 \x04 \x01 \x02 \0 \x03 \x12 \x03 :\x14 \x15 b\x06 pro\
466- to3\
468+ \x18 \x03 \x20 \x01 (\x03 R\x06 amount\x12 \x1e \n \x0b reply_to_id\x18 \x04 \x20 \
469+ \x01 (\t R\t replyToId\" %\n \x13 SendMessageResponse\x12 \x0e \n \x02 id\x18 \x01 \
470+ \x20 \x01 (\t R\x02 id2v\n \t Messaging\x12 i\n \x0b SendMessage\x12 \x1d .messagin\
471+ g.SendMessageRequest\x1a \x1e .messaging.SendMessageResponse\" \x1b \x82 \xd3 \
472+ \xe4 \x93 \x02 \x15 \" \x10 /v1/message/send:\x01 *B\xc9 \x01 Z#github.com/imperv\
473+ iousai/freeimp/gen\x92 A\xa0 \x01 \x12 A\n \x12 Messaging\x20 Services\" &\n \r Im\
474+ pervious\x20 AI\x12 \x15 https://impervious.ai2\x03 1.0*\x03 \x01 \x02 \x04 2\
475+ \x10 application/json:\x10 application/jsonr2\n \x14 Documentation\x20 on\x20 \
476+ IMP\x12 \x1a https://docs.impervious.aiJ\xca \x08 \n \x06 \x12 \x04 \x01 \0 <\x01 \
477+ \n >\n \x01 \x0c \x12 \x03 \x01 \0 \x12 \x1a 4/\x20 Allows\x20 for\x20 p2p\x20 messagi\
478+ ng\x20 between\x20 Impervious\x20 nodes\n \n \x08 \n \x01 \x02 \x12 \x03 \x03 \0 \x12 \
479+ \n \x08 \n \x01 \x08 \x12 \x03 \x05 \0 :\n \t \n \x02 \x08 \x0b \x12 \x03 \x05 \0 :\n \t \n \
480+ \x02 \x03 \0 \x12 \x03 \x07 \0 &\n \t \n \x02 \x03 \x01 \x12 \x03 \x08 \0 8\n \t \n \x01 \x08 \
481+ \x12 \x04 \n \0 \x1c \x02 \n \x0b \n \x03 \x08 \x92 \x08 \x12 \x04 \n \0 \x1c \x02 \n T\n \
482+ \x02 \x06 \0 \x12 \x04 !\0 +\x01 \x1a H*\n \x20 Messaging\x20 service\x20 allows\x20 \
483+ for\x20 p2p\x20 messaging\x20 between\x20 Impervious\x20 nodes.\n \n \n \n \x03 \
484+ \x06 \0 \x01 \x12 \x03 !\x08 \x11 \n C\n \x04 \x06 \0 \x02 \0 \x12 \x04 %\x08 *\t \x1a 5*\n \
485+ \x20 SendMessage\x20 sends\x20 a\x20 text\x20 message\x20 to\x20 another\x20 nod\
486+ e.\n \n \x0c \n \x05 \x06 \0 \x02 \0 \x01 \x12 \x03 %\x0c \x17 \n \x0c \n \x05 \x06 \0 \x02 \
487+ \0 \x02 \x12 \x03 %\x18 *\n \x0c \n \x05 \x06 \0 \x02 \0 \x03 \x12 \x03 %5H\n \r \n \x05 \
488+ \x06 \0 \x02 \0 \x04 \x12 \x04 &\x10 )\x12 \n \x11 \n \t \x06 \0 \x02 \0 \x04 \xb0 \xca \xbc \
489+ \" \x12 \x04 &\x10 )\x12 \n ;\n \x02 \x04 \0 \x12 \x04 0\0 5\x01 \x1a /*\n \x20 Represent\
490+ s\x20 a\x20 message\x20 send\x20 to\x20 a\x20 far\x20 end\x20 node\n \n \n \n \x03 \
491+ \x04 \0 \x01 \x12 \x03 0\x08 \x1a \n D\n \x04 \x04 \0 \x02 \0 \x12 \x03 1\x08 \x17 \" 7\x20 \
492+ the\x20 raw\x20 message\x20 itself\x20 to\x20 be\x20 sent\x20 to\x20 the\x20 far\
493+ \x20 end\x20 node\n \n \x0c \n \x05 \x04 \0 \x02 \0 \x05 \x12 \x03 1\x08 \x0e \n \x0c \n \
494+ \x05 \x04 \0 \x02 \0 \x01 \x12 \x03 1\x0f \x12 \n \x0c \n \x05 \x04 \0 \x02 \0 \x03 \x12 \
495+ \x03 1\x15 \x16 \n G\n \x04 \x04 \0 \x02 \x01 \x12 \x03 2\x08 \x1a \" :\x20 The\x20 publi\
496+ c\x20 key\x20 of\x20 the\x20 far\x20 end\x20 lightning\x20 node\x20 running\x20 I\
497+ MP\n \n \x0c \n \x05 \x04 \0 \x02 \x01 \x05 \x12 \x03 2\x08 \x0e \n \x0c \n \x05 \x04 \0 \
498+ \x02 \x01 \x01 \x12 \x03 2\x0f \x15 \n \x0c \n \x05 \x04 \0 \x02 \x01 \x03 \x12 \x03 2\x18 \
499+ \x19 \n Y\n \x04 \x04 \0 \x02 \x02 \x12 \x03 3\x08 \x19 \" L\x20 Optional\x20 satoshi\
500+ \x20 amount\x20 to\x20 send\x20 along\x20 with\x20 the\x20 message,\x20 defaults\
501+ \x20 to\x20 1\x20 sat.\n \n \x0c \n \x05 \x04 \0 \x02 \x02 \x05 \x12 \x03 3\x08 \r \n \x0c \
502+ \n \x05 \x04 \0 \x02 \x02 \x01 \x12 \x03 3\x0e \x14 \n \x0c \n \x05 \x04 \0 \x02 \x02 \x03 \
503+ \x12 \x03 3\x17 \x18 \n K\n \x04 \x04 \0 \x02 \x03 \x12 \x03 4\x08 \x1f \" >\x20 Optional\
504+ \x20 ID\x20 of\x20 the\x20 message\x20 that\x20 this\x20 message\x20 is\x20 reply\
505+ ing\x20 to.\n \n \x0c \n \x05 \x04 \0 \x02 \x03 \x05 \x12 \x03 4\x08 \x0e \n \x0c \n \x05 \
506+ \x04 \0 \x02 \x03 \x01 \x12 \x03 4\x0f \x1a \n \x0c \n \x05 \x04 \0 \x02 \x03 \x03 \x12 \
507+ \x03 4\x1d \x1e \n >\n \x02 \x04 \x01 \x12 \x04 :\0 <\x01 \x1a 2*\n \x20 Represents\x20 \
508+ a\x20 response\x20 back\x20 from\x20 a\x20 sent\x20 message\n \n \n \n \x03 \x04 \
509+ \x01 \x01 \x12 \x03 :\x08 \x1b \n \" \n \x04 \x04 \x01 \x02 \0 \x12 \x03 ;\x08 \x16 \" \x15 \
510+ \x20 returned\x20 message\x20 ID\n \n \x0c \n \x05 \x04 \x01 \x02 \0 \x05 \x12 \x03 ;\
511+ \x08 \x0e \n \x0c \n \x05 \x04 \x01 \x02 \0 \x01 \x12 \x03 ;\x0f \x11 \n \x0c \n \x05 \x04 \
512+ \x01 \x02 \0 \x03 \x12 \x03 ;\x14 \x15 b\x06 proto3\
467513 ";
468514
469515static file_descriptor_proto_lazy: :: protobuf:: rt:: LazyV2 < :: protobuf:: descriptor:: FileDescriptorProto > = :: protobuf:: rt:: LazyV2 :: INIT ;
0 commit comments