### Generated by rprotoc. DO NOT EDIT! ### # package test.optional_field; # # message Message { # enum Enum { # A = 1; # B = 2; # } # optional uint32 number = 1 [default = 20]; # optional string text = 2 [default = "default string"]; # optional Enum enum = 3 [default = B]; # optional int32 signed = 4 [default = -100]; # } require 'protobuf/message/message' require 'protobuf/message/enum' require 'protobuf/message/service' require 'protobuf/message/extend' module Test module OptionalField class Message < ::Protobuf::Message defined_in __FILE__ class Enum < ::Protobuf::Enum defined_in __FILE__ define :A, 1 define :B, 2 end optional :uint32, :number, 1, :default => 20 optional :string, :text, 2, :default => "default string" optional :Enum, :enum, 3, :default => :B optional :int32, :signed, 4, :default => -100 end end end