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

Commit

Permalink
build: introduce gapic metadata JSON (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Jan 6, 2021
1 parent b5fe1ac commit 7263258
Show file tree
Hide file tree
Showing 6 changed files with 897 additions and 2 deletions.
283 changes: 283 additions & 0 deletions src/v1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.vision.v1",
"libraryPackage": "@google-cloud/vision",
"services": {
"ImageAnnotator": {
"clients": {
"grpc": {
"libraryClient": "ImageAnnotatorClient",
"rpcs": {
"BatchAnnotateImages": {
"methods": [
"batchAnnotateImages"
]
},
"BatchAnnotateFiles": {
"methods": [
"batchAnnotateFiles"
]
},
"AsyncBatchAnnotateImages": {
"methods": [
"asyncBatchAnnotateImages"
]
},
"AsyncBatchAnnotateFiles": {
"methods": [
"asyncBatchAnnotateFiles"
]
}
}
},
"grpc-fallback": {
"libraryClient": "ImageAnnotatorClient",
"rpcs": {
"BatchAnnotateImages": {
"methods": [
"batchAnnotateImages"
]
},
"BatchAnnotateFiles": {
"methods": [
"batchAnnotateFiles"
]
},
"AsyncBatchAnnotateImages": {
"methods": [
"asyncBatchAnnotateImages"
]
},
"AsyncBatchAnnotateFiles": {
"methods": [
"asyncBatchAnnotateFiles"
]
}
}
}
}
},
"ProductSearch": {
"clients": {
"grpc": {
"libraryClient": "ProductSearchClient",
"rpcs": {
"CreateProductSet": {
"methods": [
"createProductSet"
]
},
"GetProductSet": {
"methods": [
"getProductSet"
]
},
"UpdateProductSet": {
"methods": [
"updateProductSet"
]
},
"DeleteProductSet": {
"methods": [
"deleteProductSet"
]
},
"CreateProduct": {
"methods": [
"createProduct"
]
},
"GetProduct": {
"methods": [
"getProduct"
]
},
"UpdateProduct": {
"methods": [
"updateProduct"
]
},
"DeleteProduct": {
"methods": [
"deleteProduct"
]
},
"CreateReferenceImage": {
"methods": [
"createReferenceImage"
]
},
"DeleteReferenceImage": {
"methods": [
"deleteReferenceImage"
]
},
"GetReferenceImage": {
"methods": [
"getReferenceImage"
]
},
"AddProductToProductSet": {
"methods": [
"addProductToProductSet"
]
},
"RemoveProductFromProductSet": {
"methods": [
"removeProductFromProductSet"
]
},
"ImportProductSets": {
"methods": [
"importProductSets"
]
},
"PurgeProducts": {
"methods": [
"purgeProducts"
]
},
"ListProductSets": {
"methods": [
"listProductSets",
"listProductSetsStream",
"listProductSetsAsync"
]
},
"ListProducts": {
"methods": [
"listProducts",
"listProductsStream",
"listProductsAsync"
]
},
"ListReferenceImages": {
"methods": [
"listReferenceImages",
"listReferenceImagesStream",
"listReferenceImagesAsync"
]
},
"ListProductsInProductSet": {
"methods": [
"listProductsInProductSet",
"listProductsInProductSetStream",
"listProductsInProductSetAsync"
]
}
}
},
"grpc-fallback": {
"libraryClient": "ProductSearchClient",
"rpcs": {
"CreateProductSet": {
"methods": [
"createProductSet"
]
},
"GetProductSet": {
"methods": [
"getProductSet"
]
},
"UpdateProductSet": {
"methods": [
"updateProductSet"
]
},
"DeleteProductSet": {
"methods": [
"deleteProductSet"
]
},
"CreateProduct": {
"methods": [
"createProduct"
]
},
"GetProduct": {
"methods": [
"getProduct"
]
},
"UpdateProduct": {
"methods": [
"updateProduct"
]
},
"DeleteProduct": {
"methods": [
"deleteProduct"
]
},
"CreateReferenceImage": {
"methods": [
"createReferenceImage"
]
},
"DeleteReferenceImage": {
"methods": [
"deleteReferenceImage"
]
},
"GetReferenceImage": {
"methods": [
"getReferenceImage"
]
},
"AddProductToProductSet": {
"methods": [
"addProductToProductSet"
]
},
"RemoveProductFromProductSet": {
"methods": [
"removeProductFromProductSet"
]
},
"ImportProductSets": {
"methods": [
"importProductSets"
]
},
"PurgeProducts": {
"methods": [
"purgeProducts"
]
},
"ListProductSets": {
"methods": [
"listProductSets",
"listProductSetsStream",
"listProductSetsAsync"
]
},
"ListProducts": {
"methods": [
"listProducts",
"listProductsStream",
"listProductsAsync"
]
},
"ListReferenceImages": {
"methods": [
"listReferenceImages",
"listReferenceImagesStream",
"listReferenceImagesAsync"
]
},
"ListProductsInProductSet": {
"methods": [
"listProductsInProductSet",
"listProductsInProductSetStream",
"listProductsInProductSetAsync"
]
}
}
}
}
}
}
}
33 changes: 33 additions & 0 deletions src/v1p1beta1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.vision.v1p1beta1",
"libraryPackage": "@google-cloud/vision",
"services": {
"ImageAnnotator": {
"clients": {
"grpc": {
"libraryClient": "ImageAnnotatorClient",
"rpcs": {
"BatchAnnotateImages": {
"methods": [
"batchAnnotateImages"
]
}
}
},
"grpc-fallback": {
"libraryClient": "ImageAnnotatorClient",
"rpcs": {
"BatchAnnotateImages": {
"methods": [
"batchAnnotateImages"
]
}
}
}
}
}
}
}
43 changes: 43 additions & 0 deletions src/v1p2beta1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.vision.v1p2beta1",
"libraryPackage": "@google-cloud/vision",
"services": {
"ImageAnnotator": {
"clients": {
"grpc": {
"libraryClient": "ImageAnnotatorClient",
"rpcs": {
"BatchAnnotateImages": {
"methods": [
"batchAnnotateImages"
]
},
"AsyncBatchAnnotateFiles": {
"methods": [
"asyncBatchAnnotateFiles"
]
}
}
},
"grpc-fallback": {
"libraryClient": "ImageAnnotatorClient",
"rpcs": {
"BatchAnnotateImages": {
"methods": [
"batchAnnotateImages"
]
},
"AsyncBatchAnnotateFiles": {
"methods": [
"asyncBatchAnnotateFiles"
]
}
}
}
}
}
}
}
Loading

0 comments on commit 7263258

Please sign in to comment.