diff --git a/src/google/any_pb.jl b/src/google/any_pb.jl index e9d7d5c..2f9d98f 100644 --- a/src/google/any_pb.jl +++ b/src/google/any_pb.jl @@ -2,15 +2,11 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct _Any <: ProtoType type_url::AbstractString value::Array{UInt8,1} _Any(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type _Any -hash(v::_Any) = ProtoBuf.protohash(v) -isequal(v1::_Any, v2::_Any) = ProtoBuf.protoisequal(v1, v2) -==(v1::_Any, v2::_Any) = ProtoBuf.protoeq(v1, v2) export _Any diff --git a/src/google/api_pb.jl b/src/google/api_pb.jl index cdf1aec..7128fe1 100644 --- a/src/google/api_pb.jl +++ b/src/google/api_pb.jl @@ -2,7 +2,6 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct Method <: ProtoType name::AbstractString @@ -14,18 +13,12 @@ mutable struct Method <: ProtoType syntax::Int32 Method(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Method -hash(v::Method) = ProtoBuf.protohash(v) -isequal(v1::Method, v2::Method) = ProtoBuf.protoisequal(v1, v2) -==(v1::Method, v2::Method) = ProtoBuf.protoeq(v1, v2) mutable struct Mixin <: ProtoType name::AbstractString root::AbstractString Mixin(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Mixin -hash(v::Mixin) = ProtoBuf.protohash(v) -isequal(v1::Mixin, v2::Mixin) = ProtoBuf.protoisequal(v1, v2) -==(v1::Mixin, v2::Mixin) = ProtoBuf.protoeq(v1, v2) mutable struct Api <: ProtoType name::AbstractString @@ -37,8 +30,5 @@ mutable struct Api <: ProtoType syntax::Int32 Api(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Api -hash(v::Api) = ProtoBuf.protohash(v) -isequal(v1::Api, v2::Api) = ProtoBuf.protoisequal(v1, v2) -==(v1::Api, v2::Api) = ProtoBuf.protoeq(v1, v2) export Api, Method, Mixin diff --git a/src/google/descriptor_pb.jl b/src/google/descriptor_pb.jl index 30d7d16..90d51b0 100644 --- a/src/google/descriptor_pb.jl +++ b/src/google/descriptor_pb.jl @@ -2,7 +2,6 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct UninterpretedOption_NamePart <: ProtoType name_part::AbstractString @@ -11,9 +10,6 @@ mutable struct UninterpretedOption_NamePart <: ProtoType end #type UninterpretedOption_NamePart const __req_UninterpretedOption_NamePart = Symbol[:name_part,:is_extension] meta(t::Type{UninterpretedOption_NamePart}) = meta(t, __req_UninterpretedOption_NamePart, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::UninterpretedOption_NamePart) = ProtoBuf.protohash(v) -isequal(v1::UninterpretedOption_NamePart, v2::UninterpretedOption_NamePart) = ProtoBuf.protoisequal(v1, v2) -==(v1::UninterpretedOption_NamePart, v2::UninterpretedOption_NamePart) = ProtoBuf.protoeq(v1, v2) mutable struct UninterpretedOption <: ProtoType name::Array{UninterpretedOption_NamePart,1} @@ -27,9 +23,6 @@ mutable struct UninterpretedOption <: ProtoType end #type UninterpretedOption const __fnum_UninterpretedOption = Int[2,3,4,5,6,7,8] meta(t::Type{UninterpretedOption}) = meta(t, ProtoBuf.DEF_REQ, __fnum_UninterpretedOption, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::UninterpretedOption) = ProtoBuf.protohash(v) -isequal(v1::UninterpretedOption, v2::UninterpretedOption) = ProtoBuf.protoisequal(v1, v2) -==(v1::UninterpretedOption, v2::UninterpretedOption) = ProtoBuf.protoeq(v1, v2) struct __enum_FieldOptions_CType <: ProtoEnum STRING::Int32 @@ -60,9 +53,6 @@ end #type FieldOptions const __val_FieldOptions = Dict(:ctype => FieldOptions_CType.STRING, :jstype => FieldOptions_JSType.JS_NORMAL, :lazy => false, :deprecated => false, :weak => false) const __fnum_FieldOptions = Int[1,2,6,5,3,10,999] meta(t::Type{FieldOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_FieldOptions, __val_FieldOptions, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::FieldOptions) = ProtoBuf.protohash(v) -isequal(v1::FieldOptions, v2::FieldOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::FieldOptions, v2::FieldOptions) = ProtoBuf.protoeq(v1, v2) mutable struct MessageOptions <: ProtoType message_set_wire_format::Bool @@ -75,9 +65,6 @@ end #type MessageOptions const __val_MessageOptions = Dict(:message_set_wire_format => false, :no_standard_descriptor_accessor => false, :deprecated => false) const __fnum_MessageOptions = Int[1,2,3,7,999] meta(t::Type{MessageOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_MessageOptions, __val_MessageOptions, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::MessageOptions) = ProtoBuf.protohash(v) -isequal(v1::MessageOptions, v2::MessageOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::MessageOptions, v2::MessageOptions) = ProtoBuf.protoeq(v1, v2) mutable struct EnumOptions <: ProtoType allow_alias::Bool @@ -88,9 +75,6 @@ end #type EnumOptions const __val_EnumOptions = Dict(:deprecated => false) const __fnum_EnumOptions = Int[2,3,999] meta(t::Type{EnumOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_EnumOptions, __val_EnumOptions, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::EnumOptions) = ProtoBuf.protohash(v) -isequal(v1::EnumOptions, v2::EnumOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::EnumOptions, v2::EnumOptions) = ProtoBuf.protoeq(v1, v2) mutable struct MethodOptions <: ProtoType deprecated::Bool @@ -100,9 +84,6 @@ end #type MethodOptions const __val_MethodOptions = Dict(:deprecated => false) const __fnum_MethodOptions = Int[33,999] meta(t::Type{MethodOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_MethodOptions, __val_MethodOptions, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::MethodOptions) = ProtoBuf.protohash(v) -isequal(v1::MethodOptions, v2::MethodOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::MethodOptions, v2::MethodOptions) = ProtoBuf.protoeq(v1, v2) struct __enum_FileOptions_OptimizeMode <: ProtoEnum SPEED::Int32 @@ -133,9 +114,6 @@ end #type FileOptions const __val_FileOptions = Dict(:java_multiple_files => false, :java_generate_equals_and_hash => false, :java_string_check_utf8 => false, :optimize_for => FileOptions_OptimizeMode.SPEED, :cc_generic_services => false, :java_generic_services => false, :py_generic_services => false, :deprecated => false, :cc_enable_arenas => false) const __fnum_FileOptions = Int[1,8,10,20,27,9,11,16,17,18,23,31,36,37,999] meta(t::Type{FileOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_FileOptions, __val_FileOptions, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::FileOptions) = ProtoBuf.protohash(v) -isequal(v1::FileOptions, v2::FileOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::FileOptions, v2::FileOptions) = ProtoBuf.protoeq(v1, v2) mutable struct EnumValueOptions <: ProtoType deprecated::Bool @@ -145,9 +123,6 @@ end #type EnumValueOptions const __val_EnumValueOptions = Dict(:deprecated => false) const __fnum_EnumValueOptions = Int[1,999] meta(t::Type{EnumValueOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_EnumValueOptions, __val_EnumValueOptions, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::EnumValueOptions) = ProtoBuf.protohash(v) -isequal(v1::EnumValueOptions, v2::EnumValueOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::EnumValueOptions, v2::EnumValueOptions) = ProtoBuf.protoeq(v1, v2) mutable struct OneofOptions <: ProtoType uninterpreted_option::Array{UninterpretedOption,1} @@ -155,9 +130,6 @@ mutable struct OneofOptions <: ProtoType end #type OneofOptions const __fnum_OneofOptions = Int[999] meta(t::Type{OneofOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_OneofOptions, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::OneofOptions) = ProtoBuf.protohash(v) -isequal(v1::OneofOptions, v2::OneofOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::OneofOptions, v2::OneofOptions) = ProtoBuf.protoeq(v1, v2) mutable struct ServiceOptions <: ProtoType deprecated::Bool @@ -167,9 +139,6 @@ end #type ServiceOptions const __val_ServiceOptions = Dict(:deprecated => false) const __fnum_ServiceOptions = Int[33,999] meta(t::Type{ServiceOptions}) = meta(t, ProtoBuf.DEF_REQ, __fnum_ServiceOptions, __val_ServiceOptions, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::ServiceOptions) = ProtoBuf.protohash(v) -isequal(v1::ServiceOptions, v2::ServiceOptions) = ProtoBuf.protoisequal(v1, v2) -==(v1::ServiceOptions, v2::ServiceOptions) = ProtoBuf.protoeq(v1, v2) struct __enum_FieldDescriptorProto_Type <: ProtoEnum TYPE_DOUBLE::Int32 @@ -217,9 +186,6 @@ mutable struct FieldDescriptorProto <: ProtoType end #type FieldDescriptorProto const __fnum_FieldDescriptorProto = Int[1,3,4,5,6,2,7,9,10,8] meta(t::Type{FieldDescriptorProto}) = meta(t, ProtoBuf.DEF_REQ, __fnum_FieldDescriptorProto, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::FieldDescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::FieldDescriptorProto, v2::FieldDescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::FieldDescriptorProto, v2::FieldDescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct MethodDescriptorProto <: ProtoType name::AbstractString @@ -232,9 +198,6 @@ mutable struct MethodDescriptorProto <: ProtoType end #type MethodDescriptorProto const __val_MethodDescriptorProto = Dict(:client_streaming => false, :server_streaming => false) meta(t::Type{MethodDescriptorProto}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, __val_MethodDescriptorProto, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::MethodDescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::MethodDescriptorProto, v2::MethodDescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::MethodDescriptorProto, v2::MethodDescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct EnumValueDescriptorProto <: ProtoType name::AbstractString @@ -242,9 +205,6 @@ mutable struct EnumValueDescriptorProto <: ProtoType options::EnumValueOptions EnumValueDescriptorProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type EnumValueDescriptorProto -hash(v::EnumValueDescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::EnumValueDescriptorProto, v2::EnumValueDescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::EnumValueDescriptorProto, v2::EnumValueDescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct EnumDescriptorProto <: ProtoType name::AbstractString @@ -252,36 +212,24 @@ mutable struct EnumDescriptorProto <: ProtoType options::EnumOptions EnumDescriptorProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type EnumDescriptorProto -hash(v::EnumDescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::EnumDescriptorProto, v2::EnumDescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::EnumDescriptorProto, v2::EnumDescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct OneofDescriptorProto <: ProtoType name::AbstractString options::OneofOptions OneofDescriptorProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type OneofDescriptorProto -hash(v::OneofDescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::OneofDescriptorProto, v2::OneofDescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::OneofDescriptorProto, v2::OneofDescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct DescriptorProto_ExtensionRange <: ProtoType start::Int32 _end::Int32 DescriptorProto_ExtensionRange(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type DescriptorProto_ExtensionRange -hash(v::DescriptorProto_ExtensionRange) = ProtoBuf.protohash(v) -isequal(v1::DescriptorProto_ExtensionRange, v2::DescriptorProto_ExtensionRange) = ProtoBuf.protoisequal(v1, v2) -==(v1::DescriptorProto_ExtensionRange, v2::DescriptorProto_ExtensionRange) = ProtoBuf.protoeq(v1, v2) mutable struct DescriptorProto_ReservedRange <: ProtoType start::Int32 _end::Int32 DescriptorProto_ReservedRange(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type DescriptorProto_ReservedRange -hash(v::DescriptorProto_ReservedRange) = ProtoBuf.protohash(v) -isequal(v1::DescriptorProto_ReservedRange, v2::DescriptorProto_ReservedRange) = ProtoBuf.protoisequal(v1, v2) -==(v1::DescriptorProto_ReservedRange, v2::DescriptorProto_ReservedRange) = ProtoBuf.protoeq(v1, v2) mutable struct DescriptorProto <: ProtoType name::AbstractString @@ -298,9 +246,6 @@ mutable struct DescriptorProto <: ProtoType end #type DescriptorProto const __fnum_DescriptorProto = Int[1,2,6,3,4,5,8,7,9,10] meta(t::Type{DescriptorProto}) = meta(t, ProtoBuf.DEF_REQ, __fnum_DescriptorProto, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::DescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::DescriptorProto, v2::DescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::DescriptorProto, v2::DescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct ServiceDescriptorProto <: ProtoType name::AbstractString @@ -308,9 +253,6 @@ mutable struct ServiceDescriptorProto <: ProtoType options::ServiceOptions ServiceDescriptorProto(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type ServiceDescriptorProto -hash(v::ServiceDescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::ServiceDescriptorProto, v2::ServiceDescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::ServiceDescriptorProto, v2::ServiceDescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct SourceCodeInfo_Location <: ProtoType path::Array{Int32,1} @@ -323,17 +265,11 @@ end #type SourceCodeInfo_Location const __fnum_SourceCodeInfo_Location = Int[1,2,3,4,6] const __pack_SourceCodeInfo_Location = Symbol[:path,:span] meta(t::Type{SourceCodeInfo_Location}) = meta(t, ProtoBuf.DEF_REQ, __fnum_SourceCodeInfo_Location, ProtoBuf.DEF_VAL, true, __pack_SourceCodeInfo_Location, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::SourceCodeInfo_Location) = ProtoBuf.protohash(v) -isequal(v1::SourceCodeInfo_Location, v2::SourceCodeInfo_Location) = ProtoBuf.protoisequal(v1, v2) -==(v1::SourceCodeInfo_Location, v2::SourceCodeInfo_Location) = ProtoBuf.protoeq(v1, v2) mutable struct SourceCodeInfo <: ProtoType location::Array{SourceCodeInfo_Location,1} SourceCodeInfo(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type SourceCodeInfo -hash(v::SourceCodeInfo) = ProtoBuf.protohash(v) -isequal(v1::SourceCodeInfo, v2::SourceCodeInfo) = ProtoBuf.protoisequal(v1, v2) -==(v1::SourceCodeInfo, v2::SourceCodeInfo) = ProtoBuf.protoeq(v1, v2) mutable struct FileDescriptorProto <: ProtoType name::AbstractString @@ -352,17 +288,11 @@ mutable struct FileDescriptorProto <: ProtoType end #type FileDescriptorProto const __fnum_FileDescriptorProto = Int[1,2,3,10,11,4,5,6,7,8,9,12] meta(t::Type{FileDescriptorProto}) = meta(t, ProtoBuf.DEF_REQ, __fnum_FileDescriptorProto, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::FileDescriptorProto) = ProtoBuf.protohash(v) -isequal(v1::FileDescriptorProto, v2::FileDescriptorProto) = ProtoBuf.protoisequal(v1, v2) -==(v1::FileDescriptorProto, v2::FileDescriptorProto) = ProtoBuf.protoeq(v1, v2) mutable struct FileDescriptorSet <: ProtoType file::Array{FileDescriptorProto,1} FileDescriptorSet(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type FileDescriptorSet -hash(v::FileDescriptorSet) = ProtoBuf.protohash(v) -isequal(v1::FileDescriptorSet, v2::FileDescriptorSet) = ProtoBuf.protoisequal(v1, v2) -==(v1::FileDescriptorSet, v2::FileDescriptorSet) = ProtoBuf.protoeq(v1, v2) mutable struct GeneratedCodeInfo_Annotation <: ProtoType path::Array{Int32,1} @@ -373,16 +303,10 @@ mutable struct GeneratedCodeInfo_Annotation <: ProtoType end #type GeneratedCodeInfo_Annotation const __pack_GeneratedCodeInfo_Annotation = Symbol[:path] meta(t::Type{GeneratedCodeInfo_Annotation}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, __pack_GeneratedCodeInfo_Annotation, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::GeneratedCodeInfo_Annotation) = ProtoBuf.protohash(v) -isequal(v1::GeneratedCodeInfo_Annotation, v2::GeneratedCodeInfo_Annotation) = ProtoBuf.protoisequal(v1, v2) -==(v1::GeneratedCodeInfo_Annotation, v2::GeneratedCodeInfo_Annotation) = ProtoBuf.protoeq(v1, v2) mutable struct GeneratedCodeInfo <: ProtoType annotation::Array{GeneratedCodeInfo_Annotation,1} GeneratedCodeInfo(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type GeneratedCodeInfo -hash(v::GeneratedCodeInfo) = ProtoBuf.protohash(v) -isequal(v1::GeneratedCodeInfo, v2::GeneratedCodeInfo) = ProtoBuf.protoisequal(v1, v2) -==(v1::GeneratedCodeInfo, v2::GeneratedCodeInfo) = ProtoBuf.protoeq(v1, v2) export FileDescriptorSet, FileDescriptorProto, DescriptorProto_ExtensionRange, DescriptorProto_ReservedRange, DescriptorProto, FieldDescriptorProto_Type, FieldDescriptorProto_Label, FieldDescriptorProto, OneofDescriptorProto, EnumDescriptorProto, EnumValueDescriptorProto, ServiceDescriptorProto, MethodDescriptorProto, FileOptions_OptimizeMode, FileOptions, MessageOptions, FieldOptions_CType, FieldOptions_JSType, FieldOptions, OneofOptions, EnumOptions, EnumValueOptions, ServiceOptions, MethodOptions, UninterpretedOption_NamePart, UninterpretedOption, SourceCodeInfo_Location, SourceCodeInfo, GeneratedCodeInfo_Annotation, GeneratedCodeInfo diff --git a/src/google/duration_pb.jl b/src/google/duration_pb.jl index 5f57232..7dc84dc 100644 --- a/src/google/duration_pb.jl +++ b/src/google/duration_pb.jl @@ -2,15 +2,11 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct Duration <: ProtoType seconds::Int64 nanos::Int32 Duration(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Duration -hash(v::Duration) = ProtoBuf.protohash(v) -isequal(v1::Duration, v2::Duration) = ProtoBuf.protoisequal(v1, v2) -==(v1::Duration, v2::Duration) = ProtoBuf.protoeq(v1, v2) export Duration diff --git a/src/google/empty_pb.jl b/src/google/empty_pb.jl index bc28611..ab2bfe6 100644 --- a/src/google/empty_pb.jl +++ b/src/google/empty_pb.jl @@ -2,13 +2,9 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct Empty <: ProtoType Empty(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Empty -hash(v::Empty) = ProtoBuf.protohash(v) -isequal(v1::Empty, v2::Empty) = ProtoBuf.protoisequal(v1, v2) -==(v1::Empty, v2::Empty) = ProtoBuf.protoeq(v1, v2) export Empty diff --git a/src/google/field_mask_pb.jl b/src/google/field_mask_pb.jl index e02611e..db8c7c7 100644 --- a/src/google/field_mask_pb.jl +++ b/src/google/field_mask_pb.jl @@ -2,14 +2,10 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct FieldMask <: ProtoType paths::Array{AbstractString,1} FieldMask(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type FieldMask -hash(v::FieldMask) = ProtoBuf.protohash(v) -isequal(v1::FieldMask, v2::FieldMask) = ProtoBuf.protoisequal(v1, v2) -==(v1::FieldMask, v2::FieldMask) = ProtoBuf.protoeq(v1, v2) export FieldMask diff --git a/src/google/plugin_pb.jl b/src/google/plugin_pb.jl index d500978..a8f7d28 100644 --- a/src/google/plugin_pb.jl +++ b/src/google/plugin_pb.jl @@ -2,7 +2,6 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == using ProtoBuf.GoogleProtoBuf mutable struct CodeGeneratorRequest <: ProtoType @@ -13,9 +12,6 @@ mutable struct CodeGeneratorRequest <: ProtoType end #type CodeGeneratorRequest const __fnum_CodeGeneratorRequest = Int[1,2,15] meta(t::Type{CodeGeneratorRequest}) = meta(t, ProtoBuf.DEF_REQ, __fnum_CodeGeneratorRequest, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::CodeGeneratorRequest) = ProtoBuf.protohash(v) -isequal(v1::CodeGeneratorRequest, v2::CodeGeneratorRequest) = ProtoBuf.protoisequal(v1, v2) -==(v1::CodeGeneratorRequest, v2::CodeGeneratorRequest) = ProtoBuf.protoeq(v1, v2) mutable struct CodeGeneratorResponse_File <: ProtoType name::AbstractString @@ -25,9 +21,6 @@ mutable struct CodeGeneratorResponse_File <: ProtoType end #type CodeGeneratorResponse_File const __fnum_CodeGeneratorResponse_File = Int[1,2,15] meta(t::Type{CodeGeneratorResponse_File}) = meta(t, ProtoBuf.DEF_REQ, __fnum_CodeGeneratorResponse_File, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::CodeGeneratorResponse_File) = ProtoBuf.protohash(v) -isequal(v1::CodeGeneratorResponse_File, v2::CodeGeneratorResponse_File) = ProtoBuf.protoisequal(v1, v2) -==(v1::CodeGeneratorResponse_File, v2::CodeGeneratorResponse_File) = ProtoBuf.protoeq(v1, v2) mutable struct CodeGeneratorResponse <: ProtoType error::AbstractString @@ -36,8 +29,5 @@ mutable struct CodeGeneratorResponse <: ProtoType end #type CodeGeneratorResponse const __fnum_CodeGeneratorResponse = Int[1,15] meta(t::Type{CodeGeneratorResponse}) = meta(t, ProtoBuf.DEF_REQ, __fnum_CodeGeneratorResponse, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::CodeGeneratorResponse) = ProtoBuf.protohash(v) -isequal(v1::CodeGeneratorResponse, v2::CodeGeneratorResponse) = ProtoBuf.protoisequal(v1, v2) -==(v1::CodeGeneratorResponse, v2::CodeGeneratorResponse) = ProtoBuf.protoeq(v1, v2) export CodeGeneratorRequest, CodeGeneratorResponse_File, CodeGeneratorResponse diff --git a/src/google/source_context_pb.jl b/src/google/source_context_pb.jl index 3fdbe3a..b3f045c 100644 --- a/src/google/source_context_pb.jl +++ b/src/google/source_context_pb.jl @@ -2,14 +2,10 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct SourceContext <: ProtoType file_name::AbstractString SourceContext(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type SourceContext -hash(v::SourceContext) = ProtoBuf.protohash(v) -isequal(v1::SourceContext, v2::SourceContext) = ProtoBuf.protoisequal(v1, v2) -==(v1::SourceContext, v2::SourceContext) = ProtoBuf.protoeq(v1, v2) export SourceContext diff --git a/src/google/struct_pb.jl b/src/google/struct_pb.jl index 96ee01a..acd6ac3 100644 --- a/src/google/struct_pb.jl +++ b/src/google/struct_pb.jl @@ -2,7 +2,6 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == struct __enum_NullValue <: ProtoEnum NULL_VALUE::Int32 @@ -14,17 +13,11 @@ mutable struct Struct <: ProtoType fields::Dict{AbstractString,Any} # map entry Struct(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Struct -hash(v::Struct) = ProtoBuf.protohash(v) -isequal(v1::Struct, v2::Struct) = ProtoBuf.protoisequal(v1, v2) -==(v1::Struct, v2::Struct) = ProtoBuf.protoeq(v1, v2) mutable struct ListValue <: ProtoType values::Array{Any,1} ListValue(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type ListValue -hash(v::ListValue) = ProtoBuf.protohash(v) -isequal(v1::ListValue, v2::ListValue) = ProtoBuf.protoisequal(v1, v2) -==(v1::ListValue, v2::ListValue) = ProtoBuf.protoeq(v1, v2) mutable struct Value <: ProtoType null_value::Int32 @@ -38,9 +31,6 @@ end #type Value const __oneofs_Value = Int[1,1,1,1,1,1] const __oneof_names_Value = [Symbol("kind")] meta(t::Type{Value}) = meta(t, ProtoBuf.DEF_REQ, ProtoBuf.DEF_FNUM, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, __oneofs_Value, __oneof_names_Value) -hash(v::Value) = ProtoBuf.protohash(v) -isequal(v1::Value, v2::Value) = ProtoBuf.protoisequal(v1, v2) -==(v1::Value, v2::Value) = ProtoBuf.protoeq(v1, v2) function meta(t::Type{ListValue}) haskey(ProtoBuf._metacache, t) && (return ProtoBuf._metacache[t]) diff --git a/src/google/timestamp_pb.jl b/src/google/timestamp_pb.jl index 197ccb0..6ffd60f 100644 --- a/src/google/timestamp_pb.jl +++ b/src/google/timestamp_pb.jl @@ -2,15 +2,11 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct Timestamp <: ProtoType seconds::Int64 nanos::Int32 Timestamp(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Timestamp -hash(v::Timestamp) = ProtoBuf.protohash(v) -isequal(v1::Timestamp, v2::Timestamp) = ProtoBuf.protoisequal(v1, v2) -==(v1::Timestamp, v2::Timestamp) = ProtoBuf.protoeq(v1, v2) export Timestamp diff --git a/src/google/type_pb.jl b/src/google/type_pb.jl index b08dd4b..1792787 100644 --- a/src/google/type_pb.jl +++ b/src/google/type_pb.jl @@ -2,7 +2,6 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == struct __enum_Syntax <: ProtoEnum SYNTAX_PROTO2::Int32 @@ -16,9 +15,6 @@ mutable struct Option <: ProtoType value::_Any Option(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Option -hash(v::Option) = ProtoBuf.protohash(v) -isequal(v1::Option, v2::Option) = ProtoBuf.protoisequal(v1, v2) -==(v1::Option, v2::Option) = ProtoBuf.protoeq(v1, v2) mutable struct EnumValue <: ProtoType name::AbstractString @@ -26,9 +22,6 @@ mutable struct EnumValue <: ProtoType options::Array{Option,1} EnumValue(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type EnumValue -hash(v::EnumValue) = ProtoBuf.protohash(v) -isequal(v1::EnumValue, v2::EnumValue) = ProtoBuf.protoisequal(v1, v2) -==(v1::EnumValue, v2::EnumValue) = ProtoBuf.protoeq(v1, v2) struct __enum_Field_Kind <: ProtoEnum TYPE_UNKNOWN::Int32 @@ -78,9 +71,6 @@ mutable struct Field <: ProtoType end #type Field const __fnum_Field = Int[1,2,3,4,6,7,8,9,10,11] meta(t::Type{Field}) = meta(t, ProtoBuf.DEF_REQ, __fnum_Field, ProtoBuf.DEF_VAL, true, ProtoBuf.DEF_PACK, ProtoBuf.DEF_WTYPES, ProtoBuf.DEF_ONEOFS, ProtoBuf.DEF_ONEOF_NAMES) -hash(v::Field) = ProtoBuf.protohash(v) -isequal(v1::Field, v2::Field) = ProtoBuf.protoisequal(v1, v2) -==(v1::Field, v2::Field) = ProtoBuf.protoeq(v1, v2) mutable struct _Enum <: ProtoType name::AbstractString @@ -90,9 +80,6 @@ mutable struct _Enum <: ProtoType syntax::Int32 _Enum(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type _Enum -hash(v::_Enum) = ProtoBuf.protohash(v) -isequal(v1::_Enum, v2::_Enum) = ProtoBuf.protoisequal(v1, v2) -==(v1::_Enum, v2::_Enum) = ProtoBuf.protoeq(v1, v2) mutable struct _Type <: ProtoType name::AbstractString @@ -103,8 +90,5 @@ mutable struct _Type <: ProtoType syntax::Int32 _Type(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type _Type -hash(v::_Type) = ProtoBuf.protohash(v) -isequal(v1::_Type, v2::_Type) = ProtoBuf.protoisequal(v1, v2) -==(v1::_Type, v2::_Type) = ProtoBuf.protoeq(v1, v2) export Syntax, _Type, Field_Kind, Field_Cardinality, Field, _Enum, EnumValue, Option diff --git a/src/google/wrappers_pb.jl b/src/google/wrappers_pb.jl index 2291daa..fe7e406 100644 --- a/src/google/wrappers_pb.jl +++ b/src/google/wrappers_pb.jl @@ -2,78 +2,50 @@ using Compat using ProtoBuf import ProtoBuf.meta -import Base: hash, isequal, == mutable struct DoubleValue <: ProtoType value::Float64 DoubleValue(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type DoubleValue -hash(v::DoubleValue) = ProtoBuf.protohash(v) -isequal(v1::DoubleValue, v2::DoubleValue) = ProtoBuf.protoisequal(v1, v2) -==(v1::DoubleValue, v2::DoubleValue) = ProtoBuf.protoeq(v1, v2) mutable struct FloatValue <: ProtoType value::Float32 FloatValue(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type FloatValue -hash(v::FloatValue) = ProtoBuf.protohash(v) -isequal(v1::FloatValue, v2::FloatValue) = ProtoBuf.protoisequal(v1, v2) -==(v1::FloatValue, v2::FloatValue) = ProtoBuf.protoeq(v1, v2) mutable struct Int64Value <: ProtoType value::Int64 Int64Value(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Int64Value -hash(v::Int64Value) = ProtoBuf.protohash(v) -isequal(v1::Int64Value, v2::Int64Value) = ProtoBuf.protoisequal(v1, v2) -==(v1::Int64Value, v2::Int64Value) = ProtoBuf.protoeq(v1, v2) mutable struct UInt64Value <: ProtoType value::UInt64 UInt64Value(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type UInt64Value -hash(v::UInt64Value) = ProtoBuf.protohash(v) -isequal(v1::UInt64Value, v2::UInt64Value) = ProtoBuf.protoisequal(v1, v2) -==(v1::UInt64Value, v2::UInt64Value) = ProtoBuf.protoeq(v1, v2) mutable struct Int32Value <: ProtoType value::Int32 Int32Value(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type Int32Value -hash(v::Int32Value) = ProtoBuf.protohash(v) -isequal(v1::Int32Value, v2::Int32Value) = ProtoBuf.protoisequal(v1, v2) -==(v1::Int32Value, v2::Int32Value) = ProtoBuf.protoeq(v1, v2) mutable struct UInt32Value <: ProtoType value::UInt32 UInt32Value(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type UInt32Value -hash(v::UInt32Value) = ProtoBuf.protohash(v) -isequal(v1::UInt32Value, v2::UInt32Value) = ProtoBuf.protoisequal(v1, v2) -==(v1::UInt32Value, v2::UInt32Value) = ProtoBuf.protoeq(v1, v2) mutable struct BoolValue <: ProtoType value::Bool BoolValue(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type BoolValue -hash(v::BoolValue) = ProtoBuf.protohash(v) -isequal(v1::BoolValue, v2::BoolValue) = ProtoBuf.protoisequal(v1, v2) -==(v1::BoolValue, v2::BoolValue) = ProtoBuf.protoeq(v1, v2) mutable struct StringValue <: ProtoType value::AbstractString StringValue(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type StringValue -hash(v::StringValue) = ProtoBuf.protohash(v) -isequal(v1::StringValue, v2::StringValue) = ProtoBuf.protoisequal(v1, v2) -==(v1::StringValue, v2::StringValue) = ProtoBuf.protoeq(v1, v2) mutable struct BytesValue <: ProtoType value::Array{UInt8,1} BytesValue(; kwargs...) = (o=new(); fillunset(o); isempty(kwargs) || ProtoBuf._protobuild(o, kwargs); o) end #type BytesValue -hash(v::BytesValue) = ProtoBuf.protohash(v) -isequal(v1::BytesValue, v2::BytesValue) = ProtoBuf.protoisequal(v1, v2) -==(v1::BytesValue, v2::BytesValue) = ProtoBuf.protoeq(v1, v2) export DoubleValue, FloatValue, Int64Value, UInt64Value, Int32Value, UInt32Value, BoolValue, StringValue, BytesValue