pb: run Go and Java genproto.sh scripts
This commit is contained in:
parent
b27a7eb36a
commit
1b61b97be3
5 changed files with 1467 additions and 868 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -64,6 +64,10 @@ message Product {
|
||||||
string description = 3;
|
string description = 3;
|
||||||
string picture = 4;
|
string picture = 4;
|
||||||
Money price_usd = 5;
|
Money price_usd = 5;
|
||||||
|
|
||||||
|
// Categories such as "vintage" or "gardening" that can be used to look up
|
||||||
|
// other related products.
|
||||||
|
repeated string categories = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListProductsResponse {
|
message ListProductsResponse {
|
||||||
|
@ -218,18 +222,18 @@ message PlaceOrderResponse {
|
||||||
OrderResult order = 1;
|
OrderResult order = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------Ads service------------------
|
// ------------Ad service------------------
|
||||||
|
|
||||||
service AdsService {
|
service AdService {
|
||||||
rpc GetAds(AdsRequest) returns (AdsResponse) {}
|
rpc GetAds(AdRequest) returns (AdResponse) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
message AdsRequest {
|
message AdRequest {
|
||||||
// List of important key words from the current page describing the context.
|
// List of important key words from the current page describing the context.
|
||||||
repeated string context_keys = 1;
|
repeated string context_keys = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AdsResponse {
|
message AdResponse {
|
||||||
repeated Ad ads = 1;
|
repeated Ad ads = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,10 @@ message Product {
|
||||||
string description = 3;
|
string description = 3;
|
||||||
string picture = 4;
|
string picture = 4;
|
||||||
Money price_usd = 5;
|
Money price_usd = 5;
|
||||||
|
|
||||||
|
// Categories such as "vintage" or "gardening" that can be used to look up
|
||||||
|
// other related products.
|
||||||
|
repeated string categories = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListProductsResponse {
|
message ListProductsResponse {
|
||||||
|
@ -218,18 +222,18 @@ message PlaceOrderResponse {
|
||||||
OrderResult order = 1;
|
OrderResult order = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------Ads service------------------
|
// ------------Ad service------------------
|
||||||
|
|
||||||
service AdsService {
|
service AdService {
|
||||||
rpc GetAds(AdsRequest) returns (AdsResponse) {}
|
rpc GetAds(AdRequest) returns (AdResponse) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
message AdsRequest {
|
message AdRequest {
|
||||||
// List of important key words from the current page describing the context.
|
// List of important key words from the current page describing the context.
|
||||||
repeated string context_keys = 1;
|
repeated string context_keys = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AdsResponse {
|
message AdResponse {
|
||||||
repeated Ad ads = 1;
|
repeated Ad ads = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue