diff --git a/v2/build.sh b/v2/build.sh index efcd77f..7d99f88 100755 --- a/v2/build.sh +++ b/v2/build.sh @@ -20,7 +20,7 @@ MIN_VERSION="3.0" version_gte "$VERSION" "$MIN_VERSION" || { echo >&2 "error: protoc version must be >= $MIN_VERSION (your $PROTOC is $VERSION)"; exit 1; } -hash protoc-gen-go 2>/dev/null || go get -u github.com/golang/protobuf/protoc-gen-go +hash protoc-gen-go 2>/dev/null || go install github.com/golang/protobuf/protoc-gen-go@latest hash protoc-gen-go 2>/dev/null || { echo >&2 'error: Make sure $GOPATH/bin is in your $PATH'; exit 1; } diff --git a/v2/cpp/claim.pb.cc b/v2/cpp/claim.pb.cc index 1235c28..4ca5ecc 100644 --- a/v2/cpp/claim.pb.cc +++ b/v2/cpp/claim.pb.cc @@ -1,750 +1,638 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: claim.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "claim.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Audio_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Channel_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ClaimList_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ClaimReference_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Fee_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Image_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Language_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Location_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Software_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Source_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_Stream_claim_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_claim_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Video_claim_2eproto; + namespace pb { -class ClaimDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ClaimDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { + public: const ::pb::Stream* stream_; const ::pb::Channel* channel_; const ::pb::ClaimList* collection_; const ::pb::ClaimReference* repost_; } _Claim_default_instance_; -class StreamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class StreamDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { + public: const ::pb::Image* image_; const ::pb::Video* video_; const ::pb::Audio* audio_; const ::pb::Software* software_; + const ::pb::Guncad* guncad_; } _Stream_default_instance_; -class ChannelDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ChannelDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _Channel_default_instance_; -class ClaimReferenceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ClaimReferenceDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _ClaimReference_default_instance_; -class ClaimListDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ClaimListDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _ClaimList_default_instance_; -class SourceDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class SourceDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _Source_default_instance_; -class FeeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class FeeDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _Fee_default_instance_; -class ImageDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ImageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _Image_default_instance_; -class VideoDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed