code: public final ListGlossariesPagedResponse listGlossaries(String parent, String filter) {
      if (!parent.isEmpty()) {
        LOCATION_PATH_TEMPLATE.validate(parent, "listGlossaries");
      }
      ListGlossariesRequest request =
          ListGlossariesRequest.newBuilder().setParent(parent).setFilter(filter).build();
      return listGlossaries(request);
    }
docs: Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.
  
  <p>Sample code:
  
  <pre><code>
  try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
  String formattedParent = TranslationServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
  String filter = "";
  for (Glossary element : translationServiceClient.listGlossaries(formattedParent, filter).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></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. For example,
  `tags.glossary_name="products&#42;"`. If missing, no filtering is performed.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails