Sha256: 385f7f2001238ca9f5f073a7d09848f50e706736aaae2b09cc8706e462d207f2

Contents?: true

Size: 1.11 KB

Versions: 24

Compression:

Stored size: 1.11 KB

Contents

##
# This file is auto-generated. DO NOT EDIT!
#
require 'protobuf/message'


##
# Imports
#
require 'test/resource.pb'

module Test

  ##
  # Enum Classes
  #
  class EnumTestType < ::Protobuf::Enum
    define :ONE, 1
    define :TWO, 2
  end

  class AliasedEnum < ::Protobuf::Enum
    set_option :allow_alias

    define :THREE, 3
    define :TRES, 3
    define :FOUR, 4
    define :CUATRO, 4
  end


  ##
  # Message Classes
  #
  class EnumTestMessage < ::Protobuf::Message; end


  ##
  # Message Fields
  #
  class EnumTestMessage
    optional ::Test::EnumTestType, :non_default_enum, 1
    optional ::Test::EnumTestType, :default_enum, 2, :default => ::Test::EnumTestType::ONE
    repeated ::Test::EnumTestType, :repeated_enums, 3
    optional ::Test::AliasedEnum, :alias_non_default_enum, 4
    optional ::Test::AliasedEnum, :alias_default_enum, 5, :default => ::Test::AliasedEnum::CUATRO
    repeated ::Test::AliasedEnum, :alias_repeated_enums, 6
  end


  ##
  # Extended Message Fields
  #
  class ::Test::Resource < ::Protobuf::Message
    optional :int32, :ext_other_file_defined_field, 200, :extension => true
  end

end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
protobuffy-3.6.0 spec/support/test/enum.pb.rb
protobuffy-3.5.1 spec/support/test/enum.pb.rb
protobuffy-3.4.0 spec/support/test/enum.pb.rb
protobuffy-3.3.0 spec/support/test/enum.pb.rb
protobuffy-3.2.0 spec/support/test/enum.pb.rb
protobuffy-3.1.0 spec/support/test/enum.pb.rb
protobuf-3.3.6 spec/support/test/enum.pb.rb
protobuf-3.3.5 spec/support/test/enum.pb.rb
protobuf-3.3.4 spec/support/test/enum.pb.rb
protobuf-3.3.3 spec/support/test/enum.pb.rb
protobuf-3.3.2 spec/support/test/enum.pb.rb
protobuf-3.3.1 spec/support/test/enum.pb.rb
protobuf-3.3.0 spec/support/test/enum.pb.rb
protobuf-3.2.1 spec/support/test/enum.pb.rb
protobuf-3.2.0 spec/support/test/enum.pb.rb
protobuf-3.1.0 spec/support/test/enum.pb.rb
protobuf-3.0.5 spec/support/test/enum.pb.rb
protobuf-3.0.4 spec/support/test/enum.pb.rb
protobuf-3.0.3 spec/support/test/enum.pb.rb
protobuf-3.0.2 spec/support/test/enum.pb.rb