Search in sources :

Example 1 with InputName

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());
    }
}
Also used : Input(com.google.cloud.video.livestream.v1.Input) InputName(com.google.cloud.video.livestream.v1.InputName) LivestreamServiceClient(com.google.cloud.video.livestream.v1.LivestreamServiceClient)

Aggregations

Input (com.google.cloud.video.livestream.v1.Input)1 InputName (com.google.cloud.video.livestream.v1.InputName)1 LivestreamServiceClient (com.google.cloud.video.livestream.v1.LivestreamServiceClient)1