package jnb;

option java_package = "com.ociweb.jnb.protobuf.gen";
option java_outer_classname = "CourseProtos";

message Person {
  enum PhoneType {
    HOME = 0;
    WORK = 1;
    MOBILE = 2;
    OTHER = 3;
  }

  message Phone {
    required int32 id = 1;
    required string number = 2;
    required PhoneType type = 3 [default = HOME];
  }

  required int32 id = 1;
  required string first_name = 2;
  required string last_name = 3;
  optional string email = 4;
  repeated Phone phone = 5;
}

message Course {
  required int32 id = 1;
  required string number = 2;
  required string name = 3;
  required Person instructor = 4;
  optional string room_number = 5;
  repeated Person student = 6;
}

message CourseList {
  repeated string number = 1;
}
