[protobuf] Repeated enums

2016-05-02 Thread 'Disney Lam' via Protocol Buffers
Would it be possible to include documentation for repeated enums? For 
example,

message A {

}

-- 
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.


[protobuf] Repeated Enums

2016-05-02 Thread 'Disney Lam' via Protocol Buffers
Would it be possible to include documentation for repeated enums? I noticed 
that it compiles to a slice of enums rather than to a slice of pointers to 
enums. Thanks.

-- 
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.


[protobuf] Decimal in json?

2016-05-02 Thread Raymond Rizzuto
Is there an extension mechanism that could be used to support Decimal 
(handy for financial data) via JSON in protobuf 3?  Or in a future version? 
 I know I could come up with some representation specific to my 
application, but that seems somewhat shortsighted.

-- 
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.


[protobuf] Reduce JsonFormat merge time

2016-05-02 Thread mohamed aniba

Hi,

I am using google proto for data format. When i convert to Builder format 
from string in client side it takes 1-2 seconds. Is there any option to 
reduce this time.

I am using protobuf-java-format.1.4 jar.

Please help.

Aniba.

-- 
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.


Re: [protobuf] Can someone please help?

2016-05-02 Thread Jeffrey Getzin
Actually, I finally figured it out. I was mistaken in assuming that the
generated classes would have the functionality to serialize and deserialize
themselves.

   Jeff the Xoogler

On Mon, May 2, 2016 at 1:03 PM, Feng Xiao  wrote:

> +Josh
>
> On Sat, Apr 30, 2016 at 10:43 AM, Jeffrey Getzin 
> wrote:
>
>> I've been banging my head against the wall trying to get my generated
>> JavaScript code to work as described in this thread
>> .  I've
>> tried reading the documentation, but it's cryptic.
>>
>> Anyway, I have an ArrayBuffer containing a serialized protobuffer from my
>> server. I want to turn it into one of the generated JavaScript objects. I
>> can't find the correct method(s) to do that.
>>
>> Any help *very* much appreciated!
>>
>>Jeff the Xoogler
>>
>> --
>> 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.


[protobuf] Proto3 Storing UUID

2016-05-02 Thread Osman Ali
Looking use a 128 bit uuid according to rfc4122. For Proto3 should use 
bytes type?

So:

message SendIdentifier {
 bytes user_uuid = 1;
}


-- 
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.


[protobuf] protobuf-dt required password from eclipse marketplace

2016-05-02 Thread Yan Yan
It worked before. Now it required a password. Any idea? Thx.

-- 
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.


[protobuf] Re: Protobuf Installation in Suse Linux

2016-05-02 Thread Shreyas J
In ./google/protobuf/map_field_inl.h corresponding to each line of error, 
change the reference to "this->".


On Tuesday, December 15, 2015 at 5:52:28 AM UTC+8, saikat basu wrote:
>
> Hi all,
>While installing protobuf in Suse Linux, I am getting the following 
> error. ./configure works fine but make gives the following error.:
>
> In file included from google/protobuf/dynamic_message.cc:81:
> ./google/protobuf/map_field.h: In member function 'void 
> google::protobuf::internal::MapField value_wire_type, 
> default_enum_value>::Swap(google::protobuf::internal::MapFieldLite kKeyFieldType, kValueFieldType, default_enum_value>*)':
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:336: error: from this location
> ./google/protobuf/map_field.h:149: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::state_'
> ./google/protobuf/map_field_inl.h:338: error: from this location
> ./google/protobuf/map_field.h: In member function 'void 
> google::protobuf::internal::MapField value_wire_type, default_enum_value>::SetEntryDescriptor(const 
> google::protobuf::Descriptor**)':
> ./google/protobuf/map_field.h:144: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::entry_descriptor_'
> ./google/protobuf/map_field_inl.h:349: error: from this location
> ./google/protobuf/map_field.h: In member function 'void 
> google::protobuf::internal::MapField value_wire_type, default_enum_value>::SetAssignDescriptorCallback(void 
> (*)())':
> ./google/protobuf/map_field.h:145: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::assign_descriptor_callback_'
> ./google/protobuf/map_field_inl.h:359: error: from this location
> ./google/protobuf/map_field.h: In member function 'void 
> google::protobuf::internal::MapField value_wire_type, default_enum_value>::SyncRepeatedFieldWithMapNoLock() 
> const':
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:389: error: from this location
> ./google/protobuf/map_field.h:137: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::arena_'
> ./google/protobuf/map_field_inl.h:390: error: from this location
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:391: error: from this location
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:393: error: from this location
> ./google/protobuf/map_field.h:137: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::arena_'
> ./google/protobuf/map_field_inl.h:395: error: from this location
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:401: error: from this location
> ./google/protobuf/map_field.h:137: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::arena_'
> ./google/protobuf/map_field_inl.h:410: error: from this location
> ./google/protobuf/map_field.h: In member function 'void 
> google::protobuf::internal::MapField value_wire_type, default_enum_value>::SyncMapWithRepeatedFieldNoLock() 
> const':
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:427: error: from this location
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:428: error: from this location
> ./google/protobuf/map_field.h: In member function 'int 
> google::protobuf::internal::MapField value_wire_type, default_enum_value>::SpaceUsedExcludingSelfNoLock() const':
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:449: error: from this location
> ./google/protobuf/map_field.h:138: error: object missing in reference to 
> 'google::protobuf::internal::MapFieldBase::repeated_field_'
> ./google/protobuf/map_field_inl.h:450: error: from this location
> ./google/protobuf/map_field.h: In member function 'void 
> google::protobuf::internal::MapField value_wire_type, default_enum_value>::InitDefaultEntryOnce() const':
> 

Re: [protobuf] Can someone please help?

2016-05-02 Thread 'Feng Xiao' via Protocol Buffers
+Josh

On Sat, Apr 30, 2016 at 10:43 AM, Jeffrey Getzin  wrote:

> I've been banging my head against the wall trying to get my generated
> JavaScript code to work as described in this thread
> .  I've
> tried reading the documentation, but it's cryptic.
>
> Anyway, I have an ArrayBuffer containing a serialized protobuffer from my
> server. I want to turn it into one of the generated JavaScript objects. I
> can't find the correct method(s) to do that.
>
> Any help *very* much appreciated!
>
>Jeff the Xoogler
>
> --
> 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.