code: public final Intent updateIntent(Intent intent, String languageCode) {
  
      UpdateIntentRequest request =
          UpdateIntentRequest.newBuilder().setIntent(intent).setLanguageCode(languageCode).build();
      return updateIntent(request);
    }
docs: Updates the specified intent.
  
  <p>Sample code:
  
  <pre><code>
  try (IntentsClient intentsClient = IntentsClient.create()) {
  Intent intent = Intent.newBuilder().build();
  String languageCode = "";
  Intent response = intentsClient.updateIntent(intent, languageCode);
  }
  </code></pre>
  
  @param intent Required. The intent to update.
  @param languageCode Optional. The language of training phrases, parameters and rich messages
  defined in `intent`. If not specified, the agent's default language is used. [Many
  languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/language) are
  supported. Note: languages must be enabled in the agent before they can be used.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails