Sha256: 529051dffc1b3e365d0f8c9892985042ae4b38b8b187950c0b2f6a01653258b2

Contents?: true

Size: 1.36 KB

Versions: 11

Compression:

Stored size: 1.36 KB

Contents

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: addressbook.proto

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("addressbook.proto", :syntax => :proto3) do
    add_message "tutorial.Person" do
      optional :name, :string, 1
      optional :id, :int32, 2
      optional :email, :string, 3
      repeated :phones, :message, 4, "tutorial.Person.PhoneNumber"
      optional :last_updated, :message, 5, "google.protobuf.Timestamp"
    end
    add_message "tutorial.Person.PhoneNumber" do
      optional :number, :string, 1
      optional :type, :enum, 2, "tutorial.Person.PhoneType"
    end
    add_enum "tutorial.Person.PhoneType" do
      value :MOBILE, 0
      value :HOME, 1
      value :WORK, 2
    end
    add_message "tutorial.AddressBook" do
      repeated :people, :message, 1, "tutorial.Person"
    end
  end
end

module Tutorial
  Person = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tutorial.Person").msgclass
  Person::PhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tutorial.Person.PhoneNumber").msgclass
  Person::PhoneType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tutorial.Person.PhoneType").enummodule
  AddressBook = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("tutorial.AddressBook").msgclass
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fluent-plugin-formatter-protobuf-0.5.0 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.4.0 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.3.0 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.2.0 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.1.1 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.1.0 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.0.5 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.0.4 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.0.3 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.0.2 test/proto/addressbook_pb.rb
fluent-plugin-formatter-protobuf-0.0.1 test/proto/addressbook_pb.rb