Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3345616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:12:24+00:00 2026-05-18T01:12:24+00:00

It seems I don’t understand something simple about Protocol Buffers, but this is very

  • 0

It seems I don’t understand something simple about Protocol Buffers, but this is very important question for me and for my real use-case.

While reading documentation about Protocol Buffers I don’t understand how one know which message you should decode from the stream? All examples about some defined Message, but if you have defined several completelly different messages and you want to send those messages between 2 processes — how do you know which message you have just received?

Or maybe Protocol Buffers do not try to address this problem and leave this question for another abstraction level?

Or maybe I should pack the message into structure like that:

message wrapper {
   required string message_name = 1;
   string packed_message = 2; 
}

And then I should decode message in 2 stages: get the message_name at first, and then decode real packed message at second stage, should not I?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:12:25+00:00Added an answer on May 18, 2026 at 1:12 am

    Look at self describing messages section

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand this behaviour but it seems I don't. Please see this
I'm sorry if this is a newbie question, but it seems I don't get
this seems straightforward enough, I don't know if it's a bug, or just something
This seems to be defeating me at the moment but I don't think I
This seems like it would be a common issue to be but I don't
Alright I don't see why this isnt working. It seems pretty simple. Here is
It's a petty basic question which seems I don't fully understand, What exactly is
I thought that I understood php arrays, but it seems I don't :( This
I googled my question but it seems like I don't know what's it called
I have tried many permutations but they all don't seems to work well. Am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.