100+ results results for 'protobuf' (153 ms)
100 PROTOBUF_C_TYPE_MESSAGE, 101 PROTOBUF_C_OFFSETOF(ProtoBufRemote__RpcMessage__Call, n_parameters), 102 PROTOBUF_C_OFFSETOF(ProtoBufRemote__RpcMessage__Call, parameters), 326 PROTOBUF_C_OFFSETOF(ProtoBufRemote__RpcMessage__Parameter, has_is_null), 327 PROTOBUF_C_OFFSETOF(ProtoBufRemote__RpcMessage__Parameter, is_null), 328 NULL, 373 0, /* quantifier_offset */ 374 PROTOBUF_C_OFFSETOF(ProtoBufRemote__RpcMessage, id), 375 NULL, 385 0, /* quantifier_offset */ 386 PROTOBUF_C_OFFSETOF(ProtoBufRemote__RpcMessage, call_message), 387 &proto_buf_remote__rpc_message__call__descriptor, 397 0, /* quantifier_offset */ 398 PROTOBUF_C_OFFSETOF(ProtoBufRemote__RpcMessage, result_message), 399 &proto_buf_remote__rpc_message__result__descriptor,RpcMessage.cs https://code.google.com/p/protobuf-remote/ | C# | 334 lines
20 private int _id; 21 [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] 22 public int Id 107 private string _errorMessage; 108 [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"error_message", DataFormat = global::ProtoBuf.DataFormat.Default)] 109 public string ErrorMessage 216 private long? _int64Param; 217 [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"int64_param", DataFormat = global::ProtoBuf.DataFormat.ZigZag)] 218 public long Int64Param 323 private global::ProtoBuf.IExtension extensionObject; 324 global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) 325 { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } 328 private global::ProtoBuf.IExtension extensionObject; 329 global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) 330 { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }IncrementalRuntimeObjectSchemaTest.java http://protostuff.googlecode.com/svn/trunk/ | Java | 159 lines
144 145 public void testProtobuf() throws Exception 146 { 150 tr.doRun(tr.getTest( 151 "com.dyuproject.protostuff.runtime.ProtobufRuntimeObjectSchemaTest" 152 ), false);BinaryMapTransportReaderAdapter.java https://code.google.com/p/osmand/ | Java | 482 lines
15 16import com.google.protobuf.CodedInputStreamRAF; 17import com.google.protobuf.WireFormat;test.pro.pb.h http://d-protobuf.googlecode.com/svn/trunk/ | C Header | 342 lines
77 ::google::protobuf::io::CodedOutputStream* output) const; 78 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 79 int GetCachedSize() const { return _cached_size_; } 103 static ::google::protobuf::internal::ExtensionIdentifier< ::accc, 104 ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false > 105 aaa; 107 private: 108 ::google::protobuf::UnknownFieldSet _unknown_fields_; 109 mutable int _cached_size_; 174 ::google::protobuf::io::CodedOutputStream* output) const; 175 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 176 int GetCachedSize() const { return _cached_size_; } 211 212 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; 213datastore.go https://code.google.com/p/appengine-go/ | Go | 377 lines
13 "appengine_internal" 14 "code.google.com/p/goprotobuf/proto" 15 127// and pb.PropertyValue_ReferenceValue aren't the same type. For example, the 128// two have different protobuf field numbers. 129PidStoreLoader.cpp https://code.google.com/p/linux-lighting/ | C++ | 489 lines
21#include <errno.h> 22#include <google/protobuf/io/zero_copy_stream_impl.h> 23#include <google/protobuf/text_format.h> 73 ola::rdm::pid::PidStore pid_store_pb; 74 google::protobuf::io::IstreamInputStream input_stream(data); 75 bool ok = google::protobuf::TextFormat::Parse(&input_stream, &pid_store_pb); 138/** 139 * Get a list of pids from a protobuf object 140 */ 200/** 201 * Build a PidDescriptor from a Pid protobuf object 202 */ 214 215 // yuck, code smell. This should use protobuf reflections instead. 216 const Descriptor *get_request = NULL;protobuf-c-dispatch.h http://protobuf-c.googlecode.com/svn/trunk/ | C Header | 168 lines
44typedef struct _ProtobufCDispatchTimer ProtobufCDispatchTimer; 45typedef struct _ProtobufCDispatchIdle ProtobufCDispatchIdle; 46 61/* Create or destroy a Dispatch */ 62ProtobufCDispatch *protobuf_c_dispatch_new (ProtobufCAllocator *allocator); 63void protobuf_c_dispatch_free(ProtobufCDispatch *dispatch); 66 67ProtobufCAllocator *protobuf_c_dispatch_peek_allocator (ProtobufCDispatch *); 68 78 void *callback_data); 79void protobuf_c_dispatch_close_fd (ProtobufCDispatch *dispatch, 80 ProtobufC_FD fd); 87ProtobufCDispatchTimer * 88 protobuf_c_dispatch_add_timer(ProtobufCDispatch *dispatch, 89 unsigned timeout_secs,equal.go https://code.google.com/p/goprotobuf/ | Go | 220 lines
3// Copyright 2011 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5//DelimiterTest.java http://protostuff.googlecode.com/svn/trunk/ | Java | 264 lines
66 int size = writeDelimitedTo(out, message, schema, buf()); 67 int delimSize = ProtobufOutput.computeRawVarint32Size(size); 68 byte[] data = out.toByteArray(); 97 int size = optWriteDelimitedTo(out, message, schema, buf()); 98 int delimSize = ProtobufOutput.computeRawVarint32Size(size); 99 byte[] data = out.toByteArray(); 120 int size = optWriteDelimitedTo(out, message, schema, buf()); 121 int delimSize = ProtobufOutput.computeRawVarint32Size(size); 122 byte[] data = out.toByteArray(); 156 int size = optWriteDelimitedTo(out, message, schema, buf()); 157 int delimSize = ProtobufOutput.computeRawVarint32Size(size); 158 byte[] data = out.toByteArray(); 177 int size = optWriteDelimitedTo(out, message, schema, buf()); 178 int delimSize = ProtobufOutput.computeRawVarint32Size(size); 179 byte[] data = out.toByteArray();DynamicMessageTest.java http://protobuf.googlecode.com/svn/trunk/ | Java | 265 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 30 31package com.google.protobuf; 32 32 33import protobuf_unittest.UnittestProto.TestAllExtensions; 34import protobuf_unittest.UnittestProto.TestAllTypes; 34import protobuf_unittest.UnittestProto.TestAllTypes; 35import protobuf_unittest.UnittestProto.TestEmptyMessage; 36import protobuf_unittest.UnittestProto.TestPackedTypes;RpcForwarderTest.java http://protobuf-socket-rpc.googlecode.com/svn/trunk/ | Java | 373 lines
20 21package com.googlecode.protobuf.socketrpc; 22 24 25import com.google.protobuf.ByteString; 26import com.googlecode.protobuf.socketrpc.RpcForwarder.Callback; 26import com.googlecode.protobuf.socketrpc.RpcForwarder.Callback; 27import com.googlecode.protobuf.socketrpc.RpcForwarder.RpcException; 28import com.googlecode.protobuf.socketrpc.SocketRpcProtos.ErrorReason; 28import com.googlecode.protobuf.socketrpc.SocketRpcProtos.ErrorReason; 29import com.googlecode.protobuf.socketrpc.TestProtos.Request; 30import com.googlecode.protobuf.socketrpc.TestProtos.Response; 30import com.googlecode.protobuf.socketrpc.TestProtos.Response; 31import com.googlecode.protobuf.socketrpc.TestProtos.TestService; 32Alert.Scope.html https://code.google.com/p/cap-library/ | HTML | 248 lines
141<CODE>static <A HREF="../../../../../com/google/publicalerts/cap/Alert.Scope.html" title="enum in com.google.publicalerts.cap">Alert.Scope</A></CODE></FONT></TD> 142<TD><CODE><B>Alert.Scope.</B><B><A HREF="../../../../../com/google/publicalerts/cap/Alert.Scope.html#valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor)">valueOf</A></B>(com.google.protobuf.Descriptors.EnumValueDescriptor desc)</CODE> 143StreamRpcChannelTest.cpp https://code.google.com/p/linux-lighting/ | C++ | 204 lines
21#include <cppunit/extensions/HelperMacros.h> 22#include <google/protobuf/stubs/common.h> 23#include <string> 29 30using google::protobuf::NewCallback; 31using ola::io::LoopbackDescriptor; 49 50 void Echo(::google::protobuf::RpcController* controller, 51 const EchoRequest* request, 52 EchoReply* response, 53 ::google::protobuf::Closure* done); 54 54 55 void FailedEcho(::google::protobuf::RpcController* controller, 56 const EchoRequest* request,spinn3rApi.proto https://code.google.com/p/spinn3r-client/ | Protocol Buffers | 340 lines
8 ant compile 9 svn commit -m "new protobufs" 10 14 15option java_package = "com.spinn3r.api.protobuf"; 16option java_outer_classname = "ContentApi";cpp_primitive_field.cc http://decs.googlecode.com/svn/trunk/ | C++ | 390 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 34 35#include <google/protobuf/compiler/cpp/cpp_primitive_field.h> 36#include <google/protobuf/compiler/cpp/cpp_helpers.h> 36#include <google/protobuf/compiler/cpp/cpp_helpers.h> 37#include <google/protobuf/io/printer.h> 38#include <google/protobuf/wire_format_inl.h> 38#include <google/protobuf/wire_format_inl.h> 39#include <google/protobuf/stubs/strutil.h> 40 41namespace google { 42namespace protobuf { 43namespace compiler {memcache.go https://code.google.com/p/appengine-go/ | Go | 440 lines
39 "appengine_internal" 40 "code.google.com/p/goprotobuf/proto" 41common.cc http://decs.googlecode.com/svn/trunk/ | C++ | 343 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 32 33#include <google/protobuf/stubs/common.h> 34#include <google/protobuf/stubs/once.h> 34#include <google/protobuf/stubs/once.h> 35#include <google/protobuf/stubs/strutil.h> 36#include <google/protobuf/stubs/substitute.h> 52namespace google { 53namespace protobuf { 54 59 const char* filename) { 60 if (GOOGLE_PROTOBUF_VERSION < minLibraryVersion) { 61 // Library is too old for headers.as3_message_field.cc http://protobuf-actionscript3.googlecode.com/svn/trunk/ | C++ | 271 lines
2// Copyright 2008 Google Inc. 3// http://code.google.com/p/protobuf/ 4// 23 24#include <google/protobuf/compiler/as3/as3_message_field.h> 25#include <google/protobuf/compiler/as3/as3_helpers.h> 25#include <google/protobuf/compiler/as3/as3_helpers.h> 26#include <google/protobuf/io/printer.h> 27#include <google/protobuf/wire_format.h> 27#include <google/protobuf/wire_format.h> 28#include <google/protobuf/stubs/strutil.h> 29namespace google { 29namespace google { 30namespace protobuf { 31namespace compiler {ProtoResultLog.cpp https://code.google.com/p/voteutil/ | C++ | 247 lines
7#include "trial.pb.h" 8#include <google/protobuf/io/zero_copy_stream_impl.h> 9#include <google/protobuf/io/coded_stream.h> 10 11using google::protobuf::uint32; 12ExtensionGenerator.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 183 lines
4// Copyright 2008 Google Inc. All rights reserved. 5// http://github.com/jskeet/dotnet-protobufs/ 6// Original C++/Java/Python code: 6// Original C++/Java/Python code: 7// http://code.google.com/p/protobuf/ 8//text_parser.go https://code.google.com/p/goprotobuf/ | Go | 516 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5// 504 505// UnmarshalText reads a protobuffer in Text format. 506func UnmarshalText(s string, pb interface{}) error {message.cc http://protobuf.googlecode.com/svn/trunk/ | C++ | 359 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 36#include <stack> 37#include <google/protobuf/stubs/hash.h> 38 38 39#include <google/protobuf/message.h> 40 40 41#include <google/protobuf/stubs/common.h> 42#include <google/protobuf/stubs/once.h> 42#include <google/protobuf/stubs/once.h> 43#include <google/protobuf/io/coded_stream.h> 44#include <google/protobuf/io/zero_copy_stream_impl.h>IntermediateOutput.java http://appengine-mapreduce.googlecode.com/svn/trunk/ | Java | 145 lines
11import com.google.appengine.api.files.RecordWriteChannel; 12import com.google.appengine.repackaged.com.google.protobuf.ByteString; 13import com.google.appengine.tools.mapreduce.KeyValue;MessageWrapper.as http://mmorpg-client-server-learning.googlecode.com/svn/trunk/ | ActionScript | 111 lines
14 import com.jediflasher.game_client.server.messages.WorldInfoResponse; 15 import com.netease.protobuf.Message; 16contact.cc http://maidsafe-dht.googlecode.com/svn/trunk/ | C++ | 248 lines
30#include "maidsafe/base/utils.h" 31#include "maidsafe/protobuf/contact_info.pb.h" 32pagespeed_test.h http://page-speed.googlecode.com/svn/lib/trunk/ | C Header | 361 lines
41 42void AssertProtoEq(const ::google::protobuf::MessageLite& a, 43 const ::google::protobuf::MessageLite& b);OlaClient.java https://code.google.com/p/linux-lighting/ | Java | 431 lines
51 52import com.google.protobuf.ByteString; 53import com.google.protobuf.Message; 53import com.google.protobuf.Message; 54import com.google.protobuf.RpcCallback; 55import com.google.protobuf.RpcChannel; 55import com.google.protobuf.RpcChannel; 56import com.google.protobuf.RpcController; 57Generators.h https://code.google.com/p/protobuf-remote/ | C Header | 214 lines
1#ifndef PROTOBUFREMOTE_GENERATORS_H 2#define PROTOBUFREMOTE_GENERATORS_H 1 4#include <boost/preprocessor.hpp> 5#include "ProtoBufRemote/PendingCall.h" 6#include "ProtoBufRemote/Proxy.h" 6#include "ProtoBufRemote/Proxy.h" 7#include "ProtoBufRemote/RpcClient.h" 8#include "ProtoBufRemote/RpcService.h" 27#define PBR_PROXY(name, methods) \ 28 class name##Proxy : public ::ProtoBufRemote::Proxy \ 29 { \ 30 public: \ 31 name##Proxy(::ProtoBufRemote::RpcClient* client) : ::ProtoBufRemote::Proxy(client, #name) { } \ 32 BOOST_PP_SEQ_FOR_EACH(PBR_X_PROXY_METHOD, ~, methods) \ 38#define PBR_SERVICE_STUB(name, methods) \ 39 class name##Stub : public ::ProtoBufRemote::RpcService \ 40 { \Simulator.java https://code.google.com/p/synoptic/ | Java | 187 lines
5import prototrace.ProtoTrace.Trace; 6import com.google.protobuf.ByteString; 7import java.io.FileOutputStream;UserProto.java http://flex-mmorpg-server.googlecode.com/svn/trunk/ | Java | 408 lines
4 5import com.google.protobuf.UninitializedMessageException; 6 9 public static void registerAllExtensions( 10 com.google.protobuf.ExtensionRegistry registry) { 11 } 12 public static final class User extends 13 com.google.protobuf.GeneratedMessage { 14 // Use User.newBuilder() to construct. 25 26 public static final com.google.protobuf.Descriptors.Descriptor 27 getDescriptor() { 30 31 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 32 internalGetFieldAccessorTable() {ProtoTrace.Abort.Builder.html https://code.google.com/p/synoptic/ | HTML | 262 lines
139<CODE> <A HREF="../../trace/ProtoTrace.Abort.Builder.html" title="class in trace">ProtoTrace.Abort.Builder</A></CODE></FONT></TD> 140<TD><CODE><B>ProtoTrace.Abort.Builder.</B><B><A HREF="../../trace/ProtoTrace.Abort.Builder.html#mergeFrom(com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite)">mergeFrom</A></B>(com.google.protobuf.CodedInputStream input, 141 com.google.protobuf.ExtensionRegistryLite extensionRegistry)</CODE> 148<CODE> <A HREF="../../trace/ProtoTrace.Abort.Builder.html" title="class in trace">ProtoTrace.Abort.Builder</A></CODE></FONT></TD> 149<TD><CODE><B>ProtoTrace.Abort.Builder.</B><B><A HREF="../../trace/ProtoTrace.Abort.Builder.html#mergeFrom(com.google.protobuf.Message)">mergeFrom</A></B>(com.google.protobuf.Message other)</CODE> 150MediaContentHolderNumericJSON.java http://thrift-protobuf-compare.googlecode.com/svn/trunk/ | Java | 386 lines
17 18import serializers.protobuf.MediaContentHolder.MediaContent; 19import serializers.protobuf.MediaContentHolder.Media; 19import serializers.protobuf.MediaContentHolder.Media; 20import serializers.protobuf.MediaContentHolder.Image; 21 51 52 static final ProtobufConvertor<MediaContent,MediaContent.Builder> CONVERTOR_MediaContent = new ProtobufConvertor<MediaContent,MediaContent.Builder>() 53 { 129 130 static final ProtobufConvertor<Media,Media.Builder> CONVERTOR_Media = new ProtobufConvertor<Media,Media.Builder>() 131 { 294 295 static final ProtobufConvertor<Image,Image.Builder> CONVERTOR_Image = new ProtobufConvertor<Image,Image.Builder>() 296 {zero_copy_stream_impl.cc http://protobuf.googlecode.com/svn/trunk/ | C++ | 472 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 46 47#include <google/protobuf/io/zero_copy_stream_impl.h> 48#include <google/protobuf/stubs/common.h> 48#include <google/protobuf/stubs/common.h> 49#include <google/protobuf/stubs/stl_util.h> 50 52namespace google { 53namespace protobuf { 54namespace io { 469} // namespace io 470} // namespace protobuf 471} // namespace googleWireFormat.java http://mmorpg-client-server-learning.googlecode.com/svn/trunk/ | Java | 164 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 30 31package com.google.protobuf; 32 35 * message implementations. It is public only because those generated messages 36 * do not reside in the {@code protobuf} package. Others should not use this 37 * class directly. 73 /** 74 * Lite equivalent to {@link com.google.protobuf.Descriptors.FieldDescriptor.JavaType}. This is 75 * only here to support the lite runtime and should not be used by users. 103 /** 104 * Lite equivalent to {@link com.google.protobuf.Descriptors.FieldDescriptor.Type}. This is 105 * only here to support the lite runtime and should not be used by users.SampleServiceParameters.cs https://code.google.com/p/protobuf-remote/ | C# | 71 lines
19 private string _prefix = ""; 20 [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"prefix", DataFormat = global::ProtoBuf.DataFormat.Default)] 21 [global::System.ComponentModel.DefaultValue("")] 41 private global::ProtoBuf.IExtension extensionObject; 42 global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) 43 { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } 51 private string _resultString; 52 [global::ProtoBuf.ProtoMember(10, IsRequired = true, Name=@"result_string", DataFormat = global::ProtoBuf.DataFormat.Default)] 53 public string ResultString 58 private int _resultNumber; 59 [global::ProtoBuf.ProtoMember(11, IsRequired = true, Name=@"result_number", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] 60 public int ResultNumber 65 private global::ProtoBuf.IExtension extensionObject; 66 global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) 67 { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }as3_file.cc http://protobuf-actionscript3.googlecode.com/svn/trunk/ | C++ | 165 lines
2// Copyright 2008 Google Inc. 3// http://code.google.com/p/protobuf/ 4// 20 21#include <google/protobuf/compiler/as3/as3_file.h> 22#include <google/protobuf/compiler/as3/as3_enum.h> 22#include <google/protobuf/compiler/as3/as3_enum.h> 23#include <google/protobuf/compiler/as3/as3_service.h> 24#include <google/protobuf/compiler/as3/as3_extension.h> 24#include <google/protobuf/compiler/as3/as3_extension.h> 25#include <google/protobuf/compiler/as3/as3_helpers.h> 26#include <google/protobuf/compiler/as3/as3_message.h> 26#include <google/protobuf/compiler/as3/as3_message.h> 27#include <google/protobuf/compiler/code_generator.h> 28#include <google/protobuf/io/printer.h>cpp_primitive_field.cc http://protoc-gen-luabind.googlecode.com/svn/trunk/ | C++ | 383 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 36#include "cpp/cpp_helpers.h" 37#include <google/protobuf/io/printer.h> 38#include <google/protobuf/wire_format.h> 38#include <google/protobuf/wire_format.h> 39#include <google/protobuf/stubs/strutil.h> 40 41namespace google { 42namespace protobuf { 43namespace compiler { 92 (*variables)["wire_format_field_type"] = 93 "::google::protobuf::internal::WireFormatLite::" + FieldDescriptorProto_Type_Name( 94 static_cast<FieldDescriptorProto_Type>(descriptor->type()));Makefile https://code.google.com/p/voteutil/ | Makefile | 231 lines
74 75# everything protobuf-needing, for bulk sim runs 76pball: vpb processprl render_mcpb sgpb 78vpb: ${VPBOBJS} voter_main.cpp 79 ${CXX} -o vpb ${VPBOBJS} ${CXXFLAGS} ${LDFLAGS} -lprotobuf -DHAVE_PROTOBUF -DNO_DB voter_main.cpp 80 83processprl: ${PPLOBJS} 84 ${CXX} -o processprl ${PPLOBJS} ${CXXFLAGS} ${LDFLAGS} -lprotobuf 85 89render_mcpb: ${RMCPBOBJS} 90 ${CXX} -o render_mcpb ${RMCPBOBJS} ${CXXFLAGS} ${LDFLAGS} -lprotobuf -lpng12 -lz 91 92 93sgpb: CXXFLAGS+=-DHAVE_PROTOBUF 94sgpb: LDFLAGS+=-lprotobuf -lpng12 -lzGroup.java https://code.google.com/p/cap-library/ | Java | 416 lines
34 public static final int VALUE_FIELD_NUMBER = 1; 35 private com.google.protobuf.LazyStringList value_; 36 public java.util.List<String> 58 59 public void writeTo(com.google.protobuf.CodedOutputStream output) 60 throws java.io.IOException { 184 public static com.google.publicalerts.cap.Group parseFrom( 185 com.google.protobuf.CodedInputStream input, 186 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 349 // repeated string value = 1; 350 private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; 351 private void ensureValueIsMutable() { 393 public Builder clearValue() { 394 value_ = com.google.protobuf.LazyStringArrayList.EMPTY; 395 bitField0_ = (bitField0_ & ~0x00000001);MessageLite.java http://mmorpg-client-server-learning.googlecode.com/svn/trunk/ | Java | 326 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 33 34package com.google.protobuf; 35 118 * to the stream after the message without the need to delimit the message 119 * data yourself. Use {@link com.google.protobuf.MessageLite.Builder#mergeDelimitedFrom(java.io.InputStream)} (or 120 * the static method {@code YourMessageType.parseDelimitedFrom(InputStream)}) 151 * it first. 152 * @throws com.google.protobuf.UninitializedMessageException The message is missing one or more 153 * required fields (i.e. {@link #isInitialized()} returns false). 176 * Parses a message of this type from the input and merges it with this 177 * message, as if using {@link com.google.protobuf.MessageLite.Builder#mergeFrom(MessageLite)}. 178 *java_enum_field.cc http://decs.googlecode.com/svn/trunk/ | C++ | 353 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 37 38#include <google/protobuf/compiler/java/java_enum_field.h> 39#include <google/protobuf/stubs/common.h> 39#include <google/protobuf/stubs/common.h> 40#include <google/protobuf/compiler/java/java_helpers.h> 41#include <google/protobuf/io/printer.h> 41#include <google/protobuf/io/printer.h> 42#include <google/protobuf/wire_format_inl.h> 43#include <google/protobuf/stubs/strutil.h> 45namespace google { 46namespace protobuf { 47namespace compiler {text.go https://code.google.com/p/goprotobuf/ | Go | 470 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5//lite_unittest.cc http://protobuf.googlecode.com/svn/trunk/ | C++ | 186 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 35 36#include <google/protobuf/stubs/common.h> 37#include <google/protobuf/test_util_lite.h> 37#include <google/protobuf/test_util_lite.h> 38#include <google/protobuf/unittest_lite.pb.h> 39 43// Helper methods to test parsing merge behavior. 44void ExpectMessageMerged(const google::protobuf::unittest::TestAllTypesLite& message) { 45 GOOGLE_CHECK(message.optional_int32() == 3); 50void AssignParsingMergeMessages( 51 google::protobuf::unittest::TestAllTypesLite* msg1, 52 google::protobuf::unittest::TestAllTypesLite* msg2,client_test.py https://code.google.com/p/grr/ | Python | 182 lines
35class MockAction(actions.ActionPlugin): 36 in_protobuf = jobs_pb2.PrintStr 37 out_protobuf = jobs_pb2.PrintStr 45 """A mock action which raises an error.""" 46 in_protobuf = jobs_pb2.PrintStr 47 out_protobuf = jobs_pb2.PrintStrtimeline.py https://code.google.com/p/grr/ | Python | 189 lines
41 42 # The actual event protobuf 43 EVENT = aff4.Attribute("aff4:timeline/event", RDFEvent, 43 EVENT = aff4.Attribute("aff4:timeline/event", RDFEvent, 44 "The event protobuf", "event") 45 66class GRRTimeSeries(standard.VFSDirectory): 67 """A time series is a sequence of serialized Event protobufs.""" 68 96 def AddEvent(self, event=None, **kw): 97 """Add the event protobuf to the series. 98 110 def __iter__(self): 111 """Iterate over all event protobufs. 112actions.py https://code.google.com/p/grr/ | Python | 183 lines
41 The code is specified in the Run() method, while the data is 42 specified in the in_protobuf and out_protobuf classes. 43 """ 61 e.g. send new actions on. 62 **proto_args: Field initializers for the protobuf in self._protobuf. 63 """ 68 if self.in_protobuf: 69 self.buff = self.in_protobuf() 70 76 77 The Run method will be called with the unserialised protobuf. 78 146 if protobuf is None: 147 protobuf = self.out_protobuf(**kw) 148java_enum.cc http://decs.googlecode.com/svn/trunk/ | C++ | 214 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 37 38#include <google/protobuf/compiler/java/java_enum.h> 39#include <google/protobuf/compiler/java/java_helpers.h> 39#include <google/protobuf/compiler/java/java_helpers.h> 40#include <google/protobuf/io/printer.h> 41#include <google/protobuf/descriptor.pb.h> 41#include <google/protobuf/descriptor.pb.h> 42#include <google/protobuf/stubs/strutil.h> 43 44namespace google { 45namespace protobuf { 46namespace compiler {RpcMessage.pb-c.h https://code.google.com/p/protobuf-remote/ | C Header | 146 lines
2 3#ifndef PROTOBUF_C_RpcMessage_2eproto__INCLUDED 4#define PROTOBUF_C_RpcMessage_2eproto__INCLUDED 5 6#include <framework/protobuf/protobuf-c.h> 7 7 8PROTOBUF_C_BEGIN_DECLS 9 10 11typedef struct _ProtoBufRemote__RpcMessage ProtoBufRemote__RpcMessage; 12typedef struct _ProtoBufRemote__RpcMessage__Call ProtoBufRemote__RpcMessage__Call; 12typedef struct _ProtoBufRemote__RpcMessage__Call ProtoBufRemote__RpcMessage__Call; 13typedef struct _ProtoBufRemote__RpcMessage__Result ProtoBufRemote__RpcMessage__Result; 14typedef struct _ProtoBufRemote__RpcMessage__Parameter ProtoBufRemote__RpcMessage__Parameter;java_message_field.h http://protobuf.googlecode.com/svn/trunk/ | C Header | 137 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 34 35#ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_FIELD_H__ 36#define GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_FIELD_H__ 39#include <string> 40#include <google/protobuf/compiler/java/java_field.h> 41 42namespace google { 43namespace protobuf { 44namespace compiler { 132} // namespace compiler 133} // namespace protobuf 134MessageFormatOptions.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 167 lines
14 /// <remarks>Other valid xml mime types include: application/binary, application/x-protobuf</remarks> 15 public const string ContentTypeProtoBuffer = "application/vnd.google.protobuf"; 16 48 {"application/binary", CodedInputStream.CreateInstance}, 49 {"application/x-protobuf", CodedInputStream.CreateInstance}, 50 {"application/vnd.google.protobuf", CodedInputStream.CreateInstance}, 71 {"application/binary", CodedOutputStream.CreateInstance}, 72 {"application/x-protobuf", CodedOutputStream.CreateInstance}, 73 {"application/vnd.google.protobuf", CodedOutputStream.CreateInstance},WalletUtils.java https://code.google.com/p/bitcoin-wallet/ | Java | 435 lines
63import com.google.bitcoin.store.UnreadableWalletException; 64import com.google.bitcoin.store.WalletProtobufSerializer; 65import com.google.common.base.Charsets; 214 215 public static Wallet restoreWalletFromProtobufOrBase58(final InputStream is) throws IOException 216 { 220 { 221 return restoreWalletFromProtobuf(is); 222 } 231 { 232 throw new IOException("cannot read protobuf (" + x.getMessage() + ") or base58 (" + x2.getMessage() + ")", x); 233 } 236 237 public static Wallet restoreWalletFromProtobuf(final InputStream is) throws IOException 238 {save.go https://code.google.com/p/appengine-go/ | Go | 248 lines
14 "appengine" 15 "code.google.com/p/goprotobuf/proto" 16User.java http://flex-mmorpg-server.googlecode.com/svn/trunk/ | Java | 184 lines
6 7import net.jarlehansen.protobuf.javame.UninitializedMessageException; 8import net.jarlehansen.protobuf.javame.factory.JavaMeProtoFactory; 8import net.jarlehansen.protobuf.javame.factory.JavaMeProtoFactory; 9import net.jarlehansen.protobuf.javame.input.DelimitedInputStream; 10import net.jarlehansen.protobuf.javame.input.DelimitedSizeUtil; 10import net.jarlehansen.protobuf.javame.input.DelimitedSizeUtil; 11import net.jarlehansen.protobuf.javame.input.InputReader; 12import net.jarlehansen.protobuf.javame.input.taghandler.DefaultUnknownTagHandlerImpl; 12import net.jarlehansen.protobuf.javame.input.taghandler.DefaultUnknownTagHandlerImpl; 13import net.jarlehansen.protobuf.javame.input.taghandler.UnknownTagHandler; 14import net.jarlehansen.protobuf.javame.output.AbstractOutputWriter; 14import net.jarlehansen.protobuf.javame.output.AbstractOutputWriter; 15import net.jarlehansen.protobuf.javame.output.OutputWriter; 16import net.jarlehansen.protobuf.javame.util.ComputeSizeUtil;CompareOutputsTest.java http://protostuff.googlecode.com/svn/trunk/ | Java | 345 lines
159 160 static <T> byte[] toByteArrayComputedProtobuf(T message, Schema<T> schema) 161 { 166 { 167 final ProtobufOutput output = new ProtobufOutput(new LinkedBuffer(BUF_SIZE)); 168 try 266 { 267 return toByteArrayComputedProtobuf(message, message.cachedSchema()); 268 } 270 { 271 return "protobuf-computed-output"; 272 } 337 PROTOBUF_BUFFERED_OUTPUT, 338 PROTOBUF_STREAMED_OUTPUT, 339 PROTOSTUFF_COMPUTED_OUTPUT,URLConnectionStrategy.java http://google-secure-data-connector.googlecode.com/svn/trunk/ | Java | 89 lines
30import com.google.dataconnector.protocol.proto.SdcFrame.FetchRequest; 31import com.google.protobuf.ByteString; 32protobuf.py http://googleappengine.googlecode.com/svn/trunk/ | Python | 322 lines
24Public Exceptions: 25 DecodeError: Raised when a decode error occurs from incorrect protobuf format. 26 50 51ALTERNATIVE_CONTENT_TYPES = ['application/x-google-protobuf'] 52pb.c https://code.google.com/p/protoc-gen-lua/ | C | 470 lines
33 34#define IOSTRING_META "protobuf.IOString" 35fake_callbacks.h http://maidsafe-dht.googlecode.com/svn/trunk/ | C Header | 210 lines
35#include "maidsafe/maidsafe-dht_config.h" 36#include "maidsafe/protobuf/general_messages.pb.h" 37#include "maidsafe/protobuf/kademlia_service_messages.pb.h"operations.cc http://maidsafe-dht.googlecode.com/svn/trunk/ | C++ | 317 lines
42 43#include "maidsafe/protobuf/kademlia_service_messages.pb.h" 44#include "maidsafe/maidsafe-dht.h"text_parser_test.go https://code.google.com/p/goprotobuf/ | Go | 341 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5// 38 . "./testdata" 39 . "code.google.com/p/goprotobuf/proto" 40)cpp_extension.cc http://protoc-gen-luabind.googlecode.com/svn/trunk/ | C++ | 211 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 37#include "cpp/cpp_helpers.h" 38#include <google/protobuf/stubs/strutil.h> 39#include <google/protobuf/io/printer.h> 39#include <google/protobuf/io/printer.h> 40#include <google/protobuf/descriptor.pb.h> 41 42namespace google { 43namespace protobuf { 44namespace compiler { 117 "static const int $constant_name$ = $number$;\n" 118 "$qualifier$ ::google::protobuf::internal::ExtensionIdentifier< $extendee$,\n" 119 " ::google::protobuf::internal::$type_traits$, $field_type$, $packed$ >\n"Codec.cpp http://iocpframework.googlecode.com/svn/trunk/ | C++ | 250 lines
18 19 //void ProtobufCodec::FillBuffer(std::string &buf, const google::protobuf::Message& message) 20 //{ 108 109 //const std::string& ProtobufCodec::ErrorCodeToString(ErrorCode errorCode) 110 //{ 147 //{ 148 // typedef google::protobuf::int32 int32; 149 // 158 // } 159 // else if (readableSize >= google::protobuf::implicit_cast<size_t>(len + kHeaderLen)) 160 // { 179 180 //google::protobuf::Message* ProtobufCodec::CreateMessage(const std::string& typeName) 181 //{MockWebCloudClient.java http://findbugs.googlecode.com/svn/trunk/ | Java | 375 lines
26 27import com.google.protobuf.GeneratedMessage; 28googletest.cc http://protobuf.googlecode.com/svn/trunk/ | C++ | 256 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 33 34#include <google/protobuf/testing/googletest.h> 35#include <google/protobuf/testing/file.h> 35#include <google/protobuf/testing/file.h> 36#include <google/protobuf/stubs/strutil.h> 37#include <sys/stat.h> 52namespace google { 53namespace protobuf { 54 71 72 while (!File::Exists(prefix + "/src/google/protobuf")) { 73 if (!File::Exists(prefix)) {RpcChannelImplTest.java http://protobuf-socket-rpc.googlecode.com/svn/trunk/ | Java | 355 lines
20 21package com.googlecode.protobuf.socketrpc; 22 27 28import com.google.protobuf.ByteString; 29import com.google.protobuf.RpcCallback; 29import com.google.protobuf.RpcCallback; 30import com.google.protobuf.ServiceException; 31import com.googlecode.protobuf.socketrpc.SocketRpcProtos.ErrorReason; 31import com.googlecode.protobuf.socketrpc.SocketRpcProtos.ErrorReason; 32import com.googlecode.protobuf.socketrpc.TestProtos.Request; 33import com.googlecode.protobuf.socketrpc.TestProtos.Response; 33import com.googlecode.protobuf.socketrpc.TestProtos.Response; 34import com.googlecode.protobuf.socketrpc.TestProtos.TestService; 35import com.googlecode.protobuf.socketrpc.TestProtos.TestService.BlockingInterface;wire_format.h http://protobuf.googlecode.com/svn/trunk/ | C Header | 309 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 38 39#ifndef GOOGLE_PROTOBUF_WIRE_FORMAT_H__ 40#define GOOGLE_PROTOBUF_WIRE_FORMAT_H__ 42#include <string> 43#include <google/protobuf/stubs/common.h> 44#include <google/protobuf/descriptor.pb.h> 44#include <google/protobuf/descriptor.pb.h> 45#include <google/protobuf/descriptor.h> 46#include <google/protobuf/message.h> 46#include <google/protobuf/message.h> 47#include <google/protobuf/wire_format_lite.h> 48text_test.go https://code.google.com/p/goprotobuf/ | Go | 233 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5// 38 39 "code.google.com/p/goprotobuf/proto" 40matlab_generator.h https://code.google.com/p/protobuf-matlab/ | C Header | 157 lines
1// protobuf-matlab - FarSounder's Protocol Buffer support for Matlab 2// Copyright (c) 2008, FarSounder Inc. All rights reserved. 2// Copyright (c) 2008, FarSounder Inc. All rights reserved. 3// http://code.google.com/p/protobuf-matlab/ 4// 31// Author: fedor.labounko@gmail.com (Fedor Labounko) 32// Based on Google's C++ Protobuf compiler. 33// 35 36#ifndef FARSOUNDER_PROTOBUF_COMPILER_MATLAB_GENERATOR_H__ 37#define FARSOUNDER_PROTOBUF_COMPILER_MATLAB_GENERATOR_H__ 39#include <string> 40#include <google/protobuf/compiler/code_generator.h> 41#include <google/protobuf/descriptor.h> 41#include <google/protobuf/descriptor.h> 42#include <google/protobuf/stubs/common.h> 43java_helpers.h http://protobuf.googlecode.com/svn/trunk/ | C Header | 221 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 34 35#ifndef GOOGLE_PROTOBUF_COMPILER_JAVA_HELPERS_H__ 36#define GOOGLE_PROTOBUF_COMPILER_JAVA_HELPERS_H__ 38#include <string> 39#include <google/protobuf/descriptor.pb.h> 40#include <google/protobuf/descriptor.h> 42namespace google { 43namespace protobuf { 44namespace compiler { 216} // namespace compiler 217} // namespace protobuf 218transfer.py https://code.google.com/p/grr/ | Python | 346 lines
39 category = "/Filesystem/" 40 out_protobuf = jobs_pb2.StatResponse 41 59 path: The directory path to list. 60 pathtype: Identifies requested path type. Enum from Path protobuf. 61 pathspec: This flow also accepts all the information in one pathspec. 212 Returns to parent flow: 213 A StatResponse protobuf for each downloaded file. 214 """ 215 216 out_protobuf = jobs_pb2.StatResponse 217 283 Returns to the parent flow: 284 A StatResponse protobuf describing the output collection. 285 """cxx-generate-packed-data.cc http://protobuf-c.googlecode.com/svn/trunk/ | C++ | 1058 lines
29 30#define protobuf_c_boolean bool 31#define TEST_ENUM_SMALL_TYPE_NAME TestEnumSmall 38static void 39dump_message_bytes(google::protobuf::Message *message, 40 const char *label)test-generated-code2.c http://protobuf-c.googlecode.com/svn/trunk/ | C | 1602 lines
59static void * 60test_compare_pack_methods (ProtobufCMessage *message, 61 size_t *packed_len_out, 64 unsigned char scratch[16]; 65 ProtobufCBufferSimple bs = PROTOBUF_C_BUFFER_SIMPLE_INIT (scratch); 66 size_t siz1 = protobuf_c_message_get_packed_size (message); 67 size_t siz2; 68 size_t siz3 = protobuf_c_message_pack_to_buffer (message, &bs.base); 69 void *packed1 = malloc (siz1); 72 assert (siz1 == siz3); 73 siz2 = protobuf_c_message_pack (message, packed1); 74 assert (siz1 == siz2); 88static protobuf_c_boolean 89binary_data_equals (ProtobufCBinaryData a, ProtobufCBinaryData b) 90{protobuf-c.c http://protobuf-c.googlecode.com/svn/trunk/ | C | 2667 lines
1/* --- protobuf-c.c: public protobuf c runtime implementation --- */ 2 80 81unsigned protobuf_c_major = PROTOBUF_C_MAJOR; 82unsigned protobuf_c_minor = PROTOBUF_C_MINOR; 147} 148void (*protobuf_c_out_of_memory) (void) = protobuf_c_out_of_memory_default; 149 196void 197protobuf_c_buffer_simple_append (ProtobufCBuffer *buffer, 198 size_t len, 200{ 201 ProtobufCBufferSimple *simp = (ProtobufCBufferSimple *) buffer; 202 size_t new_len = simp->len + len; 388 { 389 const ProtobufCMessage *msg = * (ProtobufCMessage * const *) member; 390 size_t subrv = msg ? protobuf_c_message_get_packed_size (msg) : 0;protobuf-c-data-buffer.c http://protobuf-c.googlecode.com/svn/trunk/ | C | 1127 lines
49#define PROTOBUF_C_FRAGMENT_DATA_SIZE 4096 50#define PROTOBUF_C_FRAGMENT_DATA(frag) ((uint8_t*)(((ProtobufCDataBufferFragment*)(frag))+1)) 51 143void 144protobuf_c_data_buffer_init(ProtobufCDataBuffer *buffer, 145 ProtobufCAllocator *allocator) 485 break; 486 return * protobuf_c_data_buffer_fragment_start ((ProtobufCDataBufferFragment*)frag); 487} 499int 500protobuf_c_data_buffer_read_char (ProtobufCDataBuffer *buffer) 501{ 518size_t 519protobuf_c_data_buffer_discard(ProtobufCDataBuffer *buffer, 520 size_t max_discard)protobuf-c-rpc.c http://protobuf-c.googlecode.com/svn/trunk/ | C | 1512 lines
127 ProtobufC_RPC_Client *client = func_data; 128 protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_FAILED_WAITING); 129 client->allocator->free (client->allocator, 339 ProtobufC_RPC_Client *client = callback_data; 340 protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_NAME_LOOKUP); 341 protobuf_c_assert (client->info.name_lookup.pending); 353{ 354 protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_INIT 355 || client->state == PROTOBUF_C_CLIENT_STATE_FAILED_WAITING 411 ProtobufC_RPC_Client *client = data; 412 protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_INIT); 413 begin_name_lookup (client); 478 /* Allocate request_id */ 479 //protobuf_c_assert (client->state == PROTOBUF_C_CLIENT_STATE_CONNECTED); 480 if (client->info.connected.first_free_request_id == 0)protobuf-c.h http://protobuf-c.googlecode.com/svn/trunk/ | C Header | 523 lines
175 */ 176extern PROTOBUF_C_API ProtobufCAllocator protobuf_c_default_allocator; /* settable */ 177 181 */ 182extern PROTOBUF_C_API ProtobufCAllocator protobuf_c_system_allocator; /* use malloc, free etc */ 183 376 */ 377PROTOBUF_C_API size_t protobuf_c_message_get_packed_size(const ProtobufCMessage *message); 378PROTOBUF_C_API size_t protobuf_c_message_pack (const ProtobufCMessage *message, 379 uint8_t *out); 380PROTOBUF_C_API size_t protobuf_c_message_pack_to_buffer (const ProtobufCMessage *message, 381 ProtobufCBuffer *buffer); 392 of size descriptor->sizeof_message. */ 393PROTOBUF_C_API void protobuf_c_message_init (const ProtobufCMessageDescriptor *, 394 void *message);protobuf-c-dispatch.c http://protobuf-c.googlecode.com/svn/trunk/ | C | 911 lines
214/* Create or destroy a Dispatch */ 215ProtobufCDispatch *protobuf_c_dispatch_new (ProtobufCAllocator *allocator) 216{ 305 if (def == NULL) 306 def = protobuf_c_dispatch_new (&protobuf_c_default_allocator); 307 return def; 346 unsigned new_size = d->notifies_desired_alloced * 2; 347 ProtobufC_FDNotify *n = ALLOC (new_size * sizeof (ProtobufC_FDNotify)); 348 Callback *c = ALLOC (new_size * sizeof (Callback)); 369 unsigned new_size = d->changes_alloced * 2; 370 ProtobufC_FDNotifyChange *n = ALLOC (new_size * sizeof (ProtobufC_FDNotifyChange)); 371 memcpy (n, d->base.changes, d->changes_alloced * sizeof (ProtobufC_FDNotifyChange)); 463void 464protobuf_c_dispatch_watch_fd (ProtobufCDispatch *dispatch, 465 ProtobufC_FD fd,c_message.cc http://protobuf-c.googlecode.com/svn/trunk/ | C++ | 449 lines
27#include <google/protobuf/compiler/c/c_extension.h> 28#include <google/protobuf/compiler/c/c_helpers.h> 29#include <google/protobuf/io/printer.h> 239 " PROTOBUF_C_ASSERT (message->base.descriptor == &$lcclassname$__descriptor);\n" 240 " return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));\n" 241 "}\n" 246 " PROTOBUF_C_ASSERT (message->base.descriptor == &$lcclassname$__descriptor);\n" 247 " return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);\n" 248 "}\n" 253 " PROTOBUF_C_ASSERT (message->base.descriptor == &$lcclassname$__descriptor);\n" 254 " return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);\n" 255 "}\n" 270 " PROTOBUF_C_ASSERT (message->base.descriptor == &$lcclassname$__descriptor);\n" 271 " protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);\n" 272 "}\n"c_helpers.cc http://protobuf-c.googlecode.com/svn/trunk/ | C++ | 503 lines
2// Copyright 2008 Google Inc. 3// http://code.google.com/p/protobuf/ 4// 27 28#include <google/protobuf/compiler/c/c_helpers.h> 29#include <google/protobuf/stubs/common.h> 31namespace google { 32namespace protobuf { 33namespace compiler { 250 if (field->options().deprecated()) { 251 return " PROTOBUF_C_DEPRECATED"; 252 } 306 vars["n_ranges"] = SimpleItoa(n_ranges); 307 printer->Print(vars, "static const ProtobufCIntRange $name$[$n_ranges$ + 1] =\n" 308 "{\n");test.pb.go https://code.google.com/p/goprotobuf/ | Go | 541 lines
5 6import proto "code.google.com/p/goprotobuf/proto" 7import "math" 166type GoEnum struct { 167 Foo *FOO `protobuf:"varint,1,req,name=foo,enum=testdata.FOO" json:"foo,omitempty"` 168 XXX_unrecognized []byte `json:",omitempty"` 174type GoTestField struct { 175 Label *string `protobuf:"bytes,1,req" json:"Label,omitempty"` 176 Type *string `protobuf:"bytes,2,req" json:"Type,omitempty"` 183type GoTest struct { 184 Kind *GoTest_KIND `protobuf:"varint,1,req,enum=testdata.GoTest_KIND" json:"Kind,omitempty"` 185 Table *string `protobuf:"bytes,2,opt" json:"Table,omitempty"` 185 Table *string `protobuf:"bytes,2,opt" json:"Table,omitempty"` 186 Param *int32 `protobuf:"varint,3,opt" json:"Param,omitempty"` 187 RequiredField *GoTestField `protobuf:"bytes,4,req" json:"RequiredField,omitempty"`lib.go https://code.google.com/p/goprotobuf/ | Go | 778 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5// 44 All desired fields must be set before marshaling. 45 - A Reset() method will restore a protobuf struct to its zero state. 46 - Non-repeated fields are pointers to the values; nil means unset. 85 86 import "code.google.com/p/goprotobuf/proto" 87 106 type Test struct { 107 Label *string `protobuf:"bytes,1,req,name=label"` 108 Type *int32 `protobuf:"varint,2,opt,name=type,def=77"` 108 Type *int32 `protobuf:"varint,2,opt,name=type,def=77"` 109 Reps []int64 `protobuf:"varint,3,rep,name=reps"` 110 Optionalgroup *Test_OptionalGroup `protobuf:"group,4,opt,name=optionalgroup"`decode.go https://code.google.com/p/goprotobuf/ | Go | 727 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5// 369 if p.dec == nil { 370 fmt.Fprintf(os.Stderr, "proto: no protobuf decoder for %s.%s\n", t, st.Field(fieldnum).Name) 371 continueproperties.go https://code.google.com/p/goprotobuf/ | Go | 549 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5// 126 127// String formats the properties in the protobuf struct field tag style. 128func (p *Properties) String() string { 155 156// Parse populates p by parsing a string in the protobuf struct field tag style. 157func (p *Properties) Parse(s string) { 450 p := new(Properties) 451 p.Init(f.Type, f.Name, f.Tag.Get("protobuf"), f.Offset) 452 if f.Name == "XXX_extensions" { // special casedescriptor.pb.go https://code.google.com/p/goprotobuf/ | Go | 489 lines
1// Code generated by protoc-gen-go from "google/protobuf/descriptor.proto" 2// DO NOT EDIT! 3 4package google_protobuf 5 5 6import proto "code.google.com/p/goprotobuf/proto" 7import "math" 216 Number *int32 `protobuf:"varint,3,opt,name=number"` 217 Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google_protobuf.FieldDescriptorProto_Label"` 218 Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google_protobuf.FieldDescriptorProto_Type"` 273 JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,def=0"` 274 OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,enum=google_protobuf.FileOptions_OptimizeMode,def=1"` 275 CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,def=1"` 334type FieldOptions struct { 335 Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google_protobuf.FieldOptions_CType,def=0"` 336 Packed *bool `protobuf:"varint,2,opt,name=packed"`generator.go https://code.google.com/p/goprotobuf/ | Go | 1479 lines
3// Copyright 2010 Google Inc. All rights reserved. 4// http://code.google.com/p/goprotobuf/ 5// 50 51 "code.google.com/p/goprotobuf/proto" 52 descriptor "code.google.com/p/goprotobuf/protoc-gen-go/descriptor" 52 descriptor "code.google.com/p/goprotobuf/protoc-gen-go/descriptor" 53 plugin "code.google.com/p/goprotobuf/protoc-gen-go/plugin" 54) 344 345// New creates a new generator and allocates the request and response protobufs. 346func New() *Generator { 370// CommandLineParameters breaks the comma-separated list of key=value pairs 371// in the parameter (a member of the request protobuf) into a key/value map. 372// It then sets file name mappings defined by those entries.TypeDef.cc https://code.google.com/p/crack-language/ | C++ | 1365 lines
33#include "NullConst.h" 34#include "ProtoBuf.h" 35#include "ResultExpr.h"VarDef.cc https://code.google.com/p/crack-language/ | C++ | 518 lines
25#include "OverloadDef.h" 26#include "ProtoBuf.h" 27#include "ResultExpr.h"matlab_generator.cc https://code.google.com/p/protobuf-matlab/ | C++ | 713 lines
1// protobuf-matlab - FarSounder's Protocol Buffer support for Matlab 2// Copyright (c) 2008, FarSounder Inc. All rights reserved. 2// Copyright (c) 2008, FarSounder Inc. All rights reserved. 3// http://code.google.com/p/protobuf-matlab/ 4// 31// Author: fedor.labounko@gmail.com (Fedor Labounko) 32// Based on Google's C++ Protobuf compiler. 33// 35 36#include <farsounder/protobuf/compiler/matlab/matlab_generator.h> 37 45 46#include <google/protobuf/io/printer.h> 47#include <google/protobuf/io/zero_copy_stream.h> 47#include <google/protobuf/io/zero_copy_stream.h> 48#include <google/protobuf/descriptor.pb.h> 49#include <google/protobuf/stubs/strutil.h>Makefile.am https://code.google.com/p/protobuf-matlab/ | Makefile | 366 lines
4GZCHECKPROGRAMS = zcgzip zcgunzip 5GZHEADERS = google/protobuf/io/gzip_stream.h 6GZTESTS = google/protobuf/io/gzip_stream_unittest.sh 19 20AM_CXXFLAGS = $(NO_OPT_CXXFLAGS) $(PROTOBUF_OPT_FLAG) 21 26protodir = $(includedir) 27nobase_dist_proto_DATA = google/protobuf/descriptor.proto \ 28 google/protobuf/compiler/plugin.proto 77 78lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la 79 278 279check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \ 280 protobuf-lite-test test_plugin $(nanopb_generator.py https://code.google.com/p/nanopb/ | Python | 437 lines
1'''Generate header file for nanopb from a ProtoBuf FileDescriptorSet.''' 2 2 3import google.protobuf.descriptor_pb2 as descriptor 4import nanopb_pb2pb_decode.c https://code.google.com/p/nanopb/ | C | 553 lines
1/* pb_decode.c -- decode a protobuf using minimal resources 2 *OlaServerServiceImpl.cpp https://code.google.com/p/linux-lighting/ | C++ | 921 lines
48 49using google::protobuf::RpcController; 50using ola::proto::Ack; 75 76typedef CallbackRunner<google::protobuf::Closure> ClosureRunner; 77 88 DmxData* response, 89 google::protobuf::Closure* done) { 90 ClosureRunner runner(done); 108 Ack*, 109 google::protobuf::Closure* done, 110 Client *client) { 131 Ack*, 132 google::protobuf::Closure* done, 133 Client *client) {PidStore.py https://code.google.com/p/linux-lighting/ | Python | 1025 lines
25import sys 26from google.protobuf import text_format 27from ola import PidStoreLocationStreamRpcChannel.cpp https://code.google.com/p/linux-lighting/ | C++ | 612 lines
21#include <errno.h> 22#include <google/protobuf/service.h> 23#include <google/protobuf/message.h> 23#include <google/protobuf/message.h> 24#include <google/protobuf/descriptor.h> 25#include <google/protobuf/dynamic_message.h> 37 38using google::protobuf::ServiceDescriptor; 39 159 Message *reply, 160 google::protobuf::Closure *done) { 161 string output; 425 m_requests[msg->id()] = request; 426 google::protobuf::Closure *callback = NewCallback( 427 this, &StreamRpcChannel::RequestComplete, request);utils_test.py https://code.google.com/p/grr/ | Python | 322 lines
168 def test02InitializingFromProto(self): 169 """Test initializing from protobuf.""" 170 # Initialize from protoas3_service.cc http://protocol-buffers-actionscript.googlecode.com/svn/trunk/ | C++ | 226 lines
2// Copyright 2008 Google Inc. 3// http://code.google.com/p/protobuf/ 4// 20 21#include <google/protobuf/compiler/as3/as3_service.h> 22#include <google/protobuf/compiler/as3/as3_helpers.h> 22#include <google/protobuf/compiler/as3/as3_helpers.h> 23#include <google/protobuf/io/printer.h> 24#include <google/protobuf/descriptor.pb.h> 24#include <google/protobuf/descriptor.pb.h> 25#include <google/protobuf/stubs/strutil.h> 26 27namespace google { 28namespace protobuf { 29namespace compiler {UnitInfoContainerTests.cs http://hfm-net.googlecode.com/svn/trunk/ | C# | 0 lines
40 [Test] 41 public void ProtoBufSerializationTest() 42 { 42 { 43 UnitInfoContainer.Serialize(_collection, "UnitInfoProtoBufTest.dat"); 44 44 45 UnitInfoCollection collection2 = UnitInfoContainer.Deserialize("UnitInfoProtoBufTest.dat"); 46 ValidateTestCollection(collection2); 49 [Test] 50 public void ProtoBufDeserializeFileNotFoundTest() 51 {db_mmap_sa_64bit.patch http://miranda-dev.googlecode.com/svn/trunk/ | Patch | 645 lines
92@@ -96,7 +96,7 @@ 93 return !strcmp(protobuf,proto); 94 }UnitTestEmbedOptimizeForProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 443 lines
20 #region Static variables 21 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor; 22 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize.Builder> internal__static_protobuf_unittest_TestEmbedOptimizedForSize__FieldAccessorTable; 42 descriptor = root; 43 internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor = Descriptor.MessageTypes[0]; 44 internal__static_protobuf_unittest_TestEmbedOptimizedForSize__FieldAccessorTable = 44 internal__static_protobuf_unittest_TestEmbedOptimizedForSize__FieldAccessorTable = 45 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize.Builder>(internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor, 46 new string[] { "OptionalMessage", "RepeatedMessage", }); 83 public static pbd::MessageDescriptor Descriptor { 84 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestEmbedOptimizeForProtoFile.internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor; } 85 } 87 protected override pb::FieldAccess.FieldAccessorTable<TestEmbedOptimizedForSize, TestEmbedOptimizedForSize.Builder> InternalFieldAccessors { 88 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestEmbedOptimizeForProtoFile.internal__static_protobuf_unittest_TestEmbedOptimizedForSize__FieldAccessorTable; } 89 }UnitTestCustomOptionsProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 6408 lines
152 #region Static variables 153 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMessageWithCustomOptions__Descriptor; 154 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions, global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions.Builder> internal__static_protobuf_unittest_TestMessageWithCustomOptions__FieldAccessorTable; 154 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions, global::Google.ProtocolBuffers.TestProtos.TestMessageWithCustomOptions.Builder> internal__static_protobuf_unittest_TestMessageWithCustomOptions__FieldAccessorTable; 155 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_CustomOptionFooRequest__Descriptor; 156 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest.Builder> internal__static_protobuf_unittest_CustomOptionFooRequest__FieldAccessorTable; 156 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooRequest.Builder> internal__static_protobuf_unittest_CustomOptionFooRequest__FieldAccessorTable; 157 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_CustomOptionFooResponse__Descriptor; 158 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.Builder> internal__static_protobuf_unittest_CustomOptionFooResponse__FieldAccessorTable; 158 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse, global::Google.ProtocolBuffers.TestProtos.CustomOptionFooResponse.Builder> internal__static_protobuf_unittest_CustomOptionFooResponse__FieldAccessorTable; 159 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_DummyMessageContainingEnum__Descriptor; 160 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum, global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum.Builder> internal__static_protobuf_unittest_DummyMessageContainingEnum__FieldAccessorTable; 160 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum, global::Google.ProtocolBuffers.TestProtos.DummyMessageContainingEnum.Builder> internal__static_protobuf_unittest_DummyMessageContainingEnum__FieldAccessorTable; 161 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__Descriptor; 162 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType, global::Google.ProtocolBuffers.TestProtos.DummyMessageInvalidAsOptionType.Builder> internal__static_protobuf_unittest_DummyMessageInvalidAsOptionType__FieldAccessorTable;UnitTestExtrasProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 404 lines
69 #region Static variables 70 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor; 71 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder> internal__static_protobuf_unittest_extra_TestUnpackedExtensions__FieldAccessorTable; 117 descriptor = root; 118 internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor = Descriptor.MessageTypes[0]; 119 internal__static_protobuf_unittest_extra_TestUnpackedExtensions__FieldAccessorTable = 119 internal__static_protobuf_unittest_extra_TestUnpackedExtensions__FieldAccessorTable = 120 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder>(internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor, 121 new string[] { }); 182 public static pbd::MessageDescriptor Descriptor { 183 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor; } 184 } 186 protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedExtensions, TestUnpackedExtensions.Builder> InternalFieldAccessors { 187 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.internal__static_protobuf_unittest_extra_TestUnpackedExtensions__FieldAccessorTable; } 188 }UnitTestMessageSetProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 1824 lines
26 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageSetContainer, global::Google.ProtocolBuffers.TestProtos.TestMessageSetContainer.Builder> internal__static_protobuf_unittest_TestMessageSetContainer__FieldAccessorTable; 27 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMessageSetExtension1__Descriptor; 28 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageSetExtension1, global::Google.ProtocolBuffers.TestProtos.TestMessageSetExtension1.Builder> internal__static_protobuf_unittest_TestMessageSetExtension1__FieldAccessorTable; 28 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageSetExtension1, global::Google.ProtocolBuffers.TestProtos.TestMessageSetExtension1.Builder> internal__static_protobuf_unittest_TestMessageSetExtension1__FieldAccessorTable; 29 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestMessageSetExtension2__Descriptor; 30 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageSetExtension2, global::Google.ProtocolBuffers.TestProtos.TestMessageSetExtension2.Builder> internal__static_protobuf_unittest_TestMessageSetExtension2__FieldAccessorTable; 66 internal__static_protobuf_unittest_TestMessageSetContainer__Descriptor = Descriptor.MessageTypes[1]; 67 internal__static_protobuf_unittest_TestMessageSetContainer__FieldAccessorTable = 68 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMessageSetContainer, global::Google.ProtocolBuffers.TestProtos.TestMessageSetContainer.Builder>(internal__static_protobuf_unittest_TestMessageSetContainer__Descriptor, 83 new string[] { "Item", }); 84 internal__static_protobuf_unittest_RawMessageSet_Item__Descriptor = internal__static_protobuf_unittest_RawMessageSet__Descriptor.NestedTypes[0]; 85 internal__static_protobuf_unittest_RawMessageSet_Item__FieldAccessorTable = 126 protected override pb::FieldAccess.FieldAccessorTable<TestMessageSet, TestMessageSet.Builder> InternalFieldAccessors { 127 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestMessageSetProtoFile.internal__static_protobuf_unittest_TestMessageSet__FieldAccessorTable; } 128 }UnitTestCSharpOptionsProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 427 lines
20 #region Static variables 21 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_OptionsMessage__Descriptor; 22 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionsMessage, global::Google.ProtocolBuffers.TestProtos.OptionsMessage.Builder> internal__static_protobuf_unittest_OptionsMessage__FieldAccessorTable; 40 descriptor = root; 41 internal__static_protobuf_unittest_OptionsMessage__Descriptor = Descriptor.MessageTypes[0]; 42 internal__static_protobuf_unittest_OptionsMessage__FieldAccessorTable = 42 internal__static_protobuf_unittest_OptionsMessage__FieldAccessorTable = 43 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionsMessage, global::Google.ProtocolBuffers.TestProtos.OptionsMessage.Builder>(internal__static_protobuf_unittest_OptionsMessage__Descriptor, 44 new string[] { "Normal", "OptionsMessage_", "CustomName", }); 79 public static pbd::MessageDescriptor Descriptor { 80 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCSharpOptionsProtoFile.internal__static_protobuf_unittest_OptionsMessage__Descriptor; } 81 } 83 protected override pb::FieldAccess.FieldAccessorTable<OptionsMessage, OptionsMessage.Builder> InternalFieldAccessors { 84 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestCSharpOptionsProtoFile.internal__static_protobuf_unittest_OptionsMessage__FieldAccessorTable; } 85 }UnitTestOptimizeForProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 673 lines
22 #region Static variables 23 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOptimizedForSize__Descriptor; 24 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder> internal__static_protobuf_unittest_TestOptimizedForSize__FieldAccessorTable; 24 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder> internal__static_protobuf_unittest_TestOptimizedForSize__FieldAccessorTable; 25 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredOptimizedForSize__Descriptor; 26 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestRequiredOptimizedForSize.Builder> internal__static_protobuf_unittest_TestRequiredOptimizedForSize__FieldAccessorTable; 26 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestRequiredOptimizedForSize.Builder> internal__static_protobuf_unittest_TestRequiredOptimizedForSize__FieldAccessorTable; 27 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestOptionalOptimizedForSize__Descriptor; 28 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOptionalOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestOptionalOptimizedForSize.Builder> internal__static_protobuf_unittest_TestOptionalOptimizedForSize__FieldAccessorTable; 53 descriptor = root; 54 internal__static_protobuf_unittest_TestOptimizedForSize__Descriptor = Descriptor.MessageTypes[0]; 55 internal__static_protobuf_unittest_TestOptimizedForSize__FieldAccessorTable = 55 internal__static_protobuf_unittest_TestOptimizedForSize__FieldAccessorTable = 56 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder>(internal__static_protobuf_unittest_TestOptimizedForSize__Descriptor, 57 new string[] { "I", "Msg", });UnitTestXmlSerializerTestProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 2292 lines
39 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestXmlNoFields, global::Google.ProtocolBuffers.TestProtos.TestXmlNoFields.Builder> internal__static_protobuf_unittest_extra_TestXmlNoFields__FieldAccessorTable; 40 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_extra_TestXmlRescursive__Descriptor; 41 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestXmlRescursive, global::Google.ProtocolBuffers.TestProtos.TestXmlRescursive.Builder> internal__static_protobuf_unittest_extra_TestXmlRescursive__FieldAccessorTable; 43 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestXmlMessage, global::Google.ProtocolBuffers.TestProtos.TestXmlMessage.Builder> internal__static_protobuf_unittest_extra_TestXmlMessage__FieldAccessorTable; 44 internal static pbd::MessageDescriptor internal__static_protobuf_unittest_extra_TestXmlMessage_Children__Descriptor; 45 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestXmlMessage.Types.Children, global::Google.ProtocolBuffers.TestProtos.TestXmlMessage.Types.Children.Builder> internal__static_protobuf_unittest_extra_TestXmlMessage_Children__FieldAccessorTable; 87 new string[] { "Options", "Binary", }); 88 internal__static_protobuf_unittest_extra_TestXmlNoFields__Descriptor = Descriptor.MessageTypes[1]; 89 internal__static_protobuf_unittest_extra_TestXmlNoFields__FieldAccessorTable = 99 new string[] { "Number", "Numbers", "Text", "Textlines", "Valid", "Child", "Children", }); 100 internal__static_protobuf_unittest_extra_TestXmlMessage_Children__Descriptor = internal__static_protobuf_unittest_extra_TestXmlMessage__Descriptor.NestedTypes[0]; 101 internal__static_protobuf_unittest_extra_TestXmlMessage_Children__FieldAccessorTable = 162 protected override pb::FieldAccess.FieldAccessorTable<TestXmlChild, TestXmlChild.Builder> InternalFieldAccessors { 163 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestXmlSerializerTestProtoFile.internal__static_protobuf_unittest_extra_TestXmlChild__FieldAccessorTable; } 164 }UnitTestNoGenericServicesProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 371 lines
26 #region Static variables 27 internal static pbd::MessageDescriptor internal__static_google_protobuf_no_generic_services_test_TestMessage__Descriptor; 28 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.NoGenericService.TestMessage, global::Google.ProtocolBuffers.TestProtos.NoGenericService.TestMessage.Builder> internal__static_google_protobuf_no_generic_services_test_TestMessage__FieldAccessorTable; 51 descriptor = root; 52 internal__static_google_protobuf_no_generic_services_test_TestMessage__Descriptor = Descriptor.MessageTypes[0]; 53 internal__static_google_protobuf_no_generic_services_test_TestMessage__FieldAccessorTable = 53 internal__static_google_protobuf_no_generic_services_test_TestMessage__FieldAccessorTable = 54 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.NoGenericService.TestMessage, global::Google.ProtocolBuffers.TestProtos.NoGenericService.TestMessage.Builder>(internal__static_google_protobuf_no_generic_services_test_TestMessage__Descriptor, 55 new string[] { "A", }); 100 public static pbd::MessageDescriptor Descriptor { 101 get { return global::Google.ProtocolBuffers.TestProtos.NoGenericService.UnitTestNoGenericServicesProtoFile.internal__static_google_protobuf_no_generic_services_test_TestMessage__Descriptor; } 102 } 104 protected override pb::FieldAccess.FieldAccessorTable<TestMessage, TestMessage.Builder> InternalFieldAccessors { 105 get { return global::Google.ProtocolBuffers.TestProtos.NoGenericService.UnitTestNoGenericServicesProtoFile.internal__static_google_protobuf_no_generic_services_test_TestMessage__FieldAccessorTable; } 106 }TextFormatTest.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 571 lines
4// Copyright 2008 Google Inc. All rights reserved. 5// http://github.com/jskeet/dotnet-protobufs/ 6// Original C++/Java/Python code: 6// Original C++/Java/Python code: 7// http://code.google.com/p/protobuf/ 8// 82 private const string MessageSetText = 83 "[protobuf_unittest.TestMessageSetExtension1] {\n" + 84 " i: 123\n" + 85 "}\n" + 86 "[protobuf_unittest.TestMessageSetExtension2] {\n" + 87 " str: \"foo\"\n" +TestRpcForMimeTypes.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 386 lines
4// Copyright 2008 Google Inc. All rights reserved. 5// http://github.com/jskeet/dotnet-protobufs/ 6// Original C++/Java/Python code: 6// Original C++/Java/Python code: 7// http://code.google.com/p/protobuf/ 8// 248 249 ISearchService client = new SearchService(new ExampleClient(wire, "application/x-protobuf")); 250 //now the client has a real, typed, interface to work with:DescriptorsTest.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 352 lines
4// Copyright 2008 Google Inc. All rights reserved. 5// http://github.com/jskeet/dotnet-protobufs/ 6// Original C++/Java/Python code: 6// Original C++/Java/Python code: 7// http://code.google.com/p/protobuf/ 8// 55 56 Assert.AreEqual("google/protobuf/unittest.proto", file.Name); 57 Assert.AreEqual("protobuf_unittest", file.Package); 59 Assert.AreEqual("UnittestProto", file.Options.JavaOuterClassname); 60 Assert.AreEqual("google/protobuf/unittest.proto", file.Proto.Name); 61 69 Assert.IsNull(file.FindTypeByName<MessageDescriptor>("NoSuchType")); 70 Assert.IsNull(file.FindTypeByName<MessageDescriptor>("protobuf_unittest.TestAllTypes")); 71 for (int i = 0; i < file.MessageTypes.Count; i++)UnitTestExtrasFullProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 2186 lines
83 new string[] { "Name", "Id", "Email", "Codes", "Phone", "Addresses", }); 84 internal__static_protobuf_unittest_extra_TestInteropPerson_PhoneNumber__Descriptor = internal__static_protobuf_unittest_extra_TestInteropPerson__Descriptor.NestedTypes[0]; 85 internal__static_protobuf_unittest_extra_TestInteropPerson_PhoneNumber__FieldAccessorTable = 87 new string[] { "Number", "Type", }); 88 internal__static_protobuf_unittest_extra_TestInteropPerson_Addresses__Descriptor = internal__static_protobuf_unittest_extra_TestInteropPerson__Descriptor.NestedTypes[1]; 89 internal__static_protobuf_unittest_extra_TestInteropPerson_Addresses__FieldAccessorTable = 99 new string[] { "Name", "Id", "Email", "TestA", }); 100 internal__static_protobuf_unittest_extra_TestMissingFieldsA_SubA__Descriptor = internal__static_protobuf_unittest_extra_TestMissingFieldsA__Descriptor.NestedTypes[0]; 101 internal__static_protobuf_unittest_extra_TestMissingFieldsA_SubA__FieldAccessorTable = 107 new string[] { "Name", "Id", "Website", "TestB", }); 108 internal__static_protobuf_unittest_extra_TestMissingFieldsB_SubB__Descriptor = internal__static_protobuf_unittest_extra_TestMissingFieldsB__Descriptor.NestedTypes[0]; 109 internal__static_protobuf_unittest_extra_TestMissingFieldsB_SubB__FieldAccessorTable = 145 public static pbd::MessageDescriptor Descriptor { 146 get { return global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasFullProtoFile.internal__static_protobuf_unittest_extra_TestInteropPerson__Descriptor; } 147 }UnitTestExtrasLiteProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 3645 lines
79 new pb::GeneratedExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite, global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite>( 80 "protobuf_unittest_extra.employee_id_lite", 81 global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance, 88 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, int>( 89 "protobuf_unittest_extra.unpacked_int32_extension_lite", 90 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance, 97 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, long>( 98 "protobuf_unittest_extra.unpacked_int64_extension_lite", 99 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance, 106 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, uint>( 107 "protobuf_unittest_extra.unpacked_uint32_extension_lite", 108 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance, 115 new pb::GeneratedRepeatExtensionLite<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite, ulong>( 116 "protobuf_unittest_extra.unpacked_uint64_extension_lite", 117 global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensionsLite.DefaultInstance,FileDescriptor.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 496 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://github.com/jskeet/dotnet-protobufs/ 4// Original C++/Java/Python code: 4// Original C++/Java/Python code: 5// http://code.google.com/p/protobuf/ 6// 95 // Fix for being able to relocate these files to any directory structure 96 if (proto.Package == "google.protobuf") 97 { 109 OutputDirectory = defaultOptions.OutputDirectory, 110 IgnoreGoogleProtobuf = defaultOptions.IgnoreGoogleProtobuf 111 }.Build(); 122 OutputDirectory = defaultOptions.OutputDirectory, 123 IgnoreGoogleProtobuf = defaultOptions.IgnoreGoogleProtobuf 124 }.Build();FieldDescriptor.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 671 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://github.com/jskeet/dotnet-protobufs/ 4// Original C++/Java/Python code: 4// Original C++/Java/Python code: 5// http://code.google.com/p/protobuf/ 6// 106 // TODO(jonskeet): Check if we could use FileDescriptorProto.Descriptor.Name - interesting bootstrap issues 107 if (File.Proto.Name == "google/protobuf/csharp_options.proto") 108 {CSharpOptions.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 1843 lines
35 #region Static variables 36 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor; 37 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; 37 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; 38 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor; 39 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; 39 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; 40 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor; 41 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; 41 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; 42 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor; 43 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder> internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; 81 descriptor = root; 82 internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0]; 83 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =DescriptorProtoFile.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 9112 lines
20 #region Static variables 21 internal static pbd::MessageDescriptor internal__static_google_protobuf_FileDescriptorSet__Descriptor; 22 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Builder> internal__static_google_protobuf_FileDescriptorSet__FieldAccessorTable; 22 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Builder> internal__static_google_protobuf_FileDescriptorSet__FieldAccessorTable; 23 internal static pbd::MessageDescriptor internal__static_google_protobuf_FileDescriptorProto__Descriptor; 24 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder> internal__static_google_protobuf_FileDescriptorProto__FieldAccessorTable; 24 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder> internal__static_google_protobuf_FileDescriptorProto__FieldAccessorTable; 25 internal static pbd::MessageDescriptor internal__static_google_protobuf_DescriptorProto__Descriptor; 26 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder> internal__static_google_protobuf_DescriptorProto__FieldAccessorTable; 26 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder> internal__static_google_protobuf_DescriptorProto__FieldAccessorTable; 27 internal static pbd::MessageDescriptor internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor; 28 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder> internal__static_google_protobuf_DescriptorProto_ExtensionRange__FieldAccessorTable; 28 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder> internal__static_google_protobuf_DescriptorProto_ExtensionRange__FieldAccessorTable; 29 internal static pbd::MessageDescriptor internal__static_google_protobuf_FieldDescriptorProto__Descriptor; 30 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder> internal__static_google_protobuf_FieldDescriptorProto__FieldAccessorTable;CodedInputStream.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 1846 lines
4// Copyright 2008 Google Inc. All rights reserved. 5// http://github.com/jskeet/dotnet-protobufs/ 6// Original C++/Java/Python code: 6// Original C++/Java/Python code: 7// http://code.google.com/p/protobuf/ 8// 196 /// <param name="fieldTag">The 'tag' of the field (id * 8 + wire-format)</param> 197 /// <param name="fieldName">Not Supported - For protobuffer streams, this parameter is always null</param> 198 /// <returns>true if the next fieldTag was read</returns>ICodedOutputStream.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 374 lines
4// Copyright 2008 Google Inc. All rights reserved. 5// http://github.com/jskeet/dotnet-protobufs/ 6// Original C++/Java/Python code: 6// Original C++/Java/Python code: 7// http://code.google.com/p/protobuf/ 8// 57 /// <remarks> 58 /// This is primarily used by text formats and unnecessary for protobuffers' own 59 /// binary format. The API for MessageStart/End was added for consistent handling 66 /// <remarks> 67 /// This is primarily used by text formats and unnecessary for protobuffers' own 68 /// binary format. The API for MessageStart/End was added for consistent handlingServiceInterfaceGenerator.cs https://code.google.com/p/protobuf-csharp-port/ | C# | 308 lines
4// Copyright 2008 Google Inc. All rights reserved. 5// http://github.com/jskeet/dotnet-protobufs/ 6// Original C++/Java/Python code: 6// Original C++/Java/Python code: 7// http://code.google.com/p/protobuf/ 8// 86 writer.WriteLine("* Service generation is now disabled by default, use the following option to enable:"); 87 writer.WriteLine("* option (google.protobuf.csharp_file_options).service_generator_type = GENERIC;"); 88 writer.WriteLine("*/");cpp_file.cc http://protoc-gen-luabind.googlecode.com/svn/trunk/ | C++ | 618 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 41#include "cpp/cpp_field.h" 42#include <google/protobuf/io/printer.h> 43#include <google/protobuf/descriptor.pb.h> 43#include <google/protobuf/descriptor.pb.h> 44#include <google/protobuf/stubs/strutil.h> 45 46namespace google { 47namespace protobuf { 48namespace compiler { 98 "\n" 99 "#ifndef PROTOBUF_$filename_identifier$__INCLUDED\n" 100 "#define PROTOBUF_$filename_identifier$__INCLUDED\n"cpp_message.cc http://protoc-gen-luabind.googlecode.com/svn/trunk/ | C++ | 1937 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 35#include <algorithm> 36#include <google/protobuf/stubs/hash.h> 37#include <map> 44#include "cpp/cpp_helpers.h" 45#include <google/protobuf/stubs/strutil.h> 46#include <google/protobuf/io/printer.h> 46#include <google/protobuf/io/printer.h> 47#include <google/protobuf/io/coded_stream.h> 48#include <google/protobuf/wire_format.h> 48#include <google/protobuf/wire_format.h> 49#include <google/protobuf/descriptor.pb.h> 50cpp_string_field.cc http://protoc-gen-luabind.googlecode.com/svn/trunk/ | C++ | 454 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 36#include "cpp/cpp_helpers.h" 37#include <google/protobuf/io/printer.h> 38#include <google/protobuf/descriptor.pb.h> 38#include <google/protobuf/descriptor.pb.h> 39#include <google/protobuf/stubs/strutil.h> 40 41namespace google { 42namespace protobuf { 43namespace compiler { 52 (*variables)["default_variable"] = descriptor->default_value_string().empty() 53 ? "::google::protobuf::internal::kEmptyString" 54 : "_default_" + FieldName(descriptor) + "_";codegen.scm http://r6rs-protobuf.googlecode.com/svn/trunk/ | Scheme | 794 lines
1;; codegen.scm: code generation API for r6rs-protobuf 2;; Copyright (C) 2011 Julian Graham 3 4;; r6rs-protobuf is free software: you can redistribute it and/or modify 5;; it under the terms of the GNU General Public License as published by 18 19(library (protobuf compile codegen) 20 (export protoc:default-naming-context 31 (import (rnrs) 32 (protobuf compile parse) 33 (protobuf private) 89 90 (define default-package-name "protobuf.default") 91 212 (string-append (type-name-recursive 213 (protobuf:message-field-type-descriptor-definition 214 (protoc:type-reference-descriptorparse.scm http://r6rs-protobuf.googlecode.com/svn/trunk/ | Scheme | 800 lines
1;; parse.scm: .proto format parsing routines for r6rs-protobuf 2;; Copyright (C) 2011 Julian Graham 3 4;; r6rs-protobuf is free software: you can redistribute it and/or modify 5;; it under the terms of the GNU General Public License as published by 18 19(library (protobuf compile parse) 20 (export protoc:make-parser 92 (import (rnrs) 93 (protobuf private) 94 (protobuf compile tokenize) 382 (define (message-definition->descriptor definition) 383 (protobuf:make-message-field-type-descriptor 384 (protoc:message-definition-name definition) 387 (define (enum-definition->descriptor definition) 388 (protobuf:make-enum-field-type-descriptor 389 (protoc:enum-definition-name definition)private.scm http://r6rs-protobuf.googlecode.com/svn/trunk/ | Scheme | 635 lines
141 142 (define (protobuf:write-int32 port int32) (protobuf:write-varint port int32)) 143 (define (protobuf:write-int64 port int64) (protobuf:write-varint port int64)) 250 251 (define-record-type (protobuf:field protobuf:make-field protobuf:field?) 252 (fields 252 (fields 253 (mutable value protobuf:field-value protobuf:set-field-value-internal!) 254 (immutable descriptor protobuf:field-field-descriptor) 264 265 (define-record-type (protobuf:message protobuf:make-message protobuf:message?) 266 (fields fields extension-fields)) 355 (protobuf:field-field-descriptor field) (vector)) 356 (protobuf:make-field (protobuf:field-field-descriptor field))))) 357TestProtos.java http://protobuf-socket-rpc.googlecode.com/svn/trunk/ | Java | 1131 lines
57 getDescriptor() { 58 return com.googlecode.protobuf.socketrpc.TestProtos.internal_static_protobuf_socketrpc_Request_descriptor; 59 } 62 internalGetFieldAccessorTable() { 63 return com.googlecode.protobuf.socketrpc.TestProtos.internal_static_protobuf_socketrpc_Request_fieldAccessorTable; 64 } 228 getDescriptor() { 229 return com.googlecode.protobuf.socketrpc.TestProtos.internal_static_protobuf_socketrpc_Request_descriptor; 230 } 233 internalGetFieldAccessorTable() { 234 return com.googlecode.protobuf.socketrpc.TestProtos.internal_static_protobuf_socketrpc_Request_fieldAccessorTable; 235 } 292 public com.googlecode.protobuf.socketrpc.TestProtos.Request buildPartial() { 293 com.googlecode.protobuf.socketrpc.TestProtos.Request result = new com.googlecode.protobuf.socketrpc.TestProtos.Request(this); 294 int from_bitField0_ = bitField0_;SocketRpcProtos.java http://protobuf-socket-rpc.googlecode.com/svn/trunk/ | Java | 1296 lines
158 getDescriptor() { 159 return com.googlecode.protobuf.socketrpc.SocketRpcProtos.internal_static_protobuf_socketrpc_Request_descriptor; 160 } 163 internalGetFieldAccessorTable() { 164 return com.googlecode.protobuf.socketrpc.SocketRpcProtos.internal_static_protobuf_socketrpc_Request_fieldAccessorTable; 165 } 267 268 public void writeTo(com.google.protobuf.CodedOutputStream output) 269 throws java.io.IOException { 395 getDescriptor() { 396 return com.googlecode.protobuf.socketrpc.SocketRpcProtos.internal_static_protobuf_socketrpc_Request_descriptor; 397 } 400 internalGetFieldAccessorTable() { 401 return com.googlecode.protobuf.socketrpc.SocketRpcProtos.internal_static_protobuf_socketrpc_Request_fieldAccessorTable; 402 }PnodeProto.java http://findataweb.googlecode.com/svn/trunk/ | Java | 2588 lines
8 public static void registerAllExtensions( 9 com.google.protobuf.ExtensionRegistry registry) { 10 } 11 public interface AllNodesOrBuilder 12 extends com.google.protobuf.MessageOrBuilder { 13 28 public static final class AllNodes extends 29 com.google.protobuf.GeneratedMessage 30 implements AllNodesOrBuilder { 45 46 public static final com.google.protobuf.Descriptors.Descriptor 47 getDescriptor() { 50 51 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 52 internalGetFieldAccessorTable() {NepoolProto.java http://findataweb.googlecode.com/svn/trunk/ | Java | 2542 lines
8 public static void registerAllExtensions( 9 com.google.protobuf.ExtensionRegistry registry) { 10 } 11 public interface PriceQuantityPairOrBuilder 12 extends com.google.protobuf.MessageOrBuilder { 13 22 public static final class PriceQuantityPair extends 23 com.google.protobuf.GeneratedMessage 24 implements PriceQuantityPairOrBuilder { 39 40 public static final com.google.protobuf.Descriptors.Descriptor 41 getDescriptor() { 44 45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 46 internalGetFieldAccessorTable() {TimeseriesProto.java http://findataweb.googlecode.com/svn/trunk/ | Java | 2579 lines
9 public static void registerAllExtensions( 10 com.google.protobuf.ExtensionRegistry registry) { 11 } 12 public interface ObservationOrBuilder 13 extends com.google.protobuf.MessageOrBuilder { 14 27 public static final class Observation extends 28 com.google.protobuf.GeneratedMessage 29 implements ObservationOrBuilder { 44 45 public static final com.google.protobuf.Descriptors.Descriptor 46 getDescriptor() { 49 50 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 51 internalGetFieldAccessorTable() {MediaContentHolder.java http://thrift-protobuf-compare.googlecode.com/svn/trunk/ | Java | 2452 lines
3// 4package serializers.activemq.protobuf; 5 7 8 static public interface Image extends org.apache.activemq.protobuf.PBMessage<Image.ImageBean, Image.ImageBuffer> { 9 98 private void copyCheck() { 99 assert frozen==null : org.apache.activemq.protobuf.MessageBufferSupport.FORZEN_ERROR_MESSAGE; 100 if (bean != this) { 277 public ImageBean mergeUnframed(java.io.InputStream input) throws java.io.IOException { 278 return mergeUnframed(new org.apache.activemq.protobuf.CodedInputStream(input)); 279 } 280 281 public ImageBean mergeUnframed(org.apache.activemq.protobuf.CodedInputStream input) throws java.io.IOException { 282 copyCheck();MediaContentHolder.java http://thrift-protobuf-compare.googlecode.com/svn/trunk/ | Java | 1983 lines
25 getDescriptor() { 26 return serializers.protobuf.MediaContentHolder.internal_static_serializers_protobuf_Image_descriptor; 27 } 30 internalGetFieldAccessorTable() { 31 return serializers.protobuf.MediaContentHolder.internal_static_serializers_protobuf_Image_fieldAccessorTable; 32 } 129 private boolean hasSize; 130 private serializers.protobuf.MediaContentHolder.Image.Size size_ = serializers.protobuf.MediaContentHolder.Image.Size.SMALL; 131 public boolean hasSize() { return hasSize; } 207 byte[] data, 208 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 209 throws com.google.protobuf.InvalidProtocolBufferException { 391 int rawValue = input.readEnum(); 392 serializers.protobuf.MediaContentHolder.Image.Size value = serializers.protobuf.MediaContentHolder.Image.Size.valueOf(rawValue); 393 if (value == null) {BenchmarkRunner.java http://thrift-protobuf-compare.googlecode.com/svn/trunk/ | Java | 425 lines
39 runner.addObjectSerializer(new AvroSpecificSerializer()); 40 runner.addObjectSerializer(new ActiveMQProtobufSerializer()); 41 runner.addObjectSerializer(new ProtobufSerializer());Messages.java http://cmecab-java.googlecode.com/svn/trunk/ | Java | 1673 lines
8 public static void registerAllExtensions( 9 com.google.protobuf.ExtensionRegistry registry) { 10 } 11 public interface ParsingRequestOrBuilder 12 extends com.google.protobuf.MessageOrBuilder { 13 18 public static final class ParsingRequest extends 19 com.google.protobuf.GeneratedMessage 20 implements ParsingRequestOrBuilder { 35 36 public static final com.google.protobuf.Descriptors.Descriptor 37 getDescriptor() { 40 41 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 42 internalGetFieldAccessorTable() {protobuf.lua https://code.google.com/p/protoc-gen-lua/ | Lua | 923 lines
2-------------------------------------------------------------------------------- 3-- FILE: protobuf.lua 4-- DESCRIPTION: protoc-gen-lua 41 42module("protobuf") 43