Skip to content

Commit

Permalink
Add replacement configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian committed Feb 20, 2020
1 parent b791692 commit 780aca3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,25 @@ def generate_client(service, version, config_path, package, include_gapic=True):
# due to the default project running datastore
'.kokoro/presubmit/integration.cfg'
])

# Mark v1beta1 as deprecated
s.replace(
"google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreClient.java",
"public class FirestoreClient",
"@Deprecated\npublic class FirestoreClient"
)
s.replace(
"google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreClient.java",
"\\*\\/\\n@Generated\\(\"by gapic-generator\"\\)",
"* @deprecated Use com.google.cloud.firestore.v1.FirestoreClient instead\n */\n@Generated(\"by gapic-generator\")"
)
s.replace(
"google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreSettings.java",
"public class FirestoreSettings",
"@Deprecated\npublic class FirestoreSettings"
)
s.replace(
"google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1beta1/FirestoreSettings.java",
" \\*\\/\\n@Generated\\(\"by gapic-generator\"\\)",
"* @deprecated Use com.google.cloud.firestore.v1.FirestoreSettings instead\n */\n@Generated(\"by gapic-generator\")"
)

0 comments on commit 780aca3

Please sign in to comment.