/
programmernan
/
grpc-example
Обзор
Документация
Войти
/
programmernan
/
grpc-example
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main/proto/User.proto
26 строк
592 B
Denis Bakonin
proto fix
26 фев 2026, 19:50
26 фев 2026, 19:50
689f315
Код
Авторство
О чём код?
syntax = "proto3"; package model; option java_package = "ru.sberbank.grpc.server.model"; option java_outer_classname = "UserProto"; import "google/protobuf/empty.proto"; import "google/protobuf/wrappers.proto"; message User { int64 id = 1; string name = 2; string email = 3; } message Users { repeated User user = 1; } service UsersService { rpc FindById(google.protobuf.Int64Value) returns (User) {} rpc FindAll(google.protobuf.Empty) returns (Users) {} rpc FindByName(google.protobuf.StringValue) returns (User) {} rpc AddUser(User) returns (User) {} }