[protobuf] [Announcement] Protocol Buffers Version 25.4 is Released!

2024-07-25 Thread 'Jie Luo' via Protocol Buffers
You can view the release and complete release notes on [GitHub]( https://github.com/protocolbuffers/protobuf/releases/tag/v25.4). If you experience any issues with the release, please [file a bug](https://github.com/protocolbuffers/protobuf/issues/new/choose) or post on [the Protocol Buffers forum

[protobuf] Protocol Buffers Version 25.1 is Released!

2023-11-15 Thread 'Jie Luo' via Protocol Buffers
This version includes the following non-breaking changes: *Python* - *Raise warnings for deprecated python syntax usages* Ruby - *Add support for extensions in CRuby, JRuby, and FFI Ruby * - *Add support for options in CRuby, JRuby and FFI * You can view the release and complete rele

[protobuf] Re: Constexpr options access?

2022-08-16 Thread 'Jie Luo' via Protocol Buffers
The custom options are in the EnumValueOptions' extension. Example: https://github.com/protocolbuffers/protobuf/blob/5eafa23c98b93386319a3a9d6c1c2894174b5fb0/src/google/protobuf/descriptor_unittest.cc#L3192 在2022年8月11日星期四 UTC-7 06:05:09 写道: > Hi all - > Is there anyway to access custom options ad

[protobuf] Re: Python setup.py linking error on Windows

2022-08-01 Thread 'Jie Luo' via Protocol Buffers
Mark duplicate as https://github.com/protocolbuffers/protobuf/issues/10230 在2022年7月7日星期四 UTC-7 07:51:59 写道: > Hi, > > I got a problem with building python egg file with --cpp_implementation > I've tried to build it with protobuf 3.15.0 on Windows 10 > I got an error: > (python37_protobuf) C:\prot

[protobuf] Re: Importing protobuff data in python

2022-08-01 Thread 'Jie Luo' via Protocol Buffers
Are you using protobuf python cpp extension or pure python? We do have a design of "Optimized Python NumPy Bindings for Repeated Fields" for cpp extension , but the implementation breaks too many users so it was blocked. I will check with the owner to go if we can go forward 在2022年6月15日星期三 UTC-7

[protobuf] Re: external linkage for functions generated in protobuf headers

2019-05-08 Thread 'Jie Luo' via Protocol Buffers
What language of protobuf are you using? We have public APIs for getters and setters. You can look into our web to see how to use them: https://developers.google.com/protocol-buffers/docs/reference/cpp-generated

Re: [protobuf] Re: [Proto2] Language spec help

2018-10-31 Thread 'Jie Luo' via Protocol Buffers
On Wed, Oct 31, 2018 at 2:19 PM Adam Cozzette wrote: > I'm not sure how soon we can expect the proto2 support in C#. Jie, do you > happen to know how close it is to being complete? > I don't think it will be very soon. We do not have people in google working on C# (I only review PRs). Only one pe

[protobuf] Re: FieldMasks in Python?

2018-04-19 Thread 'Jie Luo' via Protocol Buffers
Yes, sample tests: https://github.com/google/protobuf/blob/master/python/google/protobuf/internal/well_known_types_test.py#L356 implementation: https://github.com/google/protobuf/blob/master/python/google/protobuf/internal/well_known_types.py#L398 Note: you do not need to import well_known_types.

Re: [protobuf] Python CPP Implementation

2018-01-17 Thread 'Jie Luo' via Protocol Buffers
Thanks. I will update the document On Tue, Jan 16, 2018 at 11:08 PM, Matthew Heritage wrote: > > Apologies - here is the link to the docs, referring to the Python C++ as > experimental: > https://developers.google.com/protocol-buffers/docs/reference/python-generated#cpp_impl > Scroll down to the

Re: [protobuf] Why Merge complains about 'bytes like object is required!'?

2017-08-07 Thread 'Jie Luo' via Protocol Buffers
I am currently working on a similar issue, can you patch and check if this CL can fix yours issue? https://critique.corp.google.com/#review/163859531 On Thu, Aug 3, 2017 at 5:20 AM, Fenyx wrote: > hi guys, > > I am new to protobuf. I am doing some test projects here. The goal is very > simple: cr

Re: [protobuf] Moving optional field into oneof

2016-08-08 Thread 'Jie Luo' via Protocol Buffers
It will not be dropped after serialize and parse, because you only have one field in the old message. On Mon, Aug 8, 2016 at 3:39 PM, 'Mircea Markus' via Protocol Buffers < protobuf@googlegroups.com> wrote: > Hi, > > The oneof documentation >

Re: [protobuf] Convert .proto file from "proto2" to "proto3"

2016-08-08 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Yes, C# only support proto3. If you only use proto3 features, they are wire compatible. Not all the proto2 file can be converted to proto3, such as: Explicit default values cannot be specified for fields. Enum definitions must start with enum value zero. Extensions must not be used. (

Re: [protobuf] Typo in 2016-07-08 Protocol Buffers Version 3 Language Specification?

2016-08-01 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Will fix it. Thanks On Fri, Jul 29, 2016 at 7:22 AM, Martin Szinger wrote: > Hi, > > I just wanted to point out that there may be a typo in the July 8, 2016 > version of the Protocol Buffers Version 3 Language Specification. > (https://developers.google.com/protocol-buffers/docs/reference/proto3

Re: [protobuf] Trying to use C++ implementation of python but api_implementation.Type() still returns 'python' instead of 'cpp'

2016-07-29 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
I tried and it returns 'cpp' as expected. First, make sure you use the correct commands: python setup.py build --cpp_implementaion python setup.py install --cpp_implementaion Second, Where do you put your .py file to check api_implementation.Type()? Make sure your file does not under protobuf/p

Re: [protobuf] How to tell which implementation I am using, pure python or python compiled using c++?

2016-07-21 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Sorry, the link should be: https://github.com/google/protobuf/blob/master/python/google/protobuf/internal/api_implementation.py On Thu, Jul 21, 2016 at 3:51 PM, Jie Luo wrote: > Try api_implementation.Type() >

Re: [protobuf] How to tell which implementation I am using, pure python or python compiled using c++?

2016-07-21 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Try api_implementation.Type()

Re: [protobuf] Question about Go protobufs and import_prefix

2016-07-01 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
+Ross who is working on Go protobuf. Ross, do you have any comments or suggestions? On Fri, Jun 24, 2016 at 8:35 AM, Zellyn wrote: > Hi folks, > > Apologies in advance for the complex email. It takes a bit of explaining > to set up what we're having trouble with. > > I would like to lay out how

Re: [protobuf] Protobuf Unexpected end-group tag

2016-06-13 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
I am talking about C++ implementation for python. We should add more checks for MergeFromString() in message.cc . I have a change in internal code, however it was blocked by another team because they have

Re: [protobuf] How does HasField works in Python bindings for protobuf

2016-04-22 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
If you are using proto3, HasField is not supported for primitive types. On Wed, Apr 20, 2016 at 4:13 AM, Robert Kuska wrote: > Consider following code: > > message Fly{ > uint32 dtime = 1; > } > > >>> d.ListFields()[0][0].name > 'dtime' > >>> d.ListFields()[0][0].full_name > 'Fly.dtime > >>> >

Re: [protobuf] Protobuf Unexpected end-group tag

2016-03-15 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
It checks the end group tag 4 which should be deprecated. https://developers.google.com/protocol-buffers/docs/encoding#structure On Mon, Mar 14, 2016 at 6:41 PM, Lim Wei Chiang wrote: > Hi Jie Luo, > > What does the error denote, what should I be checking for? > > The link you sent has a typo I

Re: [protobuf] Protobuf Unexpected end-group tag

2016-03-14 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
We are going to change the c++ implementation to the same behavior with pure python which will raise 'Unexpected end-group tag.' too. Please see http://b/27494216 On Sat, Mar 12, 2016 at 11:46 PM, Wei Chiang Lim wrote: > Hi all > > I'm trying parse protobuf messages subscribed from a zeromq feed

[protobuf] Re: Any type with python

2016-02-26 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Yes, Any is supported for python runtime: https://github.com/google/protobuf/blob/master/python/google/protobuf/internal/well_known_types.py On Friday, February 26, 2016 at 8:44:52 AM UTC-8, Tim Richardson wrote: > > Is the Any type implemented in the python libraries yet? > > I read this on the

[protobuf] Re: Timestamps

2016-02-26 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Timestamp, Duration, Any, Struct ... are all Well known types added in proto3. Sorry that the documentation for Well known types is not complete yet. We are still working on improving it. On Tuesday, February 23, 2016 at 4:12:09 PM UTC-8, Rich wrote: > > The Proto3 docs reference a "Timestamp"

[protobuf] Re: Question / Proposal: Wrappers for handling signed & encrypted data

2016-02-26 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Protobuf does not support this On Friday, February 19, 2016 at 3:57:10 PM UTC-8, Eric Anderson wrote: > > Is anyone aware of a library / wrapper for working with encrypted and/or > signed data in protobufs (or other similar message description & > serialization tools)? > > I keep finding myself

[protobuf] Re: Is there something like a setRepeatedFieldBuilder method for a Message.Builder?

2016-02-26 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Try addRepeated...Builder() and then getRepeatedFieldBuilder(): https://github.com/google/protobuf/blob/master/java/core/src/test/java/com/google/protobuf/GeneratedMessageTest.java#L1613 On Friday, February 19, 2016 at 3:57:10 PM UTC-8, Diana Contreras wrote: > > Is there a chance that there is a

Re: [protobuf] How to install protobuf 2.6 for python 3?

2014-09-02 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Our setup.py does not yet do the right thing for 2to3 conversions with Python 3, manually run the tests and it should work in Python 3.3+ 2014-09-01 3:03 GMT-07:00 EARob Agar : > How can I install protobuf 2.6 for use by python 3? Both pip3 install > protobuf and manual installation with python3

[protobuf] Re: 2.6.0 released

2014-08-25 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Sorry that my original announcement has a wrong title 2014-08-25 20:34 GMT-07:00 Jie Luo : > Hi all, > > The final release of Protobuf 2.6.0 is now available: > https://code.google.com/p/protobuf/wiki/Download?tm=2 > > Documentation will be updated soon. > > CHANGES > > 2014-08-15 ver

[protobuf] 2.6.0 released

2014-08-25 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Hi all, The final release of Protobuf 2.6.0 is now available: https://code.google.com/p/protobuf/wiki/Download?tm=2 Documentation will be updated soon. CHANGES 2014-08-15 version 2.6.0: General * Added oneofs(unions) feature. Fields in the same oneof will share memory and at most one f

[protobuf] 2.5.0 released

2014-08-25 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Hi all, The final release of Protobuf 2.6.0 is now available: https://code.google.com/p/protobuf/wiki/Download?tm=2 Documentation will be updated soon. CHANGES 2014-08-15 version 2.6.0: General * Added oneofs(unions) feature. Fields in the same oneof will share memory and at most one f

Re: [protobuf] Re: 2.6.0 release candidate

2014-08-21 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Thank you Simon. I've add stl_util.h to nobase_include_HEADERS by https://code.google.com/p/protobuf/source/detail?r=574 Thanks, Jie 2014-08-21 9:54 GMT-07:00 Simon Newton : > > > > On Tuesday, August 19, 2014 1:39:28 PM UTC-7, Jie Luo wrote: >> >> Hi all, >> >> I have uploaded the release candi

[protobuf] 2.6.0 release candidate

2014-08-19 Thread &#x27;Jie Luo&#x27; via Protocol Buffers
Hi all, I have uploaded the release candidate of protobuf-2.6.0 (protobuf-2.6.0rc1) here: https://protobuf.googlecode.com/svn/rc/ The RC1 has been tested on Linux, Mac, Cygwin, MinGW and MSVC (2010, 2013). Feel free to try it out. Feedback is highly appreciated. Thanks, Jie -- You received t