spec/proto/test.pb.rb in protobuf-1.1.3 vs spec/proto/test.pb.rb in protobuf-1.3.0
- old
+ new
@@ -10,15 +10,15 @@
define :ENABLED, 1
define :DISABLED, 2
define :DELETED, 3
end
class ResourceFindRequest < ::Protobuf::Message
- optional :string, :name, 1
+ required :string, :name, 1
optional :bool, :active, 2
end
class Resource < ::Protobuf::Message
- optional :string, :name, 1
+ required :string, :name, 1
optional :int64, :date_created, 2
optional :StatusType, :status, 3
repeated :StatusType, :repeated_enum, 4
end
class Nested < ::Protobuf::Message
@@ -26,6 +26,6 @@
optional :Resource, :resource, 2
repeated :Resource, :multiple_resources, 3
optional :StatusType, :status, 4
end
end
-end
\ No newline at end of file
+end