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 <
protobuf@googlegroups.com> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> 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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to