syntax = "proto3"; package ozon.products; import "google/protobuf/timestamp.proto"; option go_package = "./ozon/products"; service ProductsService { // Retrieves a list of products based on the provided request. rpc GetListOfProducts(GetListOfProductsRequest) returns (stream Product); } message GetListOfProductsRequest{ } message Product { int64 id = 1; string offer_id = 2; Stocks stocks = 3; repeated string barcodes = 4; repeated Status statuses = 5; message Status { string status_name = 1; } message Stocks{ repeated Stock stocks = 1; bool has_stock = 2; } message Stock{ int64 present = 1; int64 reserved = 2; int64 sku = 3; string source = 4; } }