This code sample can be used to create a glossary by using Google Cloud Cloud Translation API (v3).
A glossary is a custom dictionary the Cloud Translation API (v3) uses to consistently translate business's domain specific terminology.
Make sure a glossary file is prepared and uploaded to a Cloud Storage bucket in the same Google Cloud project. For more information about preparing a glossary file, see Creating and using glossaries (Advanced).
For a comprehensive collection of ABAP SDK for Google Cloud code samples, see the GoogleCloudPlatform/google-cloud-abap/abap-sdk /ZGOOG_SDK_DOCS_SAMPLES repository on GitHub.