code: public final Topic createTopic(ProjectTopicName name) {
  
      Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build();
      return createTopic(request);
    }
docs: Creates the given topic with the given name. See the &lt;a
  href="https://cloud.google.com/pubsub/docs/admin#resource_names"&gt; resource name
  rules&lt;/a&gt;.
  
  <p>Sample code:
  
  <pre><code>
  try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
  ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
  Topic response = topicAdminClient.createTopic(name);
  }
  </code></pre>
  
  @param name The name of the topic. It must have the format
  `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only
  letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`),
  tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in
  length, and it must not start with `"goog"`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails