100+ results results for 'protobuf' (204 ms)
33 // +optional 34 metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` 35 36 // Spec holds information about the request being evaluated 37 Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` 38 40 // +optional 41 Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` 42} 54 // +optional 55 metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` 56 57 // Spec holds information about the request being evaluated. user and groups must be empty 58 Spec SelfSubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` 59DynamicMessageTest.java https://gitlab.com/github-cloud-corporation/protobuf | Java | 326 lines
30 31package com.google.protobuf; 32 32 33import com.google.protobuf.Descriptors.EnumDescriptor; 34import com.google.protobuf.Descriptors.FieldDescriptor; 34import com.google.protobuf.Descriptors.FieldDescriptor; 35import com.google.protobuf.Descriptors.OneofDescriptor; 36import protobuf_unittest.UnittestProto.TestAllExtensions; 36import protobuf_unittest.UnittestProto.TestAllExtensions; 37import protobuf_unittest.UnittestProto.TestAllTypes; 38import protobuf_unittest.UnittestProto.TestEmptyMessage; 38import protobuf_unittest.UnittestProto.TestEmptyMessage; 39import protobuf_unittest.UnittestProto.TestPackedTypes; 40splitter_runner_test.go https://gitlab.com/karouf/heka | Go | 478 lines
178 179 c.Specify("correctly splits & unframes a protobuf stream", func() { 180 ir := NewMockInputRunner(ctrl)route.upb.h https://gitlab.com/bigSur_Civic/flash-chat-completed | C Header | 223 lines
51struct envoy_api_v2_route_VirtualHost; 52struct google_protobuf_BoolValue; 53extern const upb_msglayout envoy_api_v2_core_ConfigSource_msginit; 55extern const upb_msglayout envoy_api_v2_route_VirtualHost_msginit; 56extern const upb_msglayout google_protobuf_BoolValue_msginit; 57 78UPB_INLINE const struct envoy_api_v2_core_HeaderValueOption* const* envoy_api_v2_RouteConfiguration_request_headers_to_add(const envoy_api_v2_RouteConfiguration *msg, size_t *len) { return (const struct envoy_api_v2_core_HeaderValueOption* const*)_upb_array_accessor(msg, UPB_SIZE(36, 72), len); } 79UPB_INLINE const struct google_protobuf_BoolValue* envoy_api_v2_RouteConfiguration_validate_clusters(const envoy_api_v2_RouteConfiguration *msg) { return UPB_FIELD_AT(msg, const struct google_protobuf_BoolValue*, UPB_SIZE(12, 24)); } 80UPB_INLINE upb_strview const* envoy_api_v2_RouteConfiguration_request_headers_to_remove(const envoy_api_v2_RouteConfiguration *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(40, 80), len); } 149UPB_INLINE struct google_protobuf_BoolValue* envoy_api_v2_RouteConfiguration_mutable_validate_clusters(envoy_api_v2_RouteConfiguration *msg, upb_arena *arena) { 150 struct google_protobuf_BoolValue* sub = (struct google_protobuf_BoolValue*)envoy_api_v2_RouteConfiguration_validate_clusters(msg); 151 if (sub == NULL) { 151 if (sub == NULL) { 152 sub = (struct google_protobuf_BoolValue*)upb_msg_new(&google_protobuf_BoolValue_msginit, arena); 153 if (!sub) return NULL;Dictionary.cs https://gitlab.com/vitaliismal/dictionaryServer | C# | 504 lines
5 6using pb = global::Google.Protobuf; 7using pbc = global::Google.Protobuf.Collections; 7using pbc = global::Google.Protobuf.Collections; 8using pbr = global::Google.Protobuf.Reflection; 9using scg = global::System.Collections.Generic;page_topics_model_executor.cc https://github.com/chromium/chromium.git | C++ | 376 lines
38 kCouldNotUncompressFile = 3, 39 kCouldNotUnmarshalProtobuf = 4, 40 kMaxValue = kCouldNotUnmarshalProtobuf, 72 RecordOverrideListFileLoadResult( 73 OverrideListFileLoadResult::kCouldNotUnmarshalProtobuf); 74 return absl::nullopt;DynamicMessageTest.java https://gitlab.com/0072016/Googlebot-3 | Java | 326 lines
30 31package com.google.protobuf; 32 32 33import com.google.protobuf.Descriptors.EnumDescriptor; 34import com.google.protobuf.Descriptors.FieldDescriptor; 34import com.google.protobuf.Descriptors.FieldDescriptor; 35import com.google.protobuf.Descriptors.OneofDescriptor; 36 36 37import protobuf_unittest.UnittestProto.TestAllExtensions; 38import protobuf_unittest.UnittestProto.TestAllTypes; 38import protobuf_unittest.UnittestProto.TestAllTypes; 39import protobuf_unittest.UnittestProto.TestEmptyMessage; 40import protobuf_unittest.UnittestProto.TestPackedTypes;cpp_string_field.cc https://bitbucket.org/Abd4llA/test.git | C++ | 384 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_string_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/descriptor.pb.h> 40#include <google/protobuf/stubs/strutil.h> 42namespace google { 43namespace protobuf { 44namespace compiler {message_unittest.cc https://gitlab.com/bugdone/demoinfogo_windows_build | C++ | 427 lines
34 35#include <google/protobuf/message.h> 36 47 48#include <google/protobuf/io/zero_copy_stream_impl.h> 49#include <google/protobuf/io/coded_stream.h> 49#include <google/protobuf/io/coded_stream.h> 50#include <google/protobuf/descriptor.h> 51#include <google/protobuf/descriptor.pb.h> 51#include <google/protobuf/descriptor.pb.h> 52#include <google/protobuf/unittest.pb.h> 53#include <google/protobuf/test_util.h> 54 55#include <google/protobuf/stubs/common.h> 56#include <google/protobuf/testing/googletest.h>Aggregation_Code_Manager.cs git://github.com/MarkVSullivan/SobekCM-Web-Application.git | C# | 313 lines
8using System.Xml.Serialization; 9using ProtoBuf; 10using SobekCM.Core.Aggregations;parser.h https://github.com/alon/bhuman2009fork.git | C Header | 325 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 36 37#ifndef GOOGLE_PROTOBUF_COMPILER_PARSER_H__ 38#define GOOGLE_PROTOBUF_COMPILER_PARSER_H__ 42#include <utility> 43#include <google/protobuf/stubs/common.h> 44#include <google/protobuf/descriptor.h> 44#include <google/protobuf/descriptor.h> 45#include <google/protobuf/descriptor.pb.h> 46#include <google/protobuf/repeated_field.h> 46#include <google/protobuf/repeated_field.h> 47#include <google/protobuf/io/tokenizer.h> 48field_mask.pb.cc https://gitlab.com/yenny.prathivi/protobuf | C++ | 402 lines
33void protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto() { 34 protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto(); 35 const ::google::protobuf::FileDescriptor* file = 57 58GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 59inline void protobuf_AssignDescriptorsOnce() { 59inline void protobuf_AssignDescriptorsOnce() { 60 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 61 &protobuf_AssignDesc_google_2fprotobuf_2ffield_5fmask_2eproto); 94 FieldMask::default_instance_->InitAsDefaultInstance(); 95 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2ffield_5fmask_2eproto); 96} 155const FieldMask& FieldMask::default_instance() { 156 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2ffield_5fmask_2eproto(); 157 return *default_instance_;__init__.py https://gitlab.com/1851616111/tensorflow | Python | 219 lines
58from tensorflow.core.framework.attr_value_pb2 import * 59from tensorflow.core.protobuf.config_pb2 import * 60from tensorflow.core.util.event_pb2 import *ExtensionRegistryLite.java https://github.com/CyanogenMod/android_external_protobuf.git | Java | 169 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 30 31package com.google.protobuf; 32prediction_manager.h https://github.com/chromium/chromium.git | C Header | 333 lines
143 void UpdatePredictionModels( 144 const google::protobuf::RepeatedPtrField<proto::PredictionModel>& 145 prediction_models);UnmodifiableLazyStringListTest.java https://gitlab.com/admin-github-cloud/protobuf | Java | 227 lines
30 31package com.google.protobuf; 32snap.pb.go https://gitlab.com/github-cloud-corporation/bootkube | Go | 332 lines
18 19 proto "github.com/gogo/protobuf/proto" 20 31type Snapshot struct { 32 Crc uint32 `protobuf:"varint,1,opt,name=crc" json:"crc"` 33 Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`TestECPolicyDisabler.java https://github.com/apache/oozie.git | Java | 154 lines
35import org.apache.hadoop.ipc.RemoteException; 36import org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto; 37import org.apache.oozie.tools.ECPolicyDisabler.Result;ECPolicyDisabler.java https://github.com/apache/oozie.git | Java | 174 lines
27import org.apache.hadoop.ipc.RemoteException; 28import org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto; 29RoutingRule.php https://gitlab.com/remyvianne/krowkaramel | PHP | 353 lines
6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\RepeatedField; 8use Google\Protobuf\Internal\RepeatedField; 9use Google\Protobuf\Internal\GPBUtil; 10 279 * 280 * Generated from protobuf message <code>google.api.RoutingRule</code> 281 */ 281 */ 282class RoutingRule extends \Google\Protobuf\Internal\Message 283{ 291 * 292 * Generated from protobuf field <code>repeated .google.api.RoutingParameter routing_parameters = 2;</code> 293 */common.cc https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C++ | 365 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> 51namespace google { 52namespace protobuf { 53 58 const char* filename) { 59 if (GOOGLE_PROTOBUF_VERSION < minLibraryVersion) { 60 // Library is too old for headers. 63 << " of the Protocol Buffer runtime library, but the installed version " 64 "is " << VersionString(GOOGLE_PROTOBUF_VERSION) << ". Please update " 65 "your library. If you compiled the program yourself, make sure that "tensor_slice_reader_test.cc https://gitlab.com/hrishikeshvganu/tensorflow | C++ | 461 lines
24#include "tensorflow/core/platform/logging.h" 25#include "tensorflow/core/platform/protobuf.h" 26#include "tensorflow/core/platform/test.h"module_integrity_verifier_win.cc https://github.com/chromium/chromium.git | C++ | 390 lines
92 93 // The module state protobuf object that |VerifyModule| will populate. 94 ClientIncidentReport_EnvironmentData_Process_ModuleState* module_state;encode.go https://gitlab.com/unofficial-mirrors/mattermost-platform | Go | 221 lines
3// Copyright 2010 The Go Authors. All rights reserved. 4// https://github.com/golang/protobuf 5//types.pb.go https://github.com/mumble-voip/grumble.git | Go | 394 lines
6 7import proto "github.com/golang/protobuf/proto" 8import json "encoding/json" 16type Server struct { 17 Config []*ConfigKeyValuePair `protobuf:"bytes,2,rep,name=config" json:"config,omitempty"` 18 BanList *BanList `protobuf:"bytes,3,opt,name=ban_list" json:"ban_list,omitempty"` 18 BanList *BanList `protobuf:"bytes,3,opt,name=ban_list" json:"ban_list,omitempty"` 19 Channels []*Channel `protobuf:"bytes,4,rep,name=channels" json:"channels,omitempty"` 20 Users []*User `protobuf:"bytes,5,rep,name=users" json:"users,omitempty"` 35type ConfigKeyValuePair struct { 36 Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` 37 Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` 59type Ban struct { 60 Ip []byte `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"` 61 Mask *uint32 `protobuf:"varint,2,opt,name=mask" json:"mask,omitempty"`type_traits.h https://gitlab.com/bugdone/demoinfogo_windows_build | C Header | 336 lines
57 58#ifndef GOOGLE_PROTOBUF_TYPE_TRAITS_H_ 59#define GOOGLE_PROTOBUF_TYPE_TRAITS_H_ 62 63#include <google/protobuf/stubs/template_util.h> // For true_type and false_type 64 65namespace google { 66namespace protobuf { 67namespace internal { 332} // namespace internal 333} // namespace protobuf 334} // namespace google 335 336#endif // GOOGLE_PROTOBUF_TYPE_TRAITS_H_ 337audio_socket.h https://github.com/chromium/chromium.git | C Header | 170 lines
20namespace google { 21namespace protobuf { 22class MessageLite; 22class MessageLite; 23} // namespace protobuf 24} // namespace google 115 116 // Sends an arbitrary protobuf across the connection. |type| indicates the 117 // type of message; if the write cannot complete immediately, one message of 124 // message. Returns |false| if the message was not sent or stored. 125 bool SendProto(int type, const google::protobuf::MessageLite& message); 126cpp_service.cc https://gitlab.com/x33n/phantomjs | C++ | 334 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_service.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/stubs/strutil.h> 40namespace google { 41namespace protobuf { 42namespace compiler { 70 printer->Print(vars_, 71 "class $dllexport$$classname$ : public ::google::protobuf::Service {\n" 72 " protected:\n"DynamicMessageTest.java https://gitlab.com/vectorci/rippled | Java | 264 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;ProtobufPersistedData.java https://gitlab.com/darithorn/Terasology | Java | 403 lines
15 */ 16package org.terasology.persistence.typeHandling.protobuf; 17 39import org.terasology.persistence.typeHandling.inMemory.PersistedString; 40import org.terasology.protobuf.EntityData; 41 48 */ 49public class ProtobufPersistedData implements PersistedData, PersistedDataArray { 50 private EntityData.Value data; 51 52 public ProtobufPersistedData(EntityData.Value data) { 53 this.data = data; 185 for (int i = 0; i < data.getNameValueCount(); ++i) { 186 result.put(data.getNameValue(i).getName(), new ProtobufPersistedData(data.getNameValue(i).getValue())); 187 }gr-syntax-layer.js https://gitlab.com/chenfengxu/gerrit | JavaScript | 450 lines
45 'text/x-php': 'php', 46 'text/x-protobuf': 'protobuf', 47 'text/x-puppet': 'puppet',RecommendationType.php https://gitlab.com/remyvianne/krowkaramel | PHP | 197 lines
11 * 12 * Protobuf type <code>google.ads.googleads.v9.enums.RecommendationTypeEnum.RecommendationType</code> 13 */ 18 * 19 * Generated from protobuf enum <code>UNSPECIFIED = 0;</code> 20 */ 24 * 25 * Generated from protobuf enum <code>UNKNOWN = 1;</code> 26 */ 33 * 34 * Generated from protobuf enum <code>CAMPAIGN_BUDGET = 2;</code> 35 */ 39 * 40 * Generated from protobuf enum <code>KEYWORD = 3;</code> 41 */KeywordPlanKeywordHistoricalMetrics.php https://gitlab.com/remyvianne/krowkaramel | PHP | 191 lines
6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\RepeatedField; 8use Google\Protobuf\Internal\RepeatedField; 9use Google\Protobuf\Internal\GPBUtil; 10 13 * 14 * Generated from protobuf message <code>google.ads.googleads.v9.services.KeywordPlanKeywordHistoricalMetrics</code> 15 */ 15 */ 16class KeywordPlanKeywordHistoricalMetrics extends \Google\Protobuf\Internal\Message 17{ 27 * 28 * Generated from protobuf field <code>optional string search_query = 4;</code> 29 */LocalPlaceholderField.php https://gitlab.com/remyvianne/krowkaramel | PHP | 206 lines
11 * 12 * Protobuf type <code>google.ads.googleads.v9.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField</code> 13 */ 18 * 19 * Generated from protobuf enum <code>UNSPECIFIED = 0;</code> 20 */ 24 * 25 * Generated from protobuf enum <code>UNKNOWN = 1;</code> 26 */ 30 * 31 * Generated from protobuf enum <code>DEAL_ID = 2;</code> 32 */ 37 * 38 * Generated from protobuf enum <code>DEAL_NAME = 3;</code> 39 */AppEngagementAdInfo.php https://gitlab.com/remyvianne/krowkaramel | PHP | 180 lines
6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\RepeatedField; 8use Google\Protobuf\Internal\RepeatedField; 9use Google\Protobuf\Internal\GPBUtil; 10 16 * 17 * Generated from protobuf message <code>google.ads.googleads.v9.common.AppEngagementAdInfo</code> 18 */ 18 */ 19class AppEngagementAdInfo extends \Google\Protobuf\Internal\Message 20{ 24 * 25 * Generated from protobuf field <code>repeated .google.ads.googleads.v9.common.AdTextAsset headlines = 1;</code> 26 */GPBUnknownFieldSetTest.m https://gitlab.com/github-cloud-corporation/protobuf | Objective C | 255 lines
34#import "GPBUnknownFieldSet_PackagePrivate.h" 35#import "google/protobuf/Unittest.pbobjc.h" 36generated_message_util.P https://github.com/JTroniks/CyanogenMod-7.git | Prolog | 259 lines
1out/target/product/sunfire/obj/STATIC_LIBRARIES/libprotobuf-cpp-2.3.0-lite_intermediates/src/google/protobuf/generated_message_util.o: \ 2 external/protobuf/src/google/protobuf/generated_message_util.cc \ 3 system/core/include/arch/linux-arm/AndroidConfig.h \ 4 external/protobuf/src/google/protobuf/generated_message_util.h \ 5 external/protobuf/src/google/protobuf/stubs/common.h \ 130 external/stlport/stlport/limits 131 external/protobuf/src/google/protobuf/generated_message_util.cc : 132 system/core/include/arch/linux-arm/AndroidConfig.h : 132 system/core/include/arch/linux-arm/AndroidConfig.h : 133 external/protobuf/src/google/protobuf/generated_message_util.h : 134 external/protobuf/src/google/protobuf/stubs/common.h :generated_message_util.P https://github.com/JTroniks/CyanogenMod-7.git | Prolog | 259 lines
1out/target/product/sunfire/obj/STATIC_LIBRARIES/libprotobuf-cpp-2.3.0-full_intermediates/src/google/protobuf/generated_message_util.o: \ 2 external/protobuf/src/google/protobuf/generated_message_util.cc \ 3 system/core/include/arch/linux-arm/AndroidConfig.h \ 4 external/protobuf/src/google/protobuf/generated_message_util.h \ 5 external/protobuf/src/google/protobuf/stubs/common.h \ 130 external/stlport/stlport/limits 131 external/protobuf/src/google/protobuf/generated_message_util.cc : 132 system/core/include/arch/linux-arm/AndroidConfig.h : 132 system/core/include/arch/linux-arm/AndroidConfig.h : 133 external/protobuf/src/google/protobuf/generated_message_util.h : 134 external/protobuf/src/google/protobuf/stubs/common.h :RpcMessage.pb-c.c https://code.google.com/p/protobuf-remote/ | C | 430 lines
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,field_mask_util.cc https://gitlab.com/zharfi/GunSafety | C++ | 418 lines
30 31#include <google/protobuf/util/field_mask_util.h> 32 32 33#include <google/protobuf/stubs/strutil.h> 34#include <google/protobuf/stubs/map_util.h> 36namespace google { 37namespace protobuf { 38namespace util { 39 40using google::protobuf::FieldMask; 41 416} // namespace util 417} // namespace protobuf 418} // namespace googleOrganizationsEnvironments.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 326 lines
29use Google\Service\Apigee\GoogleLongrunningOperation; 30use Google\Service\Apigee\GoogleProtobufEmpty; 31 232 * @param array $optParams Optional parameters. 233 * @return GoogleProtobufEmpty 234 */ 238 $params = array_merge($params, $optParams); 239 return $this->call('unsubscribe', [$params], GoogleProtobufEmpty::class); 240 }scheduler.go https://gitlab.com/vectorci/docker-1 | Go | 478 lines
11 "github.com/docker/swarmkit/manager/state/store" 12 "github.com/docker/swarmkit/protobuf/ptypes" 13 "golang.org/x/net/context"handler_server.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 413 lines
35 36 "github.com/golang/protobuf/proto" 37 "golang.org/x/net/context"Makefile https://github.com/freebsd/freebsd-ports.git | Makefile | 230 lines
117DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm \ 118 libprotobuf-c.so:devel/protobuf-c 119map_field_test.cc https://github.com/chromium/chromium.git | C++ | 484 lines
34 35#include <google/protobuf/stubs/logging.h> 36#include <google/protobuf/stubs/common.h> 36#include <google/protobuf/stubs/common.h> 37#include <google/protobuf/arena_test_util.h> 38#include <google/protobuf/map_test_util.h> 38#include <google/protobuf/map_test_util.h> 39#include <google/protobuf/map_unittest.pb.h> 40#include <google/protobuf/unittest.pb.h> 40#include <google/protobuf/unittest.pb.h> 41#include <google/protobuf/arena.h> 42#include <google/protobuf/map.h> 42#include <google/protobuf/map.h> 43#include <google/protobuf/map_field_inl.h> 44#include <google/protobuf/message.h>wire_format_test.py https://bitbucket.org/Abd4llA/test.git | Python | 251 lines
2# Copyright 2008 Google Inc. All rights reserved. 3# http://code.google.com/p/protobuf/ 4# 30 31"""Test for google.protobuf.internal.wire_format.""" 32 35import unittest 36from google.protobuf import message 37from google.protobuf.internal import wire_formatConversionCandidateLayouter.java https://gitlab.com/somiyagawa/mozc | Java | 361 lines
31 32import org.mozc.android.inputmethod.japanese.protobuf.ProtoCandidates.CandidateList; 33import org.mozc.android.inputmethod.japanese.protobuf.ProtoCandidates.CandidateWord;GuidTests.cs https://gitlab.com/meermalik/protobuf-net | C# | 198 lines
3using NUnit.Framework; 4using ProtoBuf; 5using System.Data.Linq.Mapping;KNUIState.h https://gitlab.com/akashshinde/iOS-Runtime-Headers | C Header | 122 lines
87- (float)lightTableZoomScale; 88- (void)loadFromArchive:(const struct UIStateArchive { int (**x1)(); struct UnknownFieldSet { struct vector<google::protobuf::UnknownField, std::__1::allocator<google::protobuf::UnknownField> > {} *x_2_1_1; } x2; unsigned int x3[1]; int x4; struct Reference {} *x5; struct Reference {} *x6; struct Size {} *x7; struct Point {} *x8; float x9; float x10; struct RepeatedPtrField<TSP::Reference> { void **x_11_1_1; int x_11_1_2; int x_11_1_3; int x_11_1_4; } x11; struct Point {} *x12; struct Point {} *x13; struct Reference {} *x14; float x15; float x16; struct Point {} *x17; struct RepeatedPtrField<TSCH::ChartUIState> { void **x_18_1_1; int x_18_1_2; int x_18_1_3; int x_18_1_4; } x18; float x19; bool x20; bool x21; bool x22; bool x23; struct RepeatedPtrField<TSP::Reference> { void **x_24_1_1; int x_24_1_2; int x_24_1_3; int x_24_1_4; } x24; struct RepeatedPtrField<TSP::Reference> { void **x_25_1_1; int x_25_1_2; int x_25_1_3; int x_25_1_4; } x25; struct RepeatedPtrField<TSP::Reference> { void **x_26_1_1; int x_26_1_2; int x_26_1_3; int x_26_1_4; } x26; float x27; float x28; struct Size {} *x29; bool x30; bool x31; float x32; struct Point {} *x33; struct SelectionPathArchive {} *x34; }*)arg1 unarchiver:(id)arg2 context:(id)arg3; 89- (id)outlineCollapsedSlideNodes; 90- (id)outlineHasBodySlideNodes; 91- (void)saveToArchive:(struct UIStateArchive { int (**x1)(); struct UnknownFieldSet { struct vector<google::protobuf::UnknownField, std::__1::allocator<google::protobuf::UnknownField> > {} *x_2_1_1; } x2; unsigned int x3[1]; int x4; struct Reference {} *x5; struct Reference {} *x6; struct Size {} *x7; struct Point {} *x8; float x9; float x10; struct RepeatedPtrField<TSP::Reference> { void **x_11_1_1; int x_11_1_2; int x_11_1_3; int x_11_1_4; } x11; struct Point {} *x12; struct Point {} *x13; struct Reference {} *x14; float x15; float x16; struct Point {} *x17; struct RepeatedPtrField<TSCH::ChartUIState> { void **x_18_1_1; int x_18_1_2; int x_18_1_3; int x_18_1_4; } x18; float x19; bool x20; bool x21; bool x22; bool x23; struct RepeatedPtrField<TSP::Reference> { void **x_24_1_1; int x_24_1_2; int x_24_1_3; int x_24_1_4; } x24; struct RepeatedPtrField<TSP::Reference> { void **x_25_1_1; int x_25_1_2; int x_25_1_3; int x_25_1_4; } x25; struct RepeatedPtrField<TSP::Reference> { void **x_26_1_1; int x_26_1_2; int x_26_1_3; int x_26_1_4; } x26; float x27; float x28; struct Size {} *x29; bool x30; bool x31; float x32; struct Point {} *x33; struct SelectionPathArchive {} *x34; }*)arg1 archiver:(id)arg2 context:(id)arg3; 92- (id)selectionPath;extensions.go https://gitlab.com/unofficial-mirrors/kubernetes-contrib | Go | 353 lines
3// Copyright 2010 The Go Authors. All rights reserved. 4// https://github.com/golang/protobuf 5// 69 Name string // fully-qualified name of extension, for text formatting 70 Tag string // protobuf tag style 71}descriptor.pb.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 428 lines
21 22import proto "github.com/gogo/protobuf/proto" 23import fmt "fmt" 24import math "math" 25import _ "github.com/gogo/protobuf/gogoproto" 26 50type Descriptor struct { 51 MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` 52 Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` 52 Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` 53 Size_ int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` 54}resource_util.cc https://gitlab.com/vectorci/serving | C++ | 337 lines
21 22#include "google/protobuf/wrappers.pb.h" 23#include "tensorflow/core/lib/core/errors.h"kv.pb.go https://gitlab.com/admin-github-cloud/flannel | Go | 541 lines
16 17import proto "github.com/gogo/protobuf/proto" 18 18 19// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto/gogo.pb" 20 50type KeyValue struct { 51 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 52 // mod_index is the last modified index of the key. 52 // mod_index is the last modified index of the key. 53 CreateIndex int64 `protobuf:"varint,2,opt,name=create_index,proto3" json:"create_index,omitempty"` 54 ModIndex int64 `protobuf:"varint,3,opt,name=mod_index,proto3" json:"mod_index,omitempty"` 57 // increases its version. 58 Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` 59 Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`Class1.cs https://github.com/code-attic/Symbiote.git | C# | 226 lines
11using Symbiote.Riak.Impl.Data; 12using Symbiote.Riak.Impl.ProtoBuf; 13using Symbiote.Riak.Impl.ProtoBuf.Request; 13using Symbiote.Riak.Impl.ProtoBuf.Request; 14using Symbiote.Riak.Impl.ProtoBuf.Response; 15using Symbiote.StructureMapAdapter; 142 143 var factory = new ProtoBufCommandFactory(); 144 var command = factory.CreateGet( "test", "a", 1 );timestamp.pb.go https://gitlab.com/jamesclonk-io/stdlib | Go | 271 lines
139 // inclusive. 140 Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` 141} 145 if protoimpl.UnsafeEnabled { 146 mi := &file_google_protobuf_timestamp_proto_msgTypes[0] 147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 211 file_google_protobuf_timestamp_proto_rawDescOnce sync.Once 212 file_google_protobuf_timestamp_proto_rawDescData = file_google_protobuf_timestamp_proto_rawDesc 213) 216 file_google_protobuf_timestamp_proto_rawDescOnce.Do(func() { 217 file_google_protobuf_timestamp_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_timestamp_proto_rawDescData) 218 }) 221 222var file_google_protobuf_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 223var file_google_protobuf_timestamp_proto_goTypes = []interface{}{LifecycleManager.java https://github.com/pferraro/infinispan.git | Java | 193 lines
63 Map<Integer, AdvancedExternalizer<?>> externalizerMap = globalCfg.serialization().advancedExternalizers(); 64 externalizerMap.put(ExternalizerIds.ICKLE_PROTOBUF_CACHE_EVENT_FILTER_CONVERTER, new IckleProtobufCacheEventFilterConverter.Externalizer()); 65 externalizerMap.put(ExternalizerIds.ICKLE_PROTOBUF_FILTER_AND_CONVERTER, new IckleProtobufFilterAndConverter.Externalizer()); 83 private void initProtobufMetadataManager(BasicComponentRegistry bcr) { 84 ProtobufMetadataManagerImpl protobufMetadataManager = new ProtobufMetadataManagerImpl(); 85 bcr.registerComponent(ProtobufMetadataManager.class, protobufMetadataManager, true).running(); 106 107 private void registerProtobufMetadataManagerMBean(ProtobufMetadataManagerImpl protobufMetadataManager, 108 GlobalConfiguration globalConfig, BasicComponentRegistry bcr) { 130 // a protobuf metadata cache is starting, need to register the interceptor 131 ProtobufMetadataManagerImpl protobufMetadataManager = 132 (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running(); 132 (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running(); 133 protobufMetadataManager.addProtobufMetadataManagerInterceptor(cr.getComponent(BasicComponentRegistry.class)); 134 }zero_copy_stream_impl.cc https://gitlab.com/x33n/phantomjs | C++ | 470 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-inl.h> 50 51namespace google { 52namespace protobuf { 53namespace io { 468} // namespace io 469} // namespace protobuf 470} // namespace googleMediaFile.php https://gitlab.com/remyvianne/krowkaramel | PHP | 468 lines
6 7use Google\Protobuf\Internal\GPBType; 8use Google\Protobuf\Internal\RepeatedField; 8use Google\Protobuf\Internal\RepeatedField; 9use Google\Protobuf\Internal\GPBUtil; 10 13 * 14 * Generated from protobuf message <code>google.ads.googleads.v9.resources.MediaFile</code> 15 */ 15 */ 16class MediaFile extends \Google\Protobuf\Internal\Message 17{ 22 * 23 * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code> 24 */wrappers_pb2.py https://gitlab.com/ChuyuHsu/slackbot | Python | 383 lines
9from google.protobuf import symbol_database as _symbol_database 10from google.protobuf import descriptor_pb2 11# @@protoc_insertion_point(imports) 21 syntax='proto3', 22 serialized_pb=_b('\n\x1egoogle/protobuf/wrappers.proto\x12\x0fgoogle.protobuf\"\x1c\n\x0b\x44oubleValue\x12\r\n\x05value\x18\x01 \x01(\x01\"\x1b\n\nFloatValue\x12\r\n\x05value\x18\x01 \x01(\x02\"\x1b\n\nInt64Value\x12\r\n\x05value\x18\x01 \x01(\x03\"\x1c\n\x0bUInt64Value\x12\r\n\x05value\x18\x01 \x01(\x04\"\x1b\n\nInt32Value\x12\r\n\x05value\x18\x01 \x01(\x05\"\x1c\n\x0bUInt32Value\x12\r\n\x05value\x18\x01 \x01(\r\"\x1a\n\tBoolValue\x12\r\n\x05value\x18\x01 \x01(\x08\"\x1c\n\x0bStringValue\x12\r\n\x05value\x18\x01 \x01(\t\"\x1b\n\nBytesValue\x12\r\n\x05value\x18\x01 \x01(\x0c\x42S\n\x13\x63om.google.protobufB\rWrappersProtoP\x01\xa0\x01\x01\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3') 23) 222 _descriptor.FieldDescriptor( 223 name='value', full_name='google.protobuf.BoolValue.value', index=0, 224 number=1, type=8, cpp_type=7, label=1, 247 name='StringValue', 248 full_name='google.protobuf.StringValue', 249 filename=None, 381DESCRIPTOR.has_options = True 382DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\023com.google.protobufB\rWrappersProtoP\001\240\001\001\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypes')) 383# @@protoc_insertion_point(module_scope)ruby_generator.cc https://gitlab.com/f1ssi0n/sniffles | C++ | 401 lines
32 33#include <google/protobuf/compiler/code_generator.h> 34#include <google/protobuf/compiler/plugin.h> 34#include <google/protobuf/compiler/plugin.h> 35#include <google/protobuf/descriptor.h> 36#include <google/protobuf/descriptor.pb.h> 36#include <google/protobuf/descriptor.pb.h> 37#include <google/protobuf/io/printer.h> 38#include <google/protobuf/io/zero_copy_stream.h> 39 40#include <google/protobuf/compiler/ruby/ruby_generator.h> 41 41 42using google::protobuf::internal::scoped_ptr; 43client_test.go https://gitlab.com/suo/tinykv | Go | 420 lines
22 23 "github.com/gogo/protobuf/proto" 24 "github.com/pingcap-incubator/tinykv/proto/pkg/metapb"SAObjects.h https://github.com/lechium/appletv-private-headers.git | C Header | 400 lines
138#import "SAUIShowHelp.h" 139#import "SALocalSearchProtobufAttribute.h" 140#import "SAStartRequest.h" 322#import "AceContext.h" 323#import "SALocalSearchSendToProtobufConduitCompleted.h" 324#import "NSObject.h" 384#import "SASendCommands.h" 385#import "SALocalSearchSendToProtobufConduit.h" 386#import "SAAlarmUpdateCompleted.h"TestFromClientSide3.java https://github.com/jmhsieh/hbase.git | Java | 259 lines
35import org.apache.hadoop.hbase.client.AdminProtocol; 36import org.apache.hadoop.hbase.protobuf.ProtobufUtil; 37import org.apache.hadoop.hbase.util.Bytes; 112 randomCFPuts(table, row, family, nPuts); 113 List<String> sf = ProtobufUtil.getStoreFiles(server, regName, FAMILY); 114 int sfCount = sf.size(); 119 // synchronously poll wait for a new storefile to appear (flush happened) 120 while (ProtobufUtil.getStoreFiles( 121 server, regName, FAMILY).size() == sfCount) { 156 loc.getHostname(), loc.getPort()); 157 assertTrue(ProtobufUtil.getStoreFiles( 158 server, regionName, FAMILY).size() > 1); 169 server = connection.getAdmin(loc.getHostname(), loc.getPort()); 170 if (ProtobufUtil.getStoreFiles( 171 server, regionName, FAMILY).size() <= 1) {FindFLTK.cmake https://github.com/kvakvs/hge.git | CMake | 336 lines
75``FLTK_IMAGES_LIBRARY_RELEASE`` 76 The FLTK Images protobuf library (optimized) 77stringer.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 296 lines
3// Copyright (c) 2013, The GoGo Authors. All rights reserved. 4// http://github.com/gogo/protobuf 5// 43 44 github.com/gogo/protobuf/test/example/example.proto 45 47 48 github.com/gogo/protobuf/test/example/* 49 57 optional int64 Number = 2 [(gogoproto.nullable) = false]; 58 optional bytes Id = 3 [(gogoproto.customtype) = "github.com/gogo/protobuf/test/custom.Uuid", (gogoproto.nullable) = false]; 59 } 95import ( 96 "github.com/gogo/protobuf/gogoproto" 97 "github.com/gogo/protobuf/protoc-gen-gogo/generator"file_output_test.go https://gitlab.com/karouf/heka | Go | 376 lines
66 67 c.Specify("w/ ProtobufEncoder", func() { 68 encoder := new(ProtobufEncoder)DataContextModelCollection.cs https://hg01.codeplex.com/upreader | C# | 425 lines
7using System.Linq.Expressions; 8using ProtoBuf.Meta; 9using System.Threading; 10 11namespace Upreader.Infrastructure.ProtoBuf 12{Android.bp https://github.com/Evervolv/android_build.git | Makefile | 666 lines
145 host: { 146 static_libs: ["libprotobuf-java-nano"], 147 },generator_test.py https://gitlab.com/github-cloud-corporation/protobuf | Python | 348 lines
37"""Unittest that directly tests the output of the pure-Python protocol 38compiler. See //google/protobuf/internal/reflection_test.py for a test which 39further ensures that we can use Python protocol message objects as we expect. 48 49from google.protobuf.internal import test_bad_identifiers_pb2 50from google.protobuf import unittest_custom_options_pb2 50from google.protobuf import unittest_custom_options_pb2 51from google.protobuf import unittest_import_pb2 52from google.protobuf import unittest_import_public_pb2 52from google.protobuf import unittest_import_public_pb2 53from google.protobuf import unittest_mset_pb2 54from google.protobuf import unittest_mset_wire_format_pb2 54from google.protobuf import unittest_mset_wire_format_pb2 55from google.protobuf import unittest_no_generic_services_pb2 56from google.protobuf import unittest_pb2printer.cc https://gitlab.com/zharfi/GunSafety | C++ | 284 lines
34 35#include <google/protobuf/io/printer.h> 36#include <google/protobuf/io/zero_copy_stream.h> 36#include <google/protobuf/io/zero_copy_stream.h> 37#include <google/protobuf/stubs/logging.h> 38#include <google/protobuf/stubs/common.h> 40namespace google { 41namespace protobuf { 42namespace io { 282} // namespace io 283} // namespace protobuf 284} // namespace googlecpp_field.h https://gitlab.com/github-cloud-corporation/protobuf | C Header | 229 lines
34 35#ifndef GOOGLE_PROTOBUF_COMPILER_CPP_FIELD_H__ 36#define GOOGLE_PROTOBUF_COMPILER_CPP_FIELD_H__ 40#ifndef _SHARED_PTR_H 41#include <google/protobuf/stubs/shared_ptr.h> 42#endif 44 45#include <google/protobuf/descriptor.h> 46#include <google/protobuf/compiler/cpp/cpp_options.h> 48namespace google { 49namespace protobuf { 50 namespace io { 214 const Options& options_; 215 google::protobuf::scoped_array<google::protobuf::scoped_ptr<FieldGenerator> > field_generators_; 216queue_runner.py https://gitlab.com/admin-github-cloud/tensorflow | Python | 357 lines
22 23from tensorflow.core.protobuf import queue_runner_pb2 24from tensorflow.python.framework import errorsmod.rs https://gitlab.com/github-cloud-corporation/habitat | Rust | 421 lines
26use hab_net::server::{Envelope, NetIdent, RouteConn, Service, ZMQ_CONTEXT}; 27use protobuf::{parse_from_bytes, Message}; 28use protocol::net;parser.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 452 lines
16 17package protobuf 18 76 77// OptionalFunc returns true if the provided local name is a type that has protobuf.nullable=true 78// and should have its marshal functions adjusted to remove the 'Items' accessor. 80 81func RewriteGeneratedGogoProtobufFile(name string, extractFn ExtractFunc, optionalFn OptionalFunc, header []byte) error { 82 return rewriteFile(name, header, func(fset *token.FileSet, file *ast.File) error { 109// rewriteOptionalMethods makes specific mutations to marshaller methods that belong to types identified 110// as being "optional" (they may be nil on the wire). This allows protobuf to serialize a map or slice and 111// properly discriminate between empty and nil (which is not possible in protobuf). 111// properly discriminate between empty and nil (which is not possible in protobuf). 112// TODO: move into upstream gogo-protobuf once https://github.com/gogo/protobuf/issues/181 113// has agreementmessage_reflect_field.go https://gitlab.com/jamesclonk-io/stdlib | Go | 466 lines
12 13 "google.golang.org/protobuf/internal/flags" 14 pref "google.golang.org/protobuf/reflect/protoreflect" 14 pref "google.golang.org/protobuf/reflect/protoreflect" 15 preg "google.golang.org/protobuf/reflect/protoregistry" 16) 20 21 // These fields are used for protobuf reflection support. 22 has func(pointer) boolprotosize.pb.go https://gitlab.com/0072016/syncthing | Go | 616 lines
15 16import proto "github.com/gogo/protobuf/proto" 17import fmt "fmt" 18import math "math" 19import _ "github.com/gogo/protobuf/gogoproto" 20 34type SizeMessage struct { 35 Size *int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` 36 ProtoSize_ *int64 `protobuf:"varint,2,opt,name=proto_size,json=protoSize" json:"proto_size,omitempty"` 36 ProtoSize_ *int64 `protobuf:"varint,2,opt,name=proto_size,json=protoSize" json:"proto_size,omitempty"` 37 Equal_ *bool `protobuf:"varint,3,opt,name=Equal,json=equal" json:"Equal,omitempty"` 38 String_ *string `protobuf:"bytes,4,opt,name=String,json=string" json:"String,omitempty"`BinaryMapAddressReaderAdapter.java https://github.com/Boris-de/Osmand.git | Java | 505 lines
15 16import com.google.protobuf.CodedInputStreamRAF; 17import com.google.protobuf.WireFormat;printer.cc https://github.com/chromium/chromium.git | C++ | 400 lines
34 35#include <google/protobuf/io/printer.h> 36 38 39#include <google/protobuf/stubs/logging.h> 40#include <google/protobuf/stubs/common.h> 40#include <google/protobuf/stubs/common.h> 41#include <google/protobuf/io/zero_copy_stream.h> 42 43namespace google { 44namespace protobuf { 45namespace io { 398} // namespace io 399} // namespace protobuf 400} // namespace googlegenerator_test.py https://gitlab.com/ChuyuHsu/slackbot | Python | 347 lines
37"""Unittest that directly tests the output of the pure-Python protocol 38compiler. See //google/protobuf/internal/reflection_test.py for a test which 39further ensures that we can use Python protocol message objects as we expect. 47 import unittest 48from google.protobuf.internal import test_bad_identifiers_pb2 49from google.protobuf import unittest_custom_options_pb2 49from google.protobuf import unittest_custom_options_pb2 50from google.protobuf import unittest_import_pb2 51from google.protobuf import unittest_import_public_pb2 51from google.protobuf import unittest_import_public_pb2 52from google.protobuf import unittest_mset_pb2 53from google.protobuf import unittest_mset_wire_format_pb2 53from google.protobuf import unittest_mset_wire_format_pb2 54from google.protobuf import unittest_no_generic_services_pb2 55from google.protobuf import unittest_pb2decoder_test.py https://bitbucket.org/Abd4llA/test.git | Python | 250 lines
2# Copyright 2008 Google Inc. All rights reserved. 3# http://code.google.com/p/protobuf/ 4# 30 31"""Test for google.protobuf.internal.decoder.""" 32 36import unittest 37from google.protobuf.internal import wire_format 38from google.protobuf.internal import encoder 38from google.protobuf.internal import encoder 39from google.protobuf.internal import decoder 40import logging 40import logging 41from google.protobuf.internal import input_stream 42from google.protobuf import messagetext_parse_test.go https://gitlab.com/CORP-RESELLER/dashboard | Go | 588 lines
20 21 "github.com/golang/protobuf/proto" 22 dto "github.com/prometheus/client_model/go"Descriptor.java https://github.com/plutonium/hydra.git | Java | 379 lines
8 public static void registerAllExtensions( 9 com.google.protobuf.ExtensionRegistry registry) { 10 } 11 public static final class Path extends 12 com.google.protobuf.GeneratedMessage { 13 // Use Path.newBuilder() to construct. 27 28 public static final com.google.protobuf.Descriptors.Descriptor 29 getDescriptor() { 32 33 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 34 internalGetFieldAccessorTable() { 55 56 public void writeTo(com.google.protobuf.CodedOutputStream output) 57 throws java.io.IOException {input_stream_a4_impl.h https://github.com/a4/a4.git | C Header | 403 lines
99 100 std::vector<const google::protobuf::FileDescriptor*> get_filedescriptors() { 101 if (not _current_class_pool) { 109 void set_hint_copy(bool hint_copy); 110 bool try_read(Message & msg, const google::protobuf::Descriptor* d); 111 114 UNIQUE<BaseCompressedInputStream> _compressed_in; 115 shared<google::protobuf::io::CodedInputStream> _coded_in; 116 shared<ProtoClassPool> _current_class_pool; 163inline 164bool InputStreamA4Impl::try_read(Message & msg, const google::protobuf::Descriptor* d) { 165 if (!_started)bfc_allocator.h https://gitlab.com/admin-github-cloud/tensorflow | C Header | 415 lines
31#include "tensorflow/core/platform/types.h" 32#include "tensorflow/core/protobuf/config.pb.h" 33codec_factory.go https://gitlab.com/admin-github-cloud/bootkube | Go | 364 lines
41 // RawSerializer serializes an object without adding a type wrapper. Some serializers, like JSON 42 // automatically include identifying type information with the JSON. Others, like Protobuf, need 43 // a wrapper object that includes type information. This serializer should be set if the serializerfeature_index.js https://gitlab.com/hwhelchel/mapbox-gl-js | JavaScript | 297 lines
10var vt = require('vector-tile'); 11var Protobuf = require('pbf'); 12var GeoJSONFeature = require('../util/vectortile_to_geojson'); 100 if (!this.vtLayers) { 101 this.vtLayers = new vt.VectorTile(new Protobuf(new Uint8Array(this.rawTileData))).layers; 102 this.sourceLayerCoder = new DictionaryCoder(this.vtLayers ? Object.keys(this.vtLayers).sort() : ['_geojsonTileLayer']);zero_copy_stream_impl.cc https://gitlab.com/vectorci/rippled | C++ | 471 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 googletimestamp.pb.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 504 lines
15 16import proto "github.com/gogo/protobuf/proto" 17import fmt "fmt" 92 // 9999-12-31T23:59:59Z inclusive. 93 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` 94 // Non-negative fractions of a second at nanosecond resolution. Negative 97 // inclusive. 98 Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` 99} 120func init() { 121 proto.RegisterType((*Timestamp)(nil), "google.protobuf.Timestamp") 122}DynamicMessage.java https://bitbucket.org/Abd4llA/test.git | Java | 405 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 com.google.protobuf.Descriptors.Descriptor; 34import com.google.protobuf.Descriptors.FieldDescriptor;NumberTests.cs https://gitlab.com/meermalik/protobuf-net | C# | 293 lines
5using NUnit.Framework; 6using ProtoBuf; 7cpp_file.cc https://bitbucket.org/Abd4llA/test.git | C++ | 424 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_file.h> 36#include <google/protobuf/compiler/cpp/cpp_enum.h> 36#include <google/protobuf/compiler/cpp/cpp_enum.h> 37#include <google/protobuf/compiler/cpp/cpp_service.h> 38#include <google/protobuf/compiler/cpp/cpp_extension.h> 38#include <google/protobuf/compiler/cpp/cpp_extension.h> 39#include <google/protobuf/compiler/cpp/cpp_helpers.h> 40#include <google/protobuf/compiler/cpp/cpp_message.h> 40#include <google/protobuf/compiler/cpp/cpp_message.h> 41#include <google/protobuf/io/printer.h> 42#include <google/protobuf/descriptor.pb.h>Form1.Designer.cs https://gitlab.com/meermalik/protobuf-net | C# | 267 lines
164 this.button4.TabIndex = 6; 165 this.button4.Text = "protobuf-net"; 166 this.button4.UseVisualStyleBackColor = true;LifecycleManager.java https://github.com/alesj/infinispan.git | Java | 188 lines
61 externalizerMap.put(ExternalizerIds.ICKLE_PROTOBUF_CACHE_EVENT_FILTER_CONVERTER, new IckleProtobufCacheEventFilterConverter.Externalizer()); 62 externalizerMap.put(ExternalizerIds.ICKLE_PROTOBUF_FILTER_AND_CONVERTER, new IckleProtobufFilterAndConverter.Externalizer()); 63 externalizerMap.put(ExternalizerIds.ICKLE_CONTINUOUS_QUERY_CACHE_EVENT_FILTER_CONVERTER, new IckleContinuousQueryProtobufCacheEventFilterConverter.Externalizer()); 80 private void initProtobufMetadataManager(BasicComponentRegistry bcr) { 81 ProtobufMetadataManagerImpl protobufMetadataManager = new ProtobufMetadataManagerImpl(); 82 bcr.registerComponent(ProtobufMetadataManager.class, protobufMetadataManager, true).running(); 103 104 private void registerProtobufMetadataManagerMBean(ProtobufMetadataManagerImpl protobufMetadataManager, 105 GlobalConfiguration globalConfig, BasicComponentRegistry bcr) { 128 (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running(); 129 protobufMetadataManager.addProtobufMetadataManagerInterceptor(cr.getComponent(BasicComponentRegistry.class)); 130 } 178 if (cfg.indexing().index().isEnabled()) { 179 ProtobufMetadataManagerImpl protobufMetadataManager = (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class); 180 SerializationContext serCtx = protobufMetadataManager.getSerializationContext();DescriptorsTest.cs https://gitlab.com/github-cloud-corporation/protobuf | C# | 259 lines
33using System.Linq; 34using Google.Protobuf.TestProtos; 35using NUnit.Framework; 37 38namespace Google.Protobuf.Reflection 39{ 50 51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); 52 Assert.AreEqual("protobuf_unittest", file.Package); 54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); 55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); 56 70 Assert.Null(file.FindTypeByName<MessageDescriptor>("NoSuchType")); 71 Assert.Null(file.FindTypeByName<MessageDescriptor>("protobuf_unittest.TestAllTypes")); 72 for (int i = 0; i < file.MessageTypes.Count; i++)preserve_unknown_enum_test.cc https://gitlab.com/admin-github-cloud/protobuf | C++ | 289 lines
34#include <google/protobuf/dynamic_message.h> 35#include <google/protobuf/descriptor.h> 36#include <gtest/gtest.h> 122 google::protobuf::DynamicMessageFactory factory; 123 google::protobuf::scoped_ptr<google::protobuf::Message> message(factory.GetPrototype( 124 proto3_preserve_unknown_enum_unittest::MyMessage::descriptor())->New()); 163 google::protobuf::DynamicMessageFactory factory; 164 google::protobuf::scoped_ptr<google::protobuf::Message> message(factory.GetPrototype( 165 proto2_preserve_unknown_enum_unittest::MyMessage::descriptor())->New()); 215 // another message. 216 google::protobuf::Message* m = message.New(); 217 r->SetEnum(m, field, enum_value); 281 282 const google::protobuf::Reflection* proto2_reflection = proto2_message.GetReflection(); 283 const google::protobuf::Reflection* new_reflection = new_message.GetReflection();EncryptKeysDialogFragment.java https://gitlab.com/yenny.prathivi/bitcoin-wallet | Java | 383 lines
54 55import com.google.protobuf.ByteString; 56runtime_config.pb.go https://gitlab.com/thebrave/appengine-go | Go | 421 lines
21 22import proto "github.com/golang/protobuf/proto" 23import math "math" 29type Config struct { 30 AppId []byte `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` 31 VersionId []byte `protobuf:"bytes,2,req,name=version_id" json:"version_id,omitempty"` 31 VersionId []byte `protobuf:"bytes,2,req,name=version_id" json:"version_id,omitempty"` 32 ApplicationRoot []byte `protobuf:"bytes,3,req,name=application_root" json:"application_root,omitempty"` 33 Threadsafe *bool `protobuf:"varint,4,opt,name=threadsafe,def=0" json:"threadsafe,omitempty"` 33 Threadsafe *bool `protobuf:"varint,4,opt,name=threadsafe,def=0" json:"threadsafe,omitempty"` 34 ApiHost *string `protobuf:"bytes,17,opt,name=api_host,def=localhost" json:"api_host,omitempty"` 35 ApiPort *int32 `protobuf:"varint,5,req,name=api_port" json:"api_port,omitempty"` 35 ApiPort *int32 `protobuf:"varint,5,req,name=api_port" json:"api_port,omitempty"` 36 Libraries []*Library `protobuf:"bytes,6,rep,name=libraries" json:"libraries,omitempty"` 37 SkipFiles *string `protobuf:"bytes,7,opt,name=skip_files,def=^$" json:"skip_files,omitempty"`types.go https://gitlab.com/unofficial-mirrors/kubernetes-contrib | Go | 282 lines
31 // +optional 32 metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` 33 36 // +optional 37 Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` 38 41 // +optional 42 Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` 43} 50 // +optional 51 metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` 52 53 // Items is the list of Job. 54 Items []Job `json:"items" protobuf:"bytes,2,rep,name=items"` 55}InfoServiceGrpc.java https://gitlab.com/geropl/gitpod | Java | 280 lines
40 .setSampledToLocalTracing(true) 41 .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( 42 io.gitpod.supervisor.api.Info.WorkspaceInfoRequest.getDefaultInstance())) 42 io.gitpod.supervisor.api.Info.WorkspaceInfoRequest.getDefaultInstance())) 43 .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( 44 io.gitpod.supervisor.api.Info.WorkspaceInfoResponse.getDefaultInstance())) 228 private static abstract class InfoServiceBaseDescriptorSupplier 229 implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { 230 InfoServiceBaseDescriptorSupplier() {} 232 @java.lang.Override 233 public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { 234 return io.gitpod.supervisor.api.Info.getDescriptor(); 237 @java.lang.Override 238 public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { 239 return getFileDescriptor().findServiceByName("InfoService");LifecycleManager.java https://github.com/Sanne/infinispan.git | Java | 216 lines
89 private void initProtobufMetadataManager(BasicComponentRegistry bcr) { 90 ProtobufMetadataManagerImpl protobufMetadataManager = new ProtobufMetadataManagerImpl(); 91 bcr.registerComponent(ProtobufMetadataManager.class, protobufMetadataManager, true).running(); 108 if (globalCfg.jmx().enabled()) { 109 registerProtobufMetadataManagerMBean(protobufMetadataManager, globalCfg, bcr); 110 } 112 113 private void registerProtobufMetadataManagerMBean(ProtobufMetadataManagerImpl protobufMetadataManager, 114 GlobalConfiguration globalConfig, BasicComponentRegistry bcr) { 138 (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running(); 139 protobufMetadataManager.addProtobufMetadataManagerInterceptor(cr.getComponent(BasicComponentRegistry.class)); 140 } 145 ProtobufMetadataManagerImpl protobufMetadataManager = 146 (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running(); 147 protobufMetadataManager.addCacheDependency(cacheName);networkdb.go https://gitlab.com/0072016/0072016-docker | Go | 451 lines
2 3//go:generate protoc -I.:../Godeps/_workspace/src/github.com/gogo/protobuf --gogo_out=import_path=github.com/docker/libnetwork/networkdb,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto:. networkdb.proto 4types.go https://gitlab.com/unofficial-mirrors/openshift-origin | Go | 322 lines
6 7 descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" 8 gogen "github.com/golang/protobuf/protoc-gen-go/generator"state_update_service_api.py https://bitbucket.org/stateupdateservice/state-update-service.git | Python | 316 lines
4import uuid 5from google.protobuf.descriptor import FieldDescriptor 6 98 if not self.sentDescriptorToServer.has_key( key ): 99 msg.DESCRIPTOR.CopyToProto( self.currentUpdateStructure.updates[ -1 ].protobufDescriptor ) 100 # Mark this so we don't need to send the descriptor every time 110 self.currentUpdateStructure.updates[ -1 ].key = key 111 self.currentUpdateStructure.updates[ -1 ].partialUpdate.type = PartialUpdate.PROTOBUF_MERGE 112 self.currentUpdateStructure.updates[ -1 ].partialUpdate.appendBytes = msg.SerializePartialToString() 143 elif responseObj.partialUpdate: 144 if responseObj.partialUpdate.type == PartialUpdate.PROTOBUF_MERGE: 145 # Simple merge updatezero_copy_stream_impl.h https://gitlab.com/github-cloud-corporation/protobuf | C Header | 358 lines
36// zero_copy_stream.h which are only included in the full (non-lite) 37// protobuf library. These implementations include Unix file descriptors 38// and C++ iostreams. See also: zero_copy_stream_impl_lite.h 39 40#ifndef GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_H__ 41#define GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_H__ 44#include <iosfwd> 45#include <google/protobuf/io/zero_copy_stream.h> 46#include <google/protobuf/io/zero_copy_stream_impl_lite.h> 46#include <google/protobuf/io/zero_copy_stream_impl_lite.h> 47#include <google/protobuf/stubs/common.h> 48 50namespace google { 51namespace protobuf { 52namespace io {EditLogLedgerMetadata.java https://gitlab.com/xiaoliuliu2050/hadoop | Java | 217 lines
32import org.apache.hadoop.contrib.bkjournal.BKJournalProtos.EditLogLedgerProto; 33import com.google.protobuf.TextFormat; 34import static com.google.common.base.Charsets.UTF_8;DictionaryTests.cs https://gitlab.com/meermalik/protobuf-net | C# | 353 lines
3using System.Collections.Generic; 4using ProtoBuf; 5using System; 5using System; 6using ProtoBuf.Meta; 7using System.IO;checkin_request_unittest.cc https://gitlab.com/0072016/Facebook-SDK- | C++ | 329 lines
75 uint64_t security_token) { 76 // First setup a chrome_build protobuf. 77 chrome_build_proto_.set_platform( 90 chrome_build_proto_); 91 // Then create a request with that protobuf and specified android_id, 92 // security_token.message.cc https://gitlab.com/vectorci/rippled | C++ | 358 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>DecodeUtf8Test.java https://github.com/chromium/chromium.git | Java | 325 lines
1package com.google.protobuf; 2 2 3import com.google.protobuf.Utf8.Processor; 4import com.google.protobuf.Utf8.SafeProcessor; 4import com.google.protobuf.Utf8.SafeProcessor; 5import com.google.protobuf.Utf8.UnsafeProcessor; 6import java.nio.ByteBuffer;struct_pb2.py https://gitlab.com/ChuyuHsu/slackbot | Python | 281 lines
6from google.protobuf.internal import enum_type_wrapper 7from google.protobuf import descriptor as _descriptor 8from google.protobuf import message as _message 8from google.protobuf import message as _message 9from google.protobuf import reflection as _reflection 10from google.protobuf import symbol_database as _symbol_database 22 syntax='proto3', 23 serialized_pb=_b('\n\x1cgoogle/protobuf/struct.proto\x12\x0fgoogle.protobuf\"\x84\x01\n\x06Struct\x12\x33\n\x06\x66ields\x18\x01 \x03(\x0b\x32#.google.protobuf.Struct.FieldsEntry\x1a\x45\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\xea\x01\n\x05Value\x12\x30\n\nnull_value\x18\x01 \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x16\n\x0cnumber_value\x18\x02 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x12/\n\x0cstruct_value\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x30\n\nlist_value\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.ListValueH\x00\x42\x06\n\x04kind\"3\n\tListValue\x12&\n\x06values\x18\x01 \x03(\x0b\x32\x16.google.protobuf.Value*\x1b\n\tNullValue\x12\x0e\n\nNULL_VALUE\x10\x00\x42N\n\x13\x63om.google.protobufB\x0bStructProtoP\x01\xa0\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3') 24) 119 name='Value', 120 full_name='google.protobuf.Value', 121 filename=None, 277DESCRIPTOR.has_options = True 278DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\023com.google.protobufB\013StructProtoP\001\240\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypes')) 279_STRUCT_FIELDSENTRY.has_options = TrueProtoBuf.Reflect.Message.OneOf.html https://gitlab.com/AshleyMcVeigh/cloudComputingAssignment | HTML | 1043 lines
31 <h2> 32 <span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a><a href="ProtoBuf.Reflect.html">.Reflect</a><a href="ProtoBuf.Reflect.Message.html">.Message</a>.</span> 33 192 <dd class="tag-source"><ul class="dummy"><li> 193 <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line3740">line 3740</a> 194 </li></ul></dd> 383 <dd class="tag-source"><ul class="dummy"><li> 384 <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1403">line 1403</a> 385 </li></ul></dd> 808 <dd class="tag-source"><ul class="dummy"><li> 809 <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1417">line 1417</a> 810 </li></ul></dd> 978 <dd class="tag-source"><ul class="dummy"><li> 979 <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line1435">line 1435</a> 980 </li></ul></dd>enumstringerpb_test.go https://gitlab.com/JamesClonk/firehose-to-syslog | Go | 378 lines
21import time "time" 22import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" 23import encoding_json "encoding/json" 27 p := NewPopulatedNidOptEnum(popr, false) 28 data, err := github_com_gogo_protobuf_proto.Marshal(p) 29 if err != nil { 32 msg := &NidOptEnum{} 33 if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil { 34 panic(err) 49 p := NewPopulatedNinOptEnum(popr, false) 50 data, err := github_com_gogo_protobuf_proto.Marshal(p) 51 if err != nil { 54 msg := &NinOptEnum{} 55 if err := github_com_gogo_protobuf_proto.Unmarshal(data, msg); err != nil { 56 panic(err)k3resolver_p.h https://github.com/vasi/kdelibs.git | C Header | 352 lines
62 struct protoent; 63 extern int getprotobyname_r(const char* proto, struct protoent* protobuf, 64 char *buf, size_t buflen, 65 struct protoent** result); 66 extern int getprotobynumber_r(int proto, struct protoent* protobuf, 67 char *buf, size_t buflen,service.h https://bitbucket.org/Abd4llA/test.git | C Header | 287 lines
2// Copyright 2008 Google Inc. All rights reserved. 3// http://code.google.com/p/protobuf/ 4// 59// 60// void Foo(google::protobuf::RpcController* controller, 61// const MyRequest* request, 95 96#ifndef GOOGLE_PROTOBUF_SERVICE_H__ 97#define GOOGLE_PROTOBUF_SERVICE_H__ 99#include <string> 100#include <google/protobuf/stubs/common.h> 101 102namespace google { 103namespace protobuf { 104RPC.scala https://github.com/apeshimam/akka-modules.git | Scala | 352 lines
3import akka.amqp.AMQP._ 4import com.google.protobuf.Message 5import akka.actor.{Actor, ActorRef} 158 // Needed for Java API usage 159 def newProtobufRpcServer[I <: Message, O <: Message]( 160 connection: ActorRef, 165 implicit val manifest = Manifest.classType[I](resultClazz) 166 newProtobufRpcServer(connection, exchangeName, requestHandler.apply _) 167 } 169 // Needed for Java API usage 170 def newProtobufRpcServer[I <: Message, O <: Message]( 171 connection: ActorRef, 177 implicit val manifest = Manifest.classType[I](resultClazz) 178 newProtobufRpcServer(connection, exchangeName, requestHandler.apply _, Some(routingKey)) 179 }java_message_field.cc https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 335 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_message_field.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/wire_format.h> 41#include <google/protobuf/wire_format.h> 42#include <google/protobuf/stubs/strutil.h> 43 44namespace google { 45namespace protobuf { 46namespace compiler {types.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 228 lines
25 // Group is the group this resource belongs in 26 Group string `json:"group" protobuf:"bytes,1,opt,name=group"` 27 // Version is the version this resource belongs in 31 // +optional 32 Version string `json:"version,omitempty" protobuf:"bytes,2,opt,name=version"` 33 // Names are the names used to describe this custom resource 33 // Names are the names used to describe this custom resource 34 Names CustomResourceDefinitionNames `json:"names" protobuf:"bytes,3,opt,name=names"` 35 // Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced 35 // Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced 36 Scope ResourceScope `json:"scope" protobuf:"bytes,4,opt,name=scope,casttype=ResourceScope"` 37 // Validation describes the validation methods for CustomResources 38 // +optional 39 Validation *CustomResourceValidation `json:"validation,omitempty" protobuf:"bytes,5,opt,name=validation"` 40 // Subresources describes the subresources for CustomResourcestestbinary.proto https://gitlab.com/github-cloud-corporation/protobuf | Protocol Buffers | 212 lines
37 38// These types are borrowed from `unittest.proto` in the protobuf tree. We want 39// to ensure that the binary-format support will handle all field typesatomicops_internals_tsan.h https://gitlab.com/admin-github-cloud/protobuf | C Header | 219 lines
34 35#ifndef GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_TSAN_H_ 36#define GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_TSAN_H_ 42namespace google { 43namespace protobuf { 44namespace internal { 213} // namespace internal 214} // namespace protobuf 215} // namespace google 218 219#endif // GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_TSAN_H_ 220cpp_extension.cc https://gitlab.com/admin-github-cloud/protobuf | C++ | 210 lines
34 35#include <google/protobuf/compiler/cpp/cpp_extension.h> 36#include <map> 36#include <map> 37#include <google/protobuf/compiler/cpp/cpp_helpers.h> 38#include <google/protobuf/stubs/strutil.h> 38#include <google/protobuf/stubs/strutil.h> 39#include <google/protobuf/io/printer.h> 40#include <google/protobuf/descriptor.pb.h> 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"server_lib.py https://gitlab.com/hrishikeshvganu/tensorflow | Python | 321 lines
22 23from tensorflow.core.protobuf import tensorflow_server_pb2 24from tensorflow.python import pywrap_tensorflow 239 TypeError: If `cluster` is not a dictionary mapping strings to lists 240 of strings, and not a `tf.train.ClusterDef` protobuf. 241 """ 304 305 # NOTE(mrry): Sort by job_name to produce deterministic protobufs. 306 for job_name, task_list in sorted(self._cluster_spec.items()):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); }flexvolume.pb.gw.go https://gitlab.com/unofficial-mirrors/openshift-origin | Go | 297 lines
14 15 "github.com/golang/protobuf/proto" 16 "github.com/golang/protobuf/ptypes/empty"Section_test.cpp https://gitlab.com/SkyDragon-OSP/platform_frameworks_base | C++ | 376 lines
21#include <android/os/IncidentReportArgs.h> 22#include <android/util/protobuf.h> 23#include <frameworks/base/libs/incident/proto/android/os/header.pb.h> 171 ASSERT_TRUE(ReadFileToString(tf.path, &actual)); 172 // generates the expected protobuf result. 173 size_t fileLen = testFile.size();importer.h https://gitlab.com/bugdone/demoinfogo_windows_build | C Header | 317 lines
36 37#ifndef GOOGLE_PROTOBUF_COMPILER_IMPORTER_H__ 38#define GOOGLE_PROTOBUF_COMPILER_IMPORTER_H__ 43#include <utility> 44#include <google/protobuf/descriptor.h> 45#include <google/protobuf/descriptor_database.h> 45#include <google/protobuf/descriptor_database.h> 46#include <google/protobuf/compiler/parser.h> 47 48namespace google { 49namespace protobuf { 50 75// FindFileContainingExtension(); these will always return false. 76class LIBPROTOBUF_EXPORT SourceTreeDescriptorDatabase : public DescriptorDatabase { 77 public:io.py https://gitlab.com/sixsamuraisoldier/caffe | Python | 383 lines
6try: 7 # Python3 will most likely not be able to load protobuf 8 from caffe.proto import caffe_pb2port.h https://gitlab.com/yenny.prathivi/protobuf | C Header | 391 lines
30 31#ifndef GOOGLE_PROTOBUF_STUBS_PORT_H_ 32#define GOOGLE_PROTOBUF_STUBS_PORT_H_ 46 47#undef PROTOBUF_LITTLE_ENDIAN 48#ifdef _WIN32 49 // Assuming windows is always little-endian. 50 // TODO(xiaofeng): The PROTOBUF_LITTLE_ENDIAN is not only used for 51 // optimization but also for correctness. We should define an 52 // different macro to test the big-endian code path in coded_stream. 53 #if !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST) 54 #define PROTOBUF_LITTLE_ENDIAN 1 64 (defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN)) && \ 65 !defined(PROTOBUF_DISABLE_LITTLE_ENDIAN_OPT_FOR_TEST) 66 #define PROTOBUF_LITTLE_ENDIAN 1WebSocketResources.pb.swift https://gitlab.com/kush/signalios | Swift | 410 lines
220 221extension WebSocketProtos_WebSocketRequestMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { 222 static let protoMessageName: String = _protobuf_package + ".WebSocketRequestMessage" 273 274extension WebSocketProtos_WebSocketResponseMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { 275 static let protoMessageName: String = _protobuf_package + ".WebSocketResponseMessage" 326 327extension WebSocketProtos_WebSocketMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { 328 static let protoMessageName: String = _protobuf_package + ".WebSocketMessage" 328 static let protoMessageName: String = _protobuf_package + ".WebSocketMessage" 329 static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 330 1: .same(proto: "type"), 404extension WebSocketProtos_WebSocketMessage.TypeEnum: SwiftProtobuf._ProtoNameProviding { 405 static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ 406 0: .same(proto: "UNKNOWN"),TestTokenAuthentication.java https://github.com/jmhsieh/hbase.git | Java | 384 lines
28 29import com.google.protobuf.RpcController; 30import com.google.protobuf.ServiceException; 51import org.apache.hadoop.hbase.ipc.ServerRpcController; 52import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos; 53import org.apache.hadoop.hbase.regionserver.HRegion;idl_gen_text.cpp https://github.com/DennisOSRM/Project-OSRM.git | C++ | 378 lines
91 if (i) { 92 if (!opts.protobuf_ascii_alike) text += ","; 93 text += NewLine(opts); 266 if (fieldout++) { 267 if (!opts.protobuf_ascii_alike) text += ","; 268 } 271 OutputIdentifier(fd.name, opts, _text); 272 if (!opts.protobuf_ascii_alike || 273 (fd.value.type.base_type != BASE_TYPE_STRUCT &&Modes.java https://gitlab.com/chenfengxu/gerrit | Java | 510 lines
308 309 @Source("protobuf.js") 310 @DoNotEmbed 310 @DoNotEmbed 311 DataResource protobuf(); 312RightInputAdapterNode.java https://github.com/esteban-aliverti/drools.git | Java | 377 lines
34import org.drools.core.marshalling.impl.PersisterHelper; 35import org.drools.core.marshalling.impl.ProtobufInputMarshaller; 36import org.drools.core.marshalling.impl.ProtobufMessages; 136 InternalFactHandle handle = null; 137 ProtobufMessages.FactHandle _handle = null; 138 if( context.getReaderContext() != null ) { 138 if( context.getReaderContext() != null ) { 139 Map<ProtobufInputMarshaller.TupleKey, ProtobufMessages.FactHandle> map = (Map<ProtobufInputMarshaller.TupleKey, ProtobufMessages.FactHandle>) context.getReaderContext().nodeMemories.get( getId() ); 140 if( map != null ) {initializer.go https://gitlab.com/geropl/gitpod | Go | 442 lines
26 "golang.org/x/xerrors" 27 "google.golang.org/protobuf/proto" 28json_util_test.cc https://gitlab.com/github-cloud-corporation/protobuf | C++ | 354 lines
30 31#include <google/protobuf/util/json_util.h> 32 35 36#include <google/protobuf/io/zero_copy_stream.h> 37#include <google/protobuf/descriptor_database.h> 37#include <google/protobuf/descriptor_database.h> 38#include <google/protobuf/dynamic_message.h> 39#include <google/protobuf/util/json_format_proto3.pb.h> 39#include <google/protobuf/util/json_format_proto3.pb.h> 40#include <google/protobuf/util/type_resolver.h> 41#include <google/protobuf/util/type_resolver_util.h> 44namespace google { 45namespace protobuf { 46namespace util {lease.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 545 lines
33 34// LeaseGrantResponse wraps the protobuf message LeaseGrantResponse. 35type LeaseGrantResponse struct { 41 42// LeaseKeepAliveResponse wraps the protobuf message LeaseKeepAliveResponse. 43type LeaseKeepAliveResponse struct { 48 49// LeaseTimeToLiveResponse wraps the protobuf message LeaseTimeToLiveResponse. 50type LeaseTimeToLiveResponse struct {Main.cpp https://gitlab.com/Misahky/TrinityCore | C++ | 342 lines
36#include <boost/filesystem/path.hpp> 37#include <google/protobuf/stubs/common.h> 38 87 88 GOOGLE_PROTOBUF_VERIFY_VERSION; 89 223 delete _ioService; 224 google::protobuf::ShutdownProtobufLibrary(); 225 return 0;DataRecord.pb.cc https://github.com/doughodson/OpenEaaglesExamples.git | C++ | 439 lines
83 84 ::oe::recorder::pb::protobuf_AddDesc_openeaagles_2frecorder_2fprotobuf_2fDataRecord_2eproto(); 85 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 93 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 94 "xrecorder/protobuf/DataRecord.proto", &protobuf_RegisterTypes); 95 MyDataMsg::default_instance_ = new MyDataMsg(); 103 MyDataMsg::default_instance_->InitAsDefaultInstance(); 104 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_xrecorder_2fprotobuf_2fDataRecord_2eproto); 105} 210 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 211 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( 212 input, &fee_))); 225 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 226 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( 227 input, &fi_)));ChannelInvitationService.cs https://github.com/angerwin/d3sharp.git | C# | 160 lines
82 83 // somehow protobuf lib doesnt handle this extension, so we're using a workaround to get that channelinfo. 84 var extensionBytes = request.UnknownFields.FieldDictionary[105].LengthDelimitedList[0].ToByteArray();package-tree.html https://github.com/spacyz/elephant-bird.git | HTML | 153 lines
94<LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/ProtoCodeGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>ProtoCodeGenerator</B></A><UL> 95<LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/DeprecatedLzoProtobufBlockInputFormatGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>DeprecatedLzoProtobufBlockInputFormatGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufB64LineInputFormatGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufB64LineInputFormatGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufB64LineOutputFormatGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufB64LineOutputFormatGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufB64LinePigletGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufB64LinePigletGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufB64LinePigLoaderGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufB64LinePigLoaderGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufB64LinePigStorageGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufB64LinePigStorageGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufBlockInputFormatGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufBlockInputFormatGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufBlockOutputFormatGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufBlockOutputFormatGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufBlockPigletGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufBlockPigletGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufBlockPigLoaderGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufBlockPigLoaderGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufBlockPigStorageGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufBlockPigStorageGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/LzoProtobufHiveSerdeGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>LzoProtobufHiveSerdeGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/OinkLoadPluginGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>OinkLoadPluginGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/ProtobufBytesToPigTupleGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>ProtobufBytesToPigTupleGenerator</B></A><LI TYPE="circle">com.twitter.elephantbird.proto.codegen.<A HREF="../../../../../com/twitter/elephantbird/proto/codegen/ProtobufWritableGenerator.html" title="class in com.twitter.elephantbird.proto.codegen"><B>ProtobufWritableGenerator</B></A></UL> 96</UL>encode_gogo.go https://gitlab.com/JamesClonk/firehose-to-syslog | Go | 383 lines
3// Copyright (c) 2013, Vastech SA (PTY) LTD. All rights reserved. 4// http://github.com/gogo/protobuf/gogoproto 5// 8// Copyright 2010 The Go Authors. All rights reserved. 9// http://github.com/golang/protobuf/ 10//objectivec_file.cc https://gitlab.com/zharfi/GunSafety | C++ | 370 lines
30 31#include <google/protobuf/compiler/objectivec/objectivec_file.h> 32#include <google/protobuf/compiler/objectivec/objectivec_enum.h> 32#include <google/protobuf/compiler/objectivec/objectivec_enum.h> 33#include <google/protobuf/compiler/objectivec/objectivec_extension.h> 34#include <google/protobuf/compiler/objectivec/objectivec_message.h> 34#include <google/protobuf/compiler/objectivec/objectivec_message.h> 35#include <google/protobuf/compiler/code_generator.h> 36#include <google/protobuf/io/printer.h> 36#include <google/protobuf/io/printer.h> 37#include <google/protobuf/io/zero_copy_stream_impl.h> 38#include <google/protobuf/stubs/stl_util.h> 38#include <google/protobuf/stubs/stl_util.h> 39#include <google/protobuf/stubs/strutil.h> 40#include <sstream>