Skip to content

Commit

Permalink
chore: add google/shopping/type/types.proto when generating shoppin…
Browse files Browse the repository at this point in the history
…g APIs (#2414)

* chore: add `google/shopping/type/types.proto` when generating shopping APIs.

* do not copy types.proto
  • Loading branch information
JoeWang1127 authored Jan 25, 2024
1 parent 62ebefa commit a34d3dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion library_generation/generate_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ case "${proto_path}" in
removed_proto="google/rpc/http.proto"
proto_files="${proto_files//${removed_proto}/}"
;;
"google/shopping"*)
# this proto is included in //google/shopping/css/v1:google-cloud-shopping-css-v1-java
# and //google/shopping/merchant/inventories/v1beta:google-cloud-merchant-inventories-v1beta-java
# and //google/shopping/merchant/reports/v1beta:google-cloud-merchant-reports-v1beta-java
proto_files="${proto_files} google/shopping/type/types.proto"
;;
esac
# download gapic-generator-java, protobuf and grpc plugin.
download_tools "${gapic_generator_version}" "${protobuf_version}" "${grpc_version}" "${os_architecture}"
Expand Down Expand Up @@ -285,7 +291,8 @@ case "${proto_path}" in
esac
# copy proto files to proto-*/src/main/proto
for proto_src in ${proto_files}; do
if [[ "${proto_src}" == "google/cloud/common/operation_metadata.proto" ]]; then
if [[ "${proto_src}" == "google/cloud/common/operation_metadata.proto" ]] ||
[[ "${proto_src}" == "google/shopping/type/types.proto" ]]; then
continue
fi
mkdir -p "${temp_destination_path}/proto-${folder_name}/src/main/proto"
Expand Down

0 comments on commit a34d3dd

Please sign in to comment.