Is it valid to break up a fullname in a .proto file?

20 views
Skip to first unread message

Jeffory Orrok

unread,
Aug 27, 2021, 12:45:14 PM8/27/21
to prot...@googlegroups.com

I recently was given a .proto file that had whitespace (newline and spaces) inserted in the middle of a fullname.  The pbjs parser which comes with protobufjs threw an error, but when I spoke to our partner’s engineer about it, he said it was valid syntax produced by the clang formatter.  I would like to confirm whether this is accurate.

 

Here is a sample snippet,

 

  rpc CreateChangeReview(

      xxxxx.yyyyy.zzzzz.proto.change_validation.CreateChangeReviewRequest)

      returns (xxxxx.yyyyy.zzzzz.proto.change_validation

                   .CreateChangeReviewResponse) {}

 

This is the error I get back from pbjs

 

[0]          Error: illegal token '.CreateChangeReviewResponse', ')' expected (line 153)

 

Logo, company name

Description automatically generated

Jeffory Orrok
Delivery Engineer

P: + 1.800.404.5617   |   E: jeffor...@itential.com

itential.com  |  developer.itential.io  
Connect with us:  LinkedIn  |  Twitter  |  Newsletter Signup


This e-mail message is for the sole use of the intended recipient(s).  It may contain confidential information, legally privileged information or other information subject to legal restrictions.  If you are not the intended recipient, you may not read it, copy it, use it, or disclose it.  Please notify the sender by replying to this message, and then delete or destroy all copies of this message in all media. Also, this email message is not an offer or acceptance, and it is not intended to be all or part of an agreement.

 

 



Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.

Reply all
Reply to author
Forward
0 new messages