public final Event createEvent(ChannelName parent, Event event, String eventId) {
    CreateEventRequest request =
        CreateEventRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .setEvent(event)
            .setEventId(eventId)
            .build();
    return createEvent(request);
  }
Creates an event with the provided unique ID in the specified channel.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
  ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
  Event event = Event.newBuilder().build();
  String eventId = "eventId-1376502443";
  Event response = livestreamServiceClient.createEvent(parent, event, eventId);
}
}</pre>

@param parent Required. The parent channel for the resource, in the form of:
    `projects/{project}/locations/{location}/channels/{channelId}`.
@param event Required. The event resource to be created.
@param eventId Required. The ID of the event resource to be created. This value must be 1-63
    characters, begin and end with `[a-z0-9]`, could contain dashes (-) in between.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java