w ߴͳػೳ͕ͳ͍ͨΊ୭ͰಡΈॻ͖͍͢͠ w γϦΞϥΠζϑΥʔϚοτ +40/ͳͲͷผϑΥʔϚοτͷมߋՄೳ w σϑΝΫτͷ௨৴ϑϨʔϜϫʔΫ H31$ syntax = "proto3"; package example; import "google/api/annotations.proto"; // Service for handling books. service BookService { // Get book rpc GetBook (GetBookRequest) returns (Book) {} // Create book rpc CreateBook (CreateBookRequest) returns (Book) {} } // Request for get book message GetBookRequest { string id = 1; } // Request for get book message CreateBookRequest { string name = 1; } // Book data message Book { string id = 1; string name = 2; }
handling books. service BookService { // Get book rpc GetBook (GetBookRequest) returns (Book) {} // Create book rpc CreateBook (CreateBookRequest) returns (Book) {} } // Request for get book message GetBookRequest { string id = 1; // Book ID } // Request for get book message CreateBookRequest { string name = 1; // Book name } // Book data message Book { string id = 1; // Book ID string name = 2; // Book name }
QSPUPDHFOQZUIPO w QSPUPDHFOEBSU w QSPUPDHFOʜ w ཱͭπʔϧ w QSPUPDHFOWBMJEBUFఆٛʹόϦσʔγϣϯΛՃ w QSPUPDHFOMJOUఆٛͷ-JOUΛ࣮ߦ w QSPUPDHFOKTPOTDIFNBఆ͔ٛΒ+40/4DIFNBΛੜ w QSPUPDHFOVNMఆ͔ٛΒ6.-Λੜ