use of com.google.cloud.video.livestream.v1.InputName in project java-docs-samples by GoogleCloudPlatform.
the class GetInput method getInput.
public static void getInput(String projectId, String location, String inputId) throws IOException {
// the "close" method on the client to safely clean up any remaining background resources.
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
InputName name = InputName.of(projectId, location, inputId);
Input response = livestreamServiceClient.getInput(name);
System.out.println("Input: " + response.getName());
}
}
Aggregations