From 04d27d36255d38d079d86281533591895754c003 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 1 Mar 2019 17:06:55 -0300 Subject: [PATCH 1/3] rename proto to avoid namespace conflicts when importing v1+v2 --- v2/proto/{claim.proto => claim_schema.proto} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename v2/proto/{claim.proto => claim_schema.proto} (98%) diff --git a/v2/proto/claim.proto b/v2/proto/claim_schema.proto similarity index 98% rename from v2/proto/claim.proto rename to v2/proto/claim_schema.proto index 0bca6b2..b2b7744 100644 --- a/v2/proto/claim.proto +++ b/v2/proto/claim_schema.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package pb; +package pb3; message Claim { enum Type { @@ -63,4 +63,4 @@ message File { message Video { uint32 width = 1; uint32 height = 2; -} \ No newline at end of file +} -- 2.45.2 From 50f8d6a2cb07f15f3ccb4a1db46dde416a093b13 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 1 Mar 2019 17:08:52 -0300 Subject: [PATCH 2/3] regen v2 --- v2/cpp/{claim.pb.cc => claim_schema.pb.cc} | 1969 ++++++----------- v2/cpp/{claim.pb.h => claim_schema.pb.h} | 1100 ++++----- v2/go/{claim.pb.go => claim_schema.pb.go} | 177 +- v2/js/{claim_pb.js => claim_schema_pb.js} | 782 +++---- .../{claim_pb2.py => claim_schema_pb2.py} | 152 +- 5 files changed, 1842 insertions(+), 2338 deletions(-) rename v2/cpp/{claim.pb.cc => claim_schema.pb.cc} (57%) rename v2/cpp/{claim.pb.h => claim_schema.pb.h} (70%) rename v2/go/{claim.pb.go => claim_schema.pb.go} (67%) rename v2/js/{claim_pb.js => claim_schema_pb.js} (68%) rename v2/python/{claim_pb2.py => claim_schema_pb2.py} (73%) diff --git a/v2/cpp/claim.pb.cc b/v2/cpp/claim_schema.pb.cc similarity index 57% rename from v2/cpp/claim.pb.cc rename to v2/cpp/claim_schema.pb.cc index 2a9ac7a..33b21c8 100644 --- a/v2/cpp/claim.pb.cc +++ b/v2/cpp/claim_schema.pb.cc @@ -1,283 +1,312 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: claim.proto +// source: claim_schema.proto -#include "claim.pb.h" +#include "claim_schema.pb.h" #include #include +#include #include -#include #include #include #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Channel_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Fee_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_File_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Video_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Stream_claim_2eproto; -namespace pb { +namespace protobuf_claim_5fschema_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_claim_5fschema_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Channel; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_claim_5fschema_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Fee; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_claim_5fschema_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_File; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_claim_5fschema_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Video; +extern PROTOBUF_INTERNAL_EXPORT_protobuf_claim_5fschema_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Stream; +} // namespace protobuf_claim_5fschema_2eproto +namespace pb3 { class ClaimDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _Claim_default_instance_; class ChannelDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _Channel_default_instance_; class StreamDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _Stream_default_instance_; class FeeDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _Fee_default_instance_; class FileDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _File_default_instance_; class VideoDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed