Skip to content

Commit

Permalink
build: Rename the Schema message for repeated fields also
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Sep 24, 2024
1 parent d535e60 commit 0ee5d10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/Google.Cloud.AIPlatform.V1/pregeneration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sed -i 's/^\( *\)Schema/\1OpenApiSchema/g' $GOOGLEAPIS/google/cloud/aiplatform/v
sed -i 's/^message Schema/message OpenApiSchema/g' $GOOGLEAPIS/google/cloud/aiplatform/v1/*.proto
sed -i 's/map<string, Schema>/map<string, OpenApiSchema>/g' $GOOGLEAPIS/google/cloud/aiplatform/v1/*.proto
sed -i 's/ optional Schema / optional OpenApiSchema /g' $GOOGLEAPIS/google/cloud/aiplatform/v1/*.proto
sed -i 's/ repeated Schema / repeated OpenApiSchema /g' $GOOGLEAPIS/google/cloud/aiplatform/v1/*.proto

# Remove the pre-deprecated field in QueryDeployedModelsResponse
sed -i '/repeated DeployedModel deployed_models = 1 \[deprecated = true\]/d' \
Expand Down
1 change: 1 addition & 0 deletions apis/Google.Cloud.AIPlatform.V1Beta1/pregeneration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sed -i 's/^\( *\)Schema/\1OpenApiSchema/g' $GOOGLEAPIS/google/cloud/aiplatform/v
sed -i 's/^message Schema/message OpenApiSchema/g' $GOOGLEAPIS/google/cloud/aiplatform/v1beta1/*.proto
sed -i 's/map<string, Schema>/map<string, OpenApiSchema>/g' $GOOGLEAPIS/google/cloud/aiplatform/v1beta1/*.proto
sed -i 's/ optional Schema / optional OpenApiSchema /g' $GOOGLEAPIS/google/cloud/aiplatform/v1beta1/*.proto
sed -i 's/ repeated Schema / repeated OpenApiSchema /g' $GOOGLEAPIS/google/cloud/aiplatform/v1/*.proto

# Remove the pre-deprecated field in QueryDeployedModelsResponse
sed -i '/repeated DeployedModel deployed_models = 1 \[deprecated = true\]/d' \
Expand Down

0 comments on commit 0ee5d10

Please sign in to comment.