Thanks a lot for your response Adam, but after running your command I am getting the following error:
> > > *[libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] Reading > dangerously large protocol message. If the message turns out to be larger > than 67108864 bytes, parsing will be halted for security reasons. To > increase the limit (or to disable these warnings), see > CodedInputStream::SetTotalBytesLimit() in > google/protobuf/io/coded_stream.h.[libprotobuf ERROR > google/protobuf/io/coded_stream.cc:180] A protocol message was rejected > because it was too big (more than 67108864 bytes). To increase the limit > (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() > in google/protobuf/io/coded_stream.h.[libprotobuf WARNING > google/protobuf/io/coded_stream.cc:78] The total number of bytes read was > 67108864Failed to parse input.* As, far as I understood, my file size is too large for decoding. It mentions something about increasing file size limit; but I am not clear how to solve it. *ANY SOLUTIONS ???* On Thursday, March 21, 2019 at 8:47:19 PM UTC+6, Adam Cozzette wrote: > > Protocol buffers provide a binary format for storing data, but to work > with them you also need the relevant schema defined in a .proto file--this > would be publisher-settings.proto in your case. Protoc is ordinarily used > for generating code to work with protocol buffers but it also has some > encoding and decoding functionality built in for convenience. > > What error are you getting when you run that protoc command? > > Here is another command you could also try: protoc --decode_raw < > 2019-03-19T10_00.pb > That version will decode the data as much as possible without relying on > the schema, so its output will be less useful but it should at least give > you a rough idea of what data is stored. > > On Thu, Mar 21, 2019 at 2:08 AM tausif.elahi via Protocol Buffers < > [email protected] <javascript:>> wrote: > >> I am new to ProtoBuff file formats. I received a zip file which contains >> .pb file; the size of the file is approximately 70mb. >> I want to decode the file via command line interface. >> I have set up protoc environment variable, library from a zip file named >> this *protoc-3.6.0-win32.zip *downloaded from google protobuf >> documentation site. >> >> I use google ADX, so I have talked with their customer support, for >> decoding the file, an their replay are as follows: >> >> >>> *I've received an update from our specialist team stating that you need >>> to convert the file from protocol buffer to text using protoc. The github >>> for this can be found here- https://github.com/protocolbuffers/protobuf >>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fprotocolbuffers%2Fprotobuf&sa=D&sntz=1&usg=AFQjCNEn6oFdJH4fx1CqgtNmPgUy6nthxA> >>> . >>> This is a command line tool, once you have downloaded it and run a line of >>> code in the command line similar to this: protoc --decode >>> PublisherSettingsList --proto_path . publisher-settings.proto < >>> 2019-03-19T10_00.pb > pub_settings* >> >> >> I have read their documentation and have downloaded the git files; *but >> I don't understand, how is it relevant for decoding my file ?* >> I have also downloaded the publisher-settings.proto file, from the >> folowing link: >> >> >> https://developers.google.com/authorized-buyers/rtb/downloads/publisher-settings-proto >> >> Also, I have tried their commands via cmd, but nothing works. >> >> >> *Can anyone help me regarding this issue ? What is the actual command for >> decoding the file ? How is it actually done ?* >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Protocol Buffers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/protobuf. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
