code: public final Intent createIntent(ProjectAgentName parent, Intent intent) {
  
      CreateIntentRequest request =
          CreateIntentRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .setIntent(intent)
              .build();
      return createIntent(request);
    }
docs: Creates an intent in the specified agent.
  
  <p>Sample code:
  
  <pre><code>
  try (IntentsClient intentsClient = IntentsClient.create()) {
  ProjectAgentName parent = ProjectAgentName.of("[PROJECT]");
  Intent intent = Intent.newBuilder().build();
  Intent response = intentsClient.createIntent(parent, intent);
  }
  </code></pre>
  
  @param parent Required. The agent to create a intent for. Format: `projects/&lt;Project
  ID&gt;/agent`.
  @param intent Required. The intent to create.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails