public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) {
    ListGlossariesRequest request =
        ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build();
    return listGlossaries(request);
  }
Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
  String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
  String filter = "filter-1274492040";
  for (Glossary element :
      translationServiceClient.listGlossaries(parent, filter).iterateAll()) {
    // doThingsWith(element);
  }
}
}</pre>

@param parent Required. The name of the project from which to list all of the glossaries.
@param filter Optional. Filter specifying constraints of a list operation. Specify the
    constraint by the format of "key=value", where key must be "src" or "tgt", and the value
    must be a valid language code. For multiple restrictions, concatenate them by "AND"
    (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used
    here, which means using 'en-US' and 'en' can lead to different results, which depends on
    the language code you used when you create the glossary. For the unidirectional glossaries,
    the "src" and "tgt" add restrictions on the source and target language code separately. For
    the equivalent term set glossaries, the "src" and/or "tgt" add restrictions on the term
    set. For example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries
    which exactly match the source language code as "en-US" and the target language code
    "zh-CN", but all equivalent term set glossaries which contain "en-US" and "zh-CN" in their
    language set will be picked. If missing, no filtering is performed.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java