Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Latest commit

 

History

History
86 lines (60 loc) · 1.09 KB

File metadata and controls

86 lines (60 loc) · 1.09 KB

Author

Definition

package library.domain;

message Author {
  string  id = 1;
  string  full_name = 2;
  repeated library.domain.Book  bibliography = 3;
}

Dependencies

  • Field bibliography: Book

Book

Definition

package library.domain;

message Book {
  string  isbn = 1;
  string  title = 2;
  library.domain.Author  author = 3;
  library.domain.Publisher  publisher = 4;
  library.domain.Genre  genre = 5;
}

Dependencies


Publisher

Definition

package library.domain;

message Publisher {
  string  id = 1;
  string  name = 2;
  string  address = 3;
}

Dependencies

None


Genre

Definition

package library.domain;

enum Genre {
  UNKNOWN = 0;
  FICTION = 1;
  NON_FICTION = 2;
  SCI_FI = 3;
  HISTORY = 4;
}