Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 32b3fa9

Browse files
yoshi-automationcallmehiphop
authored andcommitted
fix: update protobuf options for product sets (#462)
1 parent d7c8bd1 commit 32b3fa9

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

protos/google/cloud/vision/v1/product_search.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import "google/cloud/vision/v1/geometry.proto";
2121
import "google/cloud/vision/v1/product_search_service.proto";
2222
import "google/protobuf/timestamp.proto";
2323
import "google/api/annotations.proto";
24+
import "google/api/resource.proto";
2425

2526
option cc_enable_arenas = true;
2627
option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision";
@@ -39,7 +40,9 @@ message ProductSearchParams {
3940
//
4041
// Format is:
4142
// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
42-
string product_set = 6;
43+
string product_set = 6 [(google.api.resource_reference) = {
44+
type: "vision.googleapis.com/ProductSet"
45+
}];
4346

4447
// The list of product categories to search in. Currently, we only consider
4548
// the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",

protos/google/cloud/vision/v1/product_search_service.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ service ProductSearch {
260260
option (google.api.http) = {
261261
get: "/v1/{name=projects/*/locations/*/products/*/referenceImages/*}"
262262
};
263+
option (google.api.method_signature) = "name";
263264
}
264265

265266
// Adds a Product to the specified ProductSet. If the Product is already

protos/protos.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,10 @@
920920
},
921921
"productSet": {
922922
"type": "string",
923-
"id": 6
923+
"id": 6,
924+
"options": {
925+
"(google.api.resource_reference).type": "vision.googleapis.com/ProductSet"
926+
}
924927
},
925928
"productCategories": {
926929
"rule": "repeated",
@@ -1126,7 +1129,8 @@
11261129
"requestType": "GetReferenceImageRequest",
11271130
"responseType": "ReferenceImage",
11281131
"options": {
1129-
"(google.api.http).get": "/v1/{name=projects/*/locations/*/products/*/referenceImages/*}"
1132+
"(google.api.http).get": "/v1/{name=projects/*/locations/*/products/*/referenceImages/*}",
1133+
"(google.api.method_signature)": "name"
11301134
}
11311135
},
11321136
"AddProductToProductSet": {

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-10-01T11:38:30.509743Z",
2+
"updateTime": "2019-10-10T11:36:24.226193Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.37.1",
8-
"dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80"
7+
"version": "0.38.0",
8+
"dockerImage": "googleapis/artman@sha256:0d2f8d429110aeb8d82df6550ef4ede59d40df9062d260a1580fce688b0512bf"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "ce3c574d1266026cebea3a893247790bd68191c2",
16-
"internalRef": "272147209"
15+
"sha": "10f91fa12f70e8e0209a45fc10807ed1f77c7e4e",
16+
"internalRef": "273826591"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)