[protobuf] Reading FileOptions extension in C++?

2022-09-14 Thread Colin McInnes
I know how to read an option within Message by using GetExtension on the 
Message, but can I do that for a global option that is not encapsulated 
within a message?

So in C++, how would I read the "my_file_name" option from the proto below?

extend google.protobuf.FileOptions {
  string my_file_name = 1001;
}

extend google.protobuf.MessageOptions {
  optional string my_option = 51234;
}

option (my_file_name) = "filename.txt";

message MyMessage {
  option (my_option) = "Hello world!";
}

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/59b76f3b-faae-480b-94b0-c8945b6ccad2n%40googlegroups.com.


[protobuf] CLA failure check for cherry picks

2022-09-14 Thread Xavier Bonaventura
Hi,

I wanted to propose a cherry pick for the 21.x branch but the CLA check is 
failing because the original author.
It seems to me that the user of the original author is nothing else than a 
placeholder for a Google employee, how should we proceed?
https://github.com/protocolbuffers/upb/pull/781/checks

Thanks

Xavi

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/733b7727-3b95-4671-bcdf-5e6c41cf0683n%40googlegroups.com.


Re: [protobuf] Autogen.sh not found

2022-09-14 Thread helen ristov
Thanks Mike,

I actually was able to get it to build using cmake. Just modified the
instructions below. I'm setting up a VM for a project I am working on. We
are developing a mobile app that can communicate with devices on cars. The
communication is done through protobuf, but I'm getting my dev environment
setup and just reading through instructions.


git clone https://github.com/protocolbuffers/protobuf.git

cd protobuf

git submodule update --init --recursive

mkdir build

cd build

cmake ..

make

sudo make install



I'm setting up a VM for a project I'm working on that uses protobuf

On Wed, Sep 14, 2022 at 12:53 AM Mike Kruskal  wrote:

> Hey Helen,
>
> See the announcement
>  for
> more information, but the TL;DR is that we're removing autotools support in
> our upcoming release.
>
> The only C++ build systems we will support going forward are Bazel and
> CMake (see the updated documentation
> ).
> I'm curious where you got those setup instructions from?  The release is
> still a work in progress, so it's possible we've missed some references to
> the old instructions.
>
> Depending on what you're trying to do, you have 3 options:
>
> 1) Use CMake as a roughly drop-in replacement for the old autotools
> workflow you referenced.  This is our only supported mechanism for
> *installation* of protobuf, and it looks like that might be what you want.
>
> 2) Install Bazel and use that for build and test.  This may be a bit of an
> adjustment depending on what you're doing
>
> 3) Work from the 21.x branch, which we will continue to support for at
> least 12 months after the 22.x release (according to our breaking change
> policy
> 
> ).
>
> Thanks,
> Mike
>
> On Tue, Sep 13, 2022 at 9:54 AM helen ristov 
> wrote:
>
>> Hello,
>>
>> I am getting an error that the autogen.sh is not found after I clone the
>> directory. I have these setup instructions. Is there something that I am
>> missing?
>>
>> sudo apt-get install autoconf automake libtool curl make g++ unzip
>>
>> git clone https://github.com/protocolbuffers/protobuf.git
>>
>> cd protobuf
>>
>> git submodule update --init --recursive
>>
>> ./autogen.sh
>>
>> ./configure
>>
>> sudo make
>>
>> sudo make check
>>
>> sudo make install
>>
>> sudo ldconfig # refresh shared library cache
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/protobuf/501cfbdc-05f5-4288-a8d7-ac181e00a3c6n%40googlegroups.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CA%2BndOH%3DC6YYkXtw6Df6ihUVRmTmEu%3DwXvN2kc1K8v6rUQVfN4g%40mail.gmail.com.


Re: [protobuf] Consume and Produce to different topics

2022-09-14 Thread Derek Perez
Hello,

I think you’ll wanna ask the Kafka community for advice on this. Protobuf
is merely the data format in use it sounds like and has little to do with
micro service design.

Good luck!
- Derek

On Wed, Sep 14, 2022 at 12:07 AM Itamar Yarden  wrote:

> Hello,
> I am currently working on a project where I need to connect multipile
> micro-services with kafka and to serializer/deserialize messages with
> protobufers,
>
> I am currently trying to figure out how to read data
> with consumer from topic with schema A
> and then process it and produce the procced data to topic with schema B.
>
> Let's say I have service *MyService* and it consumes from topic *A* with
> schema* A_Schema*
>
> message A_Schema {
>   blah blah = 1;
>   blah blah = 2;
>   
> }
>  after processing the message from topic A, MyService needs to produce the
> data to topic B with schema B_Schema
>
> message B_Schema {
>   different_blah different_blah = 1;
>   different_blah different_blah = 2;
>   
> }
>
>
> The services are written with python and use python package "protobuf".
>
>
>
>
>
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/aa791ff0-458f-4674-8642-f7aa4fc89a56n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAD7-yfs193kH3C6nfhcOcGj3uyZM0%2BXg9-_SFTG5teLr7Abhiw%40mail.gmail.com.


[protobuf] Consume and Produce to different topics

2022-09-14 Thread Itamar Yarden
Hello,
I am currently working on a project where I need to connect multipile 
micro-services with kafka and to serializer/deserialize messages with 
protobufers,

I am currently trying to figure out how to read data 
with consumer from topic with schema A
and then process it and produce the procced data to topic with schema B.

Let's say I have service *MyService* and it consumes from topic *A* with 
schema* A_Schema*

message A_Schema {
  blah blah = 1;
  blah blah = 2;
  
}
 after processing the message from topic A, MyService needs to produce the 
data to topic B with schema B_Schema

message B_Schema {
  different_blah different_blah = 1;
  different_blah different_blah = 2;
  
}


The services are written with python and use python package "protobuf".






-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/aa791ff0-458f-4674-8642-f7aa4fc89a56n%40googlegroups.com.