Sha256: 426504ce41b38b8881523ef890ed03332cd76941e00a20c26b339ea035be4c90

Contents?: true

Size: 1.13 KB

Versions: 12

Compression:

Stored size: 1.13 KB

Contents

# encoding: utf-8

##
# 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

12 entries across 12 versions & 2 rubygems

Version Path
protobuf-core-3.5.0 spec/support/test/enum.pb.rb
protobuf-3.5.5 spec/support/test/enum.pb.rb
protobuf-3.5.4 spec/support/test/enum.pb.rb
protobuf-3.5.3 spec/support/test/enum.pb.rb
protobuf-3.5.2 spec/support/test/enum.pb.rb
protobuf-3.5.1 spec/support/test/enum.pb.rb
protobuf-3.5.0 spec/support/test/enum.pb.rb
protobuf-3.4.4 spec/support/test/enum.pb.rb
protobuf-3.4.3 spec/support/test/enum.pb.rb
protobuf-3.4.2 spec/support/test/enum.pb.rb
protobuf-3.4.1 spec/support/test/enum.pb.rb
protobuf-3.4.0 spec/support/test/enum.pb.rb