Sha256: 40860725d2ad8fa1fa2b25a3d933ab502762e4b7cc57b9227f802fdc9ac757e4
Contents?: true
Size: 991 Bytes
Versions: 8
Compression:
Stored size: 991 Bytes
Contents
### Generated by rprotoc. DO NOT EDIT! ### <proto file: test/proto/optional_field.proto> # 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__ A = value(:A, 1) B = value(: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
Version data entries
8 entries across 8 versions & 1 rubygems