Skip to content

Commit a34d3dd

Browse files
authored
chore: add google/shopping/type/types.proto when generating shopping APIs (#2414)
* chore: add `google/shopping/type/types.proto` when generating shopping APIs. * do not copy types.proto
1 parent 62ebefa commit a34d3dd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

library_generation/generate_library.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ case "${proto_path}" in
182182
removed_proto="google/rpc/http.proto"
183183
proto_files="${proto_files//${removed_proto}/}"
184184
;;
185+
"google/shopping"*)
186+
# this proto is included in //google/shopping/css/v1:google-cloud-shopping-css-v1-java
187+
# and //google/shopping/merchant/inventories/v1beta:google-cloud-merchant-inventories-v1beta-java
188+
# and //google/shopping/merchant/reports/v1beta:google-cloud-merchant-reports-v1beta-java
189+
proto_files="${proto_files} google/shopping/type/types.proto"
190+
;;
185191
esac
186192
# download gapic-generator-java, protobuf and grpc plugin.
187193
download_tools "${gapic_generator_version}" "${protobuf_version}" "${grpc_version}" "${os_architecture}"
@@ -285,7 +291,8 @@ case "${proto_path}" in
285291
esac
286292
# copy proto files to proto-*/src/main/proto
287293
for proto_src in ${proto_files}; do
288-
if [[ "${proto_src}" == "google/cloud/common/operation_metadata.proto" ]]; then
294+
if [[ "${proto_src}" == "google/cloud/common/operation_metadata.proto" ]] ||
295+
[[ "${proto_src}" == "google/shopping/type/types.proto" ]]; then
289296
continue
290297
fi
291298
mkdir -p "${temp_destination_path}/proto-${folder_name}/src/main/proto"

0 commit comments

Comments
 (0)