code: public final LogSink createSink(ParentName parent, LogSink sink) {
  
      CreateSinkRequest request =
          CreateSinkRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .setSink(sink)
              .build();
      return createSink(request);
    }
docs: Creates a sink that exports specified log entries to a destination. The export of
  newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not
  permitted to write to the destination. A sink can export log entries only from the resource
  owning the sink.
  
  <p>Sample code:
  
  <pre><code>
  try (ConfigClient configClient = ConfigClient.create()) {
  ParentName parent = ProjectName.of("[PROJECT]");
  LogSink sink = LogSink.newBuilder().build();
  LogSink response = configClient.createSink(parent, sink);
  }
  </code></pre>
  
  @param parent Required. The resource in which to create the sink:
  <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
  "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
  <p>Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
  @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not
  already in use.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails