protobuf | 19 Apr 22:01 2014

Issue 631 in protobuf: Fixing issue #641

Status: New
Owner: ----
Labels: Type-Patch

New issue 631 by Omer.d... <at> gmail.com: Fixing issue #641
http://code.google.com/p/protobuf/issues/detail?id=631

I surrounded the print statements with parenthesis.
Hopefully thats it.

Attachments:
	setup.py.patch  782 bytes

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

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

Justin | 18 Apr 20:28 2014
Picon

C++11 for each loops with RepeatedField

I assume there is a simple answer to this, but I'm having trouble finding it and my searches for similar questions have come up empty ... Perhaps it being Friday afternoon is also reducing my ability to solve this :)

I want to be able to use C++11 range-based for loops on a repeated field in my message, but I can't seem to get it to compile properly. This is true for mutable and const references.

So, for example:

for (message_item &curr_message : data.mutable_message_item())

does not work, nor can I do so without the mutable, but I would think it should. 

Is this because RepeatedField does not support the appropriate operators?




--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Damian | 17 Apr 08:29 2014

build protobuf-net

I want to build protobuf-net from sources http://protobuf-net.googlecode.com/svn/trunk/ ?
I am only interested in the desktop version.

When I open Proto 2013.sln in Visual Studio 2013 I can't open some projects because I am missing Mono and Phone.
Some projects target Windows 8, which is means that Tools for Maintaining Store apps for Windows 8 is not installed. My machine is running Windows 8.1.


Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them. 
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- TestWcfServer, "D:\dev\3rdparty\protobuf-net\TestWcfServer\TestWcfServer.csproj"
- protobuf-net_MonoDroid, "D:\dev\3rdparty\protobuf-net\protobuf-net_MonoDroid\protobuf-net_MonoDroid.csproj"
- MonoDroid_DevRig, "D:\dev\3rdparty\protobuf-net\MonoDroid_DevRig\MonoDroid_DevRig.csproj"
- MonoDto, "D:\dev\3rdparty\protobuf-net\MonoDto\MonoDto.csproj"
- protobuf-net_Phone7, "D:\dev\3rdparty\protobuf-net\protobuf-net_Phone7\protobuf-net_Phone7.csproj"
- protobuf-net_Phone8, "D:\dev\3rdparty\protobuf-net\protobuf-net_Phone8\protobuf-net_Phone8.csproj"
- Phone8Dto, "D:\dev\3rdparty\protobuf-net\Phone8Dto\Phone8Dto.csproj"
- Phone8_DevRig, "D:\dev\3rdparty\protobuf-net\Phone8_DevRig\Phone8_DevRig.csproj"


and when I continue I get these message in the output:

D:\dev\3rdparty\protobuf-net\protobuf-net_Silverlight\protobuf-net_Silverlight.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\protobuf-net_Silverlight\protobuf-net_Silverlight.csproj

D:\dev\3rdparty\protobuf-net\SilverlightExtended\SilverlightExtended.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\SilverlightExtended\SilverlightExtended.csproj

D:\dev\3rdparty\protobuf-net\demo-rpc-client-silverlight\demo-rpc-client-silverlight.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\demo-rpc-client-silverlight\demo-rpc-client-silverlight.csproj

D:\dev\3rdparty\protobuf-net\ProtoBufGenerator\ProtoBufGenerator.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\VSSDK\Microsoft.VsSDK.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\ProtoBufGenerator\ProtoBufGenerator.csproj

D:\dev\3rdparty\protobuf-net\SilverDto\SilverDto.csproj : error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  D:\dev\3rdparty\protobuf-net\SilverDto\SilverDto.csproj

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Patrick Wendell | 16 Apr 22:24 2014
Picon

protobuf-java 2.4.X and 2.5.0 are incompatible

Hi All,

I work on Apache Spark which is an open source project. We have recently been dealing with a lot of pain due to the fact that the Java Protobuf libraries for 2.4.X and 2.5.0 are not binary compatible. This makes it really difficult for users to include two dependencies A and B that depend on different versions of protobuf-java.

Are these incompatibilities an omission, or is this an intentional policy that protobuf is okay making API-breaking changes in minor versions? This violates typical semantic-versioning conventions and makes it pretty tough for downstream users.

I don't see any references to library compatibility in the Java protobuf page or the FAQ - apologies if this is covered somewhere...
https://developers.google.com/protocol-buffers/docs/javatutorial
https://developers.google.com/protocol-buffers/docs/faq

- Patrick

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
protobuf | 15 Apr 21:47 2014

Issue 630 in protobuf: Java: initializing bitFields variables

Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 630 by kral.voj... <at> gmail.com: Java: initializing bitFields  
variables
http://code.google.com/p/protobuf/issues/detail?id=630

What steps will reproduce the problem?
1. Generate Java class

What is the expected output? What do you see instead?
In the message class in the init method there are all the variables  
initialized but not the bitFields. This issue does not propagate itself  
when normally used because the bitFields are populate by JVM automatically  
to zeros when new instance is created. However, I thought I would report it  
since it does not seem to me the way it was intended to be. I discovered it  
when I was implementing changes to the generated class to have it behave  
more in "SAX" style than "DOM". So I was reusing one message object  
multiple times and I needed to reset the variables before every usage.

Please use labels and text to provide additional information.
Java, initMethod, bitfields

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

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

protobuf | 15 Apr 04:38 2014

Re: Issue 57 in protobuf: null values should be treated as no value


Comment #46 on issue 57 by ag.coolg... <at> gmail.com: null values should be  
treated as no value
http://code.google.com/p/protobuf/issues/detail?id=57

To have null in proto buffer, can workaround be something like wrapping the  
value and type of value(null/non-null) into a message and then send it  
over. Need opinion.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

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

protobuf | 15 Apr 04:36 2014

Re: Issue 57 in protobuf: null values should be treated as no value


Comment #45 on issue 57 by ankit.ga... <at> gmail.com: null values should be  
treated as no value
http://code.google.com/p/protobuf/issues/detail?id=57

To have null in proto buffer, can workaround me something like wrapping the  
value and type of value(null/non-null) into a message and then send it  
over. Need opinion.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

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

Daniel | 15 Apr 01:03 2014
Picon

no trip_ID in vehiclePositions.pb file any more

Hi,

I am currently trying to decode a vehiclePositions.pb file and saving it into a postgres database table. It worked so far until last week. The table has following columns:

CREATE TABLE vehicle_positions
(
  trip_id integer,
  lat real,
  lon real,
  curr_stop_seq smallint,
  curr_status text,
  stop_id integer,
  timestmp timestamp with time zone
)

The java-code looks as follows:

private static List<VehiclePosition> onMessage(byte[] message, Date date)
    {
        FeedMessage feedMessage = null;
        List<FeedEntity> feedEntityList = null;
        List<VehiclePosition> pos = null;
        try
        {
            // Decode message into List of VehiclePositions
            feedMessage = FeedMessage.PARSER.parseFrom(message);
            feedEntityList = feedMessage.getEntityList();
            pos = new ArrayList<VehiclePosition>(feedEntityList.size());
            DatabaseConnection.openDatabaseConnection();
            System.out.println("Start INSERT into DB: " + new Timestamp(new Date().getTime()));
            for (FeedEntity feedEntity : feedEntityList)
            {
                if (feedEntity.hasVehicle()){
                    pos.add(feedEntity.getVehicle());
                    System.out.println(feedEntity.getVehicle().getTrip() + ", " + feedEntity.getVehicle().getPosition()+"\n");       // INFORMATION ABOUT POSITION AVAILABLE, BUT NO TRIP INFORMATION
                    //DatabaseConnection.saveVehiclePositionIntoDB(feedEntity.getVehicle(), date);
                }
                   
               
            }
        } catch (InvalidProtocolBufferException e)
        {
            System.out.println("Could not decode gtfs-rt message: " + e);
        }
        DatabaseConnection.closeDatabaseConnection();
        if (pos != null && pos.size() > 0)
        {
            // do something
        }
        System.out.println("Finished INSERT into DB: " + new Timestamp(new Date().getTime()));
        return pos;
    }

The byte[] message is gathered by the following method:

private static byte[] convertToByteArray(File file) throws Exception, IOException, UnsupportedEncodingException
    {
        FileInputStream fileInputStream = new FileInputStream(file);
        byte[] data = new byte[(int) file.length()];
        fileInputStream.read(data);
        fileInputStream.close();
        return data;
    }


Until last week, all information about position, stop_ID, current_stop_sequence and the trip_ID was available, when I'm executing the code now, the feedEntity contains all information but the trip_ID. I checked all classes, created the proto.java using protoc again, also tried to debug it, but there is no information about the trip_ID and I don't know why. The vehiclePositions.pb file will be gathered from http://gtfs.ovapi.nl/new/. Can anybody give tips to locate the problem?

Thanks,
Daniel

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Ardeal Liang | 14 Apr 07:22 2014
Picon

where to download older version of protocol buffer?

I need to use older version of protocol buffer in my code.
where to download version 2.1 or other older version of protocol buffer?

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Vimal | 14 Apr 12:06 2014
Picon

Tizen support

Can any one say if protocol buffers are supported in tizen?? If so how can it be 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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Ardeal Liang | 14 Apr 07:52 2014
Picon

where to download older version of protocol buffer?

I need to use older version of protocol to run my code.
where to download version 2.1 or other older version of protocol buffer?

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

Gmane