code: public ServiceCall<Grammar> getGrammar(GetGrammarOptions getGrammarOptions) {
      Validator.notNull(getGrammarOptions, "getGrammarOptions cannot be null");
      String[] pathSegments = { "v1/customizations", "grammars" };
      String[] pathParameters = { getGrammarOptions.customizationId(), getGrammarOptions.grammarName() };
      RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
          pathParameters));
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("speech_to_text", "v1", "getGrammar");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(Grammar.class));
    }
docs: Get a grammar.
  
  Gets information about a grammar from a custom language model. The information includes the total number of
  out-of-vocabulary (OOV) words, name, and status of the grammar. You must use credentials for the instance of the
  service that owns a model to list its grammars.
  
  **See also:** [Listing grammars from a custom language model](https://cloud.ibm.com/docs/services/speech-to-text/).
  
  @param getGrammarOptions the {@link GetGrammarOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link Grammar}