@@ -390,14 +390,139 @@ impl ::protobuf::reflect::ProtobufValue for EchoRepeatedResponse {
390390 type RuntimeType = :: protobuf:: reflect:: rt:: RuntimeTypeMessage < Self > ;
391391}
392392
393+ // @@protoc_insertion_point(message:test.UnsupportedRequest)
394+ #[ derive( PartialEq , Clone , Default , Debug ) ]
395+ pub struct UnsupportedRequest {
396+ // message fields
397+ // @@protoc_insertion_point(field:test.UnsupportedRequest.echo)
398+ pub echo : :: std:: string:: String ,
399+ // special fields
400+ // @@protoc_insertion_point(special_field:test.UnsupportedRequest.special_fields)
401+ pub special_fields : :: protobuf:: SpecialFields ,
402+ }
403+
404+ impl < ' a > :: std:: default:: Default for & ' a UnsupportedRequest {
405+ fn default ( ) -> & ' a UnsupportedRequest {
406+ <UnsupportedRequest as :: protobuf:: Message >:: default_instance ( )
407+ }
408+ }
409+
410+ impl UnsupportedRequest {
411+ pub fn new ( ) -> UnsupportedRequest {
412+ :: std:: default:: Default :: default ( )
413+ }
414+
415+ fn generated_message_descriptor_data ( ) -> :: protobuf:: reflect:: GeneratedMessageDescriptorData {
416+ let mut fields = :: std:: vec:: Vec :: with_capacity ( 1 ) ;
417+ let mut oneofs = :: std:: vec:: Vec :: with_capacity ( 0 ) ;
418+ fields. push ( :: protobuf:: reflect:: rt:: v2:: make_simpler_field_accessor :: < _ , _ > (
419+ "echo" ,
420+ |m : & UnsupportedRequest | { & m. echo } ,
421+ |m : & mut UnsupportedRequest | { & mut m. echo } ,
422+ ) ) ;
423+ :: protobuf:: reflect:: GeneratedMessageDescriptorData :: new_2 :: < UnsupportedRequest > (
424+ "UnsupportedRequest" ,
425+ fields,
426+ oneofs,
427+ )
428+ }
429+ }
430+
431+ impl :: protobuf:: Message for UnsupportedRequest {
432+ const NAME : & ' static str = "UnsupportedRequest" ;
433+
434+ fn is_initialized ( & self ) -> bool {
435+ true
436+ }
437+
438+ fn merge_from ( & mut self , is : & mut :: protobuf:: CodedInputStream < ' _ > ) -> :: protobuf:: Result < ( ) > {
439+ while let Some ( tag) = is. read_raw_tag_or_eof ( ) ? {
440+ match tag {
441+ 10 => {
442+ self . echo = is. read_string ( ) ?;
443+ } ,
444+ tag => {
445+ :: protobuf:: rt:: read_unknown_or_skip_group ( tag, is, self . special_fields . mut_unknown_fields ( ) ) ?;
446+ } ,
447+ } ;
448+ }
449+ :: std:: result:: Result :: Ok ( ( ) )
450+ }
451+
452+ // Compute sizes of nested messages
453+ #[ allow( unused_variables) ]
454+ fn compute_size ( & self ) -> u64 {
455+ let mut my_size = 0 ;
456+ if !self . echo . is_empty ( ) {
457+ my_size += :: protobuf:: rt:: string_size ( 1 , & self . echo ) ;
458+ }
459+ my_size += :: protobuf:: rt:: unknown_fields_size ( self . special_fields . unknown_fields ( ) ) ;
460+ self . special_fields . cached_size ( ) . set ( my_size as u32 ) ;
461+ my_size
462+ }
463+
464+ fn write_to_with_cached_sizes ( & self , os : & mut :: protobuf:: CodedOutputStream < ' _ > ) -> :: protobuf:: Result < ( ) > {
465+ if !self . echo . is_empty ( ) {
466+ os. write_string ( 1 , & self . echo ) ?;
467+ }
468+ os. write_unknown_fields ( self . special_fields . unknown_fields ( ) ) ?;
469+ :: std:: result:: Result :: Ok ( ( ) )
470+ }
471+
472+ fn special_fields ( & self ) -> & :: protobuf:: SpecialFields {
473+ & self . special_fields
474+ }
475+
476+ fn mut_special_fields ( & mut self ) -> & mut :: protobuf:: SpecialFields {
477+ & mut self . special_fields
478+ }
479+
480+ fn new ( ) -> UnsupportedRequest {
481+ UnsupportedRequest :: new ( )
482+ }
483+
484+ fn clear ( & mut self ) {
485+ self . echo . clear ( ) ;
486+ self . special_fields . clear ( ) ;
487+ }
488+
489+ fn default_instance ( ) -> & ' static UnsupportedRequest {
490+ static instance: UnsupportedRequest = UnsupportedRequest {
491+ echo : :: std:: string:: String :: new ( ) ,
492+ special_fields : :: protobuf:: SpecialFields :: new ( ) ,
493+ } ;
494+ & instance
495+ }
496+ }
497+
498+ impl :: protobuf:: MessageFull for UnsupportedRequest {
499+ fn descriptor ( ) -> :: protobuf:: reflect:: MessageDescriptor {
500+ static descriptor: :: protobuf:: rt:: Lazy < :: protobuf:: reflect:: MessageDescriptor > = :: protobuf:: rt:: Lazy :: new ( ) ;
501+ descriptor. get ( || file_descriptor ( ) . message_by_package_relative_name ( "UnsupportedRequest" ) . unwrap ( ) ) . clone ( )
502+ }
503+ }
504+
505+ impl :: std:: fmt:: Display for UnsupportedRequest {
506+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
507+ :: protobuf:: text_format:: fmt ( self , f)
508+ }
509+ }
510+
511+ impl :: protobuf:: reflect:: ProtobufValue for UnsupportedRequest {
512+ type RuntimeType = :: protobuf:: reflect:: rt:: RuntimeTypeMessage < Self > ;
513+ }
514+
393515static file_descriptor_proto_data: & ' static [ u8 ] = b"\
394516 \n \n test.proto\x12 \x04 test\x1a \x17 validate/validate.proto\" *\n \x0b EchoRe\
395517 quest\x12 \x1b \n \x04 echo\x18 \x01 \x20 \x01 (\t R\x04 echoB\x07 \xfa B\x04 r\x02 \
396518 \x10 \x01 \" \" \n \x0c EchoResponse\x12 \x12 \n \x04 echo\x18 \x01 \x20 \x01 (\t R\x04 \
397519 echo\" .\n \x14 EchoRepeatedResponse\x12 \x16 \n \x06 values\x18 \x01 \x20 \x03 (\t \
398- R\x06 values2t\n \x04 Test\x12 -\n \x04 Echo\x12 \x11 .test.EchoRequest\x1a \x12 .\
399- test.EchoResponse\x12 =\n \x0c EchoRepeated\x12 \x11 .test.EchoRequest\x1a \
400- \x1a .test.EchoRepeatedResponseb\x06 proto3\
520+ R\x06 values\" 1\n \x12 UnsupportedRequest\x12 \x1b \n \x04 echo\x18 \x01 \x20 \x01 \
521+ (\t R\x04 echoB\x07 \xfa B\x04 r\x02 (\x01 2\xb5 \x01 \n \x04 Test\x12 -\n \x04 Echo\
522+ \x12 \x11 .test.EchoRequest\x1a \x12 .test.EchoResponse\x12 =\n \x0c EchoRepeat\
523+ ed\x12 \x11 .test.EchoRequest\x1a \x1a .test.EchoRepeatedResponse\x12 ?\n \x0f \
524+ UnsupportedEcho\x12 \x18 .test.UnsupportedRequest\x1a \x12 .test.EchoRespons\
525+ eb\x06 proto3\
401526 ";
402527
403528/// `FileDescriptorProto` object which was a source for this generated file
@@ -416,10 +541,11 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
416541 let generated_file_descriptor = generated_file_descriptor_lazy. get ( || {
417542 let mut deps = :: std:: vec:: Vec :: with_capacity ( 1 ) ;
418543 deps. push ( super :: validate:: file_descriptor ( ) . clone ( ) ) ;
419- let mut messages = :: std:: vec:: Vec :: with_capacity ( 3 ) ;
544+ let mut messages = :: std:: vec:: Vec :: with_capacity ( 4 ) ;
420545 messages. push ( EchoRequest :: generated_message_descriptor_data ( ) ) ;
421546 messages. push ( EchoResponse :: generated_message_descriptor_data ( ) ) ;
422547 messages. push ( EchoRepeatedResponse :: generated_message_descriptor_data ( ) ) ;
548+ messages. push ( UnsupportedRequest :: generated_message_descriptor_data ( ) ) ;
423549 let mut enums = :: std:: vec:: Vec :: with_capacity ( 0 ) ;
424550 :: protobuf:: reflect:: GeneratedFileDescriptor :: new_generated (
425551 file_descriptor_proto ( ) ,
0 commit comments