lib/nuva/Vaccine_pb.rb in nuva-0.1.7 vs lib/nuva/Vaccine_pb.rb in nuva-0.1.8

- old
+ new

@@ -6,24 +6,24 @@ require 'google/protobuf/timestamp_pb' require_relative 'InjectionMethod_pb' require_relative 'Code_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Vaccine.proto", :syntax => :proto2) do + add_file("Vaccine.proto", :syntax => :proto3) do add_message "nuva.Vaccine" do - required :id, :string, 1 - required :name, :string, 2 - required :short_description, :string, 3 - required :description, :string, 4 + optional :id, :string, 1 + optional :name, :string, 2 + optional :short_description, :string, 3 + optional :description, :string, 4 repeated :injection_methods, :enum, 5, "nuva.InjectionMethod" - required :code, :uint32, 6 + optional :code, :uint32, 6 repeated :codes, :message, 7, "nuva.Code" repeated :valence_ids, :string, 8 repeated :other_names, :string, 9 - required :generic, :bool, 10 + optional :generic, :bool, 10 optional :replaced_by_id, :string, 11 - required :created_at, :message, 16, "google.protobuf.Timestamp" - required :updated_at, :message, 17, "google.protobuf.Timestamp" + optional :created_at, :message, 16, "google.protobuf.Timestamp" + optional :updated_at, :message, 17, "google.protobuf.Timestamp" end end end module Nuva