# frozen_string_literal: true

require 'ruby_event_store'

module RubyEventStore
  ProtobufEncodingFailed = Class.new(Error)

  module Protobuf
  end
end

require 'ruby_event_store/protobuf/mappers/transformation/proto_event'
require 'ruby_event_store/protobuf/mappers/transformation/protobuf_encoder'
require 'ruby_event_store/protobuf/mappers/transformation/protobuf_nested_struct_metadata'
require 'ruby_event_store/protobuf/mappers/protobuf'
require 'ruby_event_store/protobuf/version'

# frozen_string_literal: true

require 'ruby_event_store'

module RubyEventStore
  ProtobufEncodingFailed = Class.new(Error)

  module Protobuf
  end
end

require 'ruby_event_store/protobuf/mappers/transformation/proto_event'
require 'ruby_event_store/protobuf/mappers/transformation/protobuf_encoder'
require 'ruby_event_store/protobuf/mappers/transformation/protobuf_nested_struct_metadata'
require 'ruby_event_store/protobuf/mappers/protobuf'
require 'ruby_event_store/protobuf/version'

module RubyEventStore
  Proto = Protobuf::Proto

  module Mappers
    Protobuf = RubyEventStore::Protobuf::Mappers::Protobuf

    module Transformation
      ProtoEvent = RubyEventStore::Protobuf::Mappers::Transformation::ProtoEvent
      ProtobufEncoder = RubyEventStore::Protobuf::Mappers::Transformation::ProtobufEncoder
      ProtobufNestedStructMetadata = RubyEventStore::Protobuf::Mappers::Transformation::ProtobufNestedStructMetadata
    end
  end
end

Define aliases for backward compatibility
Define aliases for backward compatibility
