From ac8f9a0796fdc4222ec4f4864c12f6630aff6594 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 May 2022 20:08:12 +0000 Subject: [PATCH] chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#48) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 --- .../v1/LivestreamServiceClient.java | 154 +++++++++++++++++- .../v1/LivestreamServiceSettings.java | 4 +- .../video/livestream/v1/package-info.java | 4 +- .../GrpcLivestreamServiceCallableFactory.java | 2 +- .../v1/stub/GrpcLivestreamServiceStub.java | 2 +- .../v1/stub/LivestreamServiceStub.java | 2 +- .../stub/LivestreamServiceStubSettings.java | 4 +- .../v1/LivestreamServiceClientTest.java | 2 +- .../livestream/v1/MockLivestreamService.java | 2 +- .../v1/MockLivestreamServiceImpl.java | 2 +- .../video/livestream/v1/AudioFormat.java | 2 + .../video/livestream/v1/AudioStream.java | 4 + .../livestream/v1/AudioStreamProperty.java | 2 + .../cloud/video/livestream/v1/Channel.java | 23 ++- .../video/livestream/v1/ChannelName.java | 2 +- .../v1/ChannelOperationResponse.java | 2 + .../video/livestream/v1/ChannelOrBuilder.java | 7 +- .../livestream/v1/CreateChannelRequest.java | 2 + .../livestream/v1/CreateEventRequest.java | 2 + .../livestream/v1/CreateInputRequest.java | 2 + .../livestream/v1/DeleteChannelRequest.java | 2 + .../livestream/v1/DeleteEventRequest.java | 2 + .../livestream/v1/DeleteInputRequest.java | 2 + .../video/livestream/v1/ElementaryStream.java | 11 +- .../cloud/video/livestream/v1/Event.java | 26 +-- .../cloud/video/livestream/v1/EventName.java | 2 +- .../video/livestream/v1/EventOrBuilder.java | 7 +- .../livestream/v1/GetChannelRequest.java | 2 + .../video/livestream/v1/GetEventRequest.java | 2 + .../video/livestream/v1/GetInputRequest.java | 2 + .../cloud/video/livestream/v1/Input.java | 23 ++- .../video/livestream/v1/InputAttachment.java | 4 + .../cloud/video/livestream/v1/InputName.java | 2 +- .../video/livestream/v1/InputOrBuilder.java | 7 +- .../livestream/v1/InputStreamProperty.java | 2 + .../livestream/v1/ListChannelsRequest.java | 2 + .../livestream/v1/ListChannelsResponse.java | 2 + .../livestream/v1/ListEventsRequest.java | 2 + .../livestream/v1/ListEventsResponse.java | 2 + .../livestream/v1/ListInputsRequest.java | 2 + .../livestream/v1/ListInputsResponse.java | 2 + .../video/livestream/v1/LocationName.java | 2 +- .../cloud/video/livestream/v1/LogConfig.java | 2 + .../cloud/video/livestream/v1/Manifest.java | 2 + .../cloud/video/livestream/v1/MuxStream.java | 2 + .../livestream/v1/OperationMetadata.java | 2 + .../livestream/v1/PreprocessingConfig.java | 6 + .../video/livestream/v1/SegmentSettings.java | 2 + .../video/livestream/v1/SpriteSheet.java | 2 + .../livestream/v1/StartChannelRequest.java | 2 + .../livestream/v1/StopChannelRequest.java | 2 + .../cloud/video/livestream/v1/TextStream.java | 2 + .../livestream/v1/UpdateChannelRequest.java | 2 + .../livestream/v1/UpdateInputRequest.java | 2 + .../video/livestream/v1/VideoFormat.java | 6 +- .../video/livestream/v1/VideoStream.java | 20 ++- .../livestream/v1/VideoStreamProperty.java | 2 + 57 files changed, 335 insertions(+), 57 deletions(-) diff --git a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java index fa63015..70ee22a 100644 --- a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java +++ b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,6 +50,8 @@ * calls that map to API methods. Sample code to get started: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * Channel response = livestreamServiceClient.getChannel(name); @@ -86,6 +88,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * LivestreamServiceSettings livestreamServiceSettings = * LivestreamServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,6 +101,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * LivestreamServiceSettings livestreamServiceSettings = * LivestreamServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * LivestreamServiceClient livestreamServiceClient = @@ -176,6 +182,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Channel channel = Channel.newBuilder().build(); @@ -210,6 +218,8 @@ public final OperationFuturecreateChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Channel channel = Channel.newBuilder().build(); @@ -244,6 +254,8 @@ public final OperationFuturecreateChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateChannelRequest request = * CreateChannelRequest.newBuilder() @@ -271,6 +283,8 @@ public final OperationFuturecreateChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateChannelRequest request = * CreateChannelRequest.newBuilder() @@ -298,6 +312,8 @@ public final OperationFuturecreateChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateChannelRequest request = * CreateChannelRequest.newBuilder() @@ -324,6 +340,8 @@ public final UnaryCallablecreateChannelCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Channel element : livestreamServiceClient.listChannels(parent).iterateAll()) { @@ -351,6 +369,8 @@ public final ListChannelsPagedResponse listChannels(LocationName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Channel element : livestreamServiceClient.listChannels(parent).iterateAll()) { @@ -375,6 +395,8 @@ public final ListChannelsPagedResponse listChannels(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListChannelsRequest request = * ListChannelsRequest.newBuilder() @@ -404,6 +426,8 @@ public final ListChannelsPagedResponse listChannels(ListChannelsRequest request) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListChannelsRequest request = * ListChannelsRequest.newBuilder() @@ -434,6 +458,8 @@ public final ListChannelsPagedResponse listChannels(ListChannelsRequest request) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListChannelsRequest request = * ListChannelsRequest.newBuilder() @@ -470,6 +496,8 @@ public final UnaryCallablelistChanne * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * Channel response = livestreamServiceClient.getChannel(name); @@ -493,6 +521,8 @@ public final Channel getChannel(ChannelName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); * Channel response = livestreamServiceClient.getChannel(name); @@ -515,6 +545,8 @@ public final Channel getChannel(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * GetChannelRequest request = * GetChannelRequest.newBuilder() @@ -538,6 +570,8 @@ public final Channel getChannel(GetChannelRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * GetChannelRequest request = * GetChannelRequest.newBuilder() @@ -560,6 +594,8 @@ public final UnaryCallablegetChannelCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * livestreamServiceClient.deleteChannelAsync(name).get(); @@ -583,6 +619,8 @@ public final OperationFuturedeleteChannelAsync(Channe * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); * livestreamServiceClient.deleteChannelAsync(name).get(); @@ -605,6 +643,8 @@ public final OperationFuturedeleteChannelAsync(String * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteChannelRequest request = * DeleteChannelRequest.newBuilder() @@ -631,6 +671,8 @@ public final OperationFuturedeleteChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteChannelRequest request = * DeleteChannelRequest.newBuilder() @@ -657,6 +699,8 @@ public final OperationFuturedeleteChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteChannelRequest request = * DeleteChannelRequest.newBuilder() @@ -682,6 +726,8 @@ public final UnaryCallabledeleteChannelCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * Channel channel = Channel.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -718,6 +764,8 @@ public final OperationFutureupdateChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * UpdateChannelRequest request = * UpdateChannelRequest.newBuilder() @@ -744,6 +792,8 @@ public final OperationFutureupdateChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * UpdateChannelRequest request = * UpdateChannelRequest.newBuilder() @@ -770,6 +820,8 @@ public final OperationFutureupdateChannelAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * UpdateChannelRequest request = * UpdateChannelRequest.newBuilder() @@ -796,6 +848,8 @@ public final UnaryCallableupdateChannelCallabl * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * ChannelOperationResponse response = livestreamServiceClient.startChannelAsync(name).get(); @@ -821,6 +875,8 @@ public final OperationFuturestartC * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); * ChannelOperationResponse response = livestreamServiceClient.startChannelAsync(name).get(); @@ -845,6 +901,8 @@ public final OperationFuturestartC * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * StartChannelRequest request = * StartChannelRequest.newBuilder() @@ -871,6 +929,8 @@ public final OperationFuturestartC * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * StartChannelRequest request = * StartChannelRequest.newBuilder() @@ -897,6 +957,8 @@ public final OperationFuturestartC * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * StartChannelRequest request = * StartChannelRequest.newBuilder() @@ -922,6 +984,8 @@ public final UnaryCallablestartChannelCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * ChannelOperationResponse response = livestreamServiceClient.stopChannelAsync(name).get(); @@ -947,6 +1011,8 @@ public final OperationFuturestopCh * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); * ChannelOperationResponse response = livestreamServiceClient.stopChannelAsync(name).get(); @@ -971,6 +1037,8 @@ public final OperationFuturestopCh * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * StopChannelRequest request = * StopChannelRequest.newBuilder() @@ -997,6 +1065,8 @@ public final OperationFuturestopCh * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * StopChannelRequest request = * StopChannelRequest.newBuilder() @@ -1023,6 +1093,8 @@ public final OperationFuturestopCh * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * StopChannelRequest request = * StopChannelRequest.newBuilder() @@ -1047,6 +1119,8 @@ public final UnaryCallablestopChannelCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Input input = Input.newBuilder().build(); @@ -1080,6 +1154,8 @@ public final OperationFuture createInputAsync( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Input input = Input.newBuilder().build(); @@ -1113,6 +1189,8 @@ public final OperationFuture createInputAsync( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateInputRequest request = * CreateInputRequest.newBuilder() @@ -1140,6 +1218,8 @@ public final OperationFuture createInputAsync( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateInputRequest request = * CreateInputRequest.newBuilder() @@ -1167,6 +1247,8 @@ public final OperationFuture createInputAsync( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateInputRequest request = * CreateInputRequest.newBuilder() @@ -1193,6 +1275,8 @@ public final UnaryCallablecreateInputCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Input element : livestreamServiceClient.listInputs(parent).iterateAll()) { @@ -1218,6 +1302,8 @@ public final ListInputsPagedResponse listInputs(LocationName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Input element : livestreamServiceClient.listInputs(parent).iterateAll()) { @@ -1242,6 +1328,8 @@ public final ListInputsPagedResponse listInputs(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListInputsRequest request = * ListInputsRequest.newBuilder() @@ -1271,6 +1359,8 @@ public final ListInputsPagedResponse listInputs(ListInputsRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListInputsRequest request = * ListInputsRequest.newBuilder() @@ -1300,6 +1390,8 @@ public final UnaryCallablelistInput * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListInputsRequest request = * ListInputsRequest.newBuilder() @@ -1335,6 +1427,8 @@ public final UnaryCallablelistInputsCall * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * InputName name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]"); * Input response = livestreamServiceClient.getInput(name); @@ -1358,6 +1452,8 @@ public final Input getInput(InputName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString(); * Input response = livestreamServiceClient.getInput(name); @@ -1380,6 +1476,8 @@ public final Input getInput(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * GetInputRequest request = * GetInputRequest.newBuilder() @@ -1403,6 +1501,8 @@ public final Input getInput(GetInputRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * GetInputRequest request = * GetInputRequest.newBuilder() @@ -1425,6 +1525,8 @@ public final UnaryCallablegetInputCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * InputName name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]"); * livestreamServiceClient.deleteInputAsync(name).get(); @@ -1448,6 +1550,8 @@ public final OperationFuturedeleteInputAsync(InputNam * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString(); * livestreamServiceClient.deleteInputAsync(name).get(); @@ -1470,6 +1574,8 @@ public final OperationFuturedeleteInputAsync(String n * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteInputRequest request = * DeleteInputRequest.newBuilder() @@ -1495,6 +1601,8 @@ public final OperationFuturedeleteInputAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteInputRequest request = * DeleteInputRequest.newBuilder() @@ -1520,6 +1628,8 @@ public final OperationFuturedeleteInputAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteInputRequest request = * DeleteInputRequest.newBuilder() @@ -1544,6 +1654,8 @@ public final UnaryCallabledeleteInputCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * Input input = Input.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1576,6 +1688,8 @@ public final OperationFuture updateInputAsync( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * UpdateInputRequest request = * UpdateInputRequest.newBuilder() @@ -1602,6 +1716,8 @@ public final OperationFuture updateInputAsync( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * UpdateInputRequest request = * UpdateInputRequest.newBuilder() @@ -1628,6 +1744,8 @@ public final OperationFuture updateInputAsync( *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * UpdateInputRequest request = * UpdateInputRequest.newBuilder() @@ -1653,6 +1771,8 @@ public final UnaryCallableupdateInputCallable() * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * Event event = Event.newBuilder().build(); @@ -1685,6 +1805,8 @@ public final Event createEvent(ChannelName parent, Event event, String eventId) *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); * Event event = Event.newBuilder().build(); @@ -1717,6 +1839,8 @@ public final Event createEvent(String parent, Event event, String eventId) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateEventRequest request = * CreateEventRequest.newBuilder() @@ -1743,6 +1867,8 @@ public final Event createEvent(CreateEventRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * CreateEventRequest request = * CreateEventRequest.newBuilder() @@ -1768,6 +1894,8 @@ public final UnaryCallablecreateEventCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * for (Event element : livestreamServiceClient.listEvents(parent).iterateAll()) { @@ -1793,6 +1921,8 @@ public final ListEventsPagedResponse listEvents(ChannelName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString(); * for (Event element : livestreamServiceClient.listEvents(parent).iterateAll()) { @@ -1817,6 +1947,8 @@ public final ListEventsPagedResponse listEvents(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListEventsRequest request = * ListEventsRequest.newBuilder() @@ -1846,6 +1978,8 @@ public final ListEventsPagedResponse listEvents(ListEventsRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListEventsRequest request = * ListEventsRequest.newBuilder() @@ -1875,6 +2009,8 @@ public final UnaryCallablelistEvent * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ListEventsRequest request = * ListEventsRequest.newBuilder() @@ -1910,6 +2046,8 @@ public final UnaryCallablelistEventsCall * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * EventName name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"); * Event response = livestreamServiceClient.getEvent(name); @@ -1933,6 +2071,8 @@ public final Event getEvent(EventName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString(); * Event response = livestreamServiceClient.getEvent(name); @@ -1955,6 +2095,8 @@ public final Event getEvent(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * GetEventRequest request = * GetEventRequest.newBuilder() @@ -1978,6 +2120,8 @@ public final Event getEvent(GetEventRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * GetEventRequest request = * GetEventRequest.newBuilder() @@ -2000,6 +2144,8 @@ public final UnaryCallablegetEventCallable() { * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * EventName name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"); * livestreamServiceClient.deleteEvent(name); @@ -2023,6 +2169,8 @@ public final void deleteEvent(EventName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * String name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString(); * livestreamServiceClient.deleteEvent(name); @@ -2045,6 +2193,8 @@ public final void deleteEvent(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteEventRequest request = * DeleteEventRequest.newBuilder() @@ -2069,6 +2219,8 @@ public final void deleteEvent(DeleteEventRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * DeleteEventRequest request = * DeleteEventRequest.newBuilder() diff --git a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java index 2006268..9385f4a 100644 --- a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java +++ b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/LivestreamServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,6 +57,8 @@ *For example, to set the total timeout of getChannel to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * LivestreamServiceSettings.Builder livestreamServiceSettingsBuilder = * LivestreamServiceSettings.newBuilder(); * livestreamServiceSettingsBuilder diff --git a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/package-info.java b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/package-info.java index e390edd..f53e8ab 100644 --- a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/package-info.java +++ b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,6 +29,8 @@ *Sample for LivestreamServiceClient: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) { * ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]"); * Channel response = livestreamServiceClient.getChannel(name); diff --git a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceCallableFactory.java b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceCallableFactory.java index 17f0b30..176f5ff 100644 --- a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceCallableFactory.java +++ b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java index 8cf2d8b..f991801 100644 --- a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java +++ b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/GrpcLivestreamServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java index d20b180..6ee4ecc 100644 --- a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java +++ b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java index 6999b7a..c600121 100644 --- a/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java +++ b/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/LivestreamServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -99,6 +99,8 @@ *For example, to set the total timeout of getChannel to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * LivestreamServiceStubSettings.Builder livestreamServiceSettingsBuilder = * LivestreamServiceStubSettings.newBuilder(); * livestreamServiceSettingsBuilder diff --git a/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java b/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java index c00fb17..bbbcaac 100644 --- a/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java +++ b/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/LivestreamServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamService.java b/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamService.java index c7ad535..5f8c7dc 100644 --- a/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamService.java +++ b/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java b/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java index 528e309..d5a3d89 100644 --- a/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java +++ b/google-cloud-live-stream/src/test/java/com/google/cloud/video/livestream/v1/MockLivestreamServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioFormat.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioFormat.java index 85f51eb..d05f0b8 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioFormat.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioFormat.java @@ -105,6 +105,8 @@ private AudioFormat( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStream.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStream.java index 4c0026e..32a1808 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStream.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStream.java @@ -135,6 +135,8 @@ private AudioStream( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -325,6 +327,8 @@ private AudioMapping( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStreamProperty.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStreamProperty.java index 5a5f099..34aef18 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStreamProperty.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/AudioStreamProperty.java @@ -100,6 +100,8 @@ private AudioStreamProperty( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java index 41d7af8..ad86bd2 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Channel.java @@ -269,6 +269,8 @@ private Channel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -695,6 +697,8 @@ private Output( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1434,7 +1438,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1469,7 +1473,7 @@ public java.util.MapgetLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1486,7 +1490,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3475,7 +3479,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3511,7 +3515,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3528,7 +3532,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3552,7 +3556,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -3573,11 +3577,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java index 848e6d3..871f85b 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOperationResponse.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOperationResponse.java index 299c3f8..6939e95 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOperationResponse.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOperationResponse.java @@ -79,6 +79,8 @@ private ChannelOperationResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java index 3de8ab2..87e9276 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ChannelOrBuilder.java @@ -168,7 +168,12 @@ public interface ChannelOrBuilder * * map<string, string> labels = 4;
*/ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateChannelRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateChannelRequest.java index fae0ee6..15683ce 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateChannelRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateChannelRequest.java @@ -120,6 +120,8 @@ private CreateChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateEventRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateEventRequest.java index 0b641b7..118bf0f 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateEventRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateEventRequest.java @@ -120,6 +120,8 @@ private CreateEventRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateInputRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateInputRequest.java index 104d995..b53cb6c 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateInputRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/CreateInputRequest.java @@ -120,6 +120,8 @@ private CreateInputRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteChannelRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteChannelRequest.java index cb1efba..ee04de4 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteChannelRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteChannelRequest.java @@ -101,6 +101,8 @@ private DeleteChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteEventRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteEventRequest.java index d434a99..eded430 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteEventRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteEventRequest.java @@ -96,6 +96,8 @@ private DeleteEventRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteInputRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteInputRequest.java index f939fad..18dda42 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteInputRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/DeleteInputRequest.java @@ -96,6 +96,8 @@ private DeleteInputRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java index c50f145..e404b85 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ElementaryStream.java @@ -147,6 +147,8 @@ private ElementaryStream( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1075,8 +1077,9 @@ public Builder mergeVideoStream(com.google.cloud.video.livestream.v1.VideoStream } else { if (elementaryStreamCase_ == 1) { videoStreamBuilder_.mergeFrom(value); + } else { + videoStreamBuilder_.setMessage(value); } - videoStreamBuilder_.setMessage(value); } elementaryStreamCase_ = 1; return this; @@ -1285,8 +1288,9 @@ public Builder mergeAudioStream(com.google.cloud.video.livestream.v1.AudioStream } else { if (elementaryStreamCase_ == 2) { audioStreamBuilder_.mergeFrom(value); + } else { + audioStreamBuilder_.setMessage(value); } - audioStreamBuilder_.setMessage(value); } elementaryStreamCase_ = 2; return this; @@ -1495,8 +1499,9 @@ public Builder mergeTextStream(com.google.cloud.video.livestream.v1.TextStream v } else { if (elementaryStreamCase_ == 3) { textStreamBuilder_.mergeFrom(value); + } else { + textStreamBuilder_.setMessage(value); } - textStreamBuilder_.setMessage(value); } elementaryStreamCase_ = 3; return this; diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java index 4b38e6f..e444453 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Event.java @@ -194,6 +194,8 @@ private Event( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -567,6 +569,8 @@ private AdBreakTask( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1432,7 +1436,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1467,7 +1471,7 @@ public java.util.MapgetLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1484,7 +1488,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2825,7 +2829,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2861,7 +2865,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2878,7 +2882,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2902,7 +2906,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2923,11 +2927,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -3068,8 +3073,9 @@ public Builder mergeAdBreak(com.google.cloud.video.livestream.v1.Event.AdBreakTa } else { if (taskCase_ == 6) { adBreakBuilder_.mergeFrom(value); + } else { + adBreakBuilder_.setMessage(value); } - adBreakBuilder_.setMessage(value); } taskCase_ = 6; return this; diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java index 257a53c..9942db2 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventOrBuilder.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventOrBuilder.java index 0373aee..42befe1 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventOrBuilder.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/EventOrBuilder.java @@ -168,7 +168,12 @@ public interface EventOrBuilder * * map<string, string> labels = 4;
*/ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetChannelRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetChannelRequest.java index 089b7b8..34444cf 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetChannelRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetChannelRequest.java @@ -88,6 +88,8 @@ private GetChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetEventRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetEventRequest.java index 461a554..dd399cb 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetEventRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetEventRequest.java @@ -88,6 +88,8 @@ private GetEventRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetInputRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetInputRequest.java index 2e91ee2..fc55578 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetInputRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/GetInputRequest.java @@ -88,6 +88,8 @@ private GetInputRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Input.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Input.java index 96c9cb8..1bd32fc 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Input.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Input.java @@ -208,6 +208,8 @@ private Input( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -718,6 +720,8 @@ private SecurityRule( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1582,7 +1586,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1617,7 +1621,7 @@ public java.util.MapgetLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1634,7 +1638,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3030,7 +3034,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -3066,7 +3070,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3083,7 +3087,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -3107,7 +3111,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -3128,11 +3132,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java index 30b9234..fb05de8 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputAttachment.java @@ -115,6 +115,8 @@ private InputAttachment( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -272,6 +274,8 @@ private AutomaticFailover( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java index 51de407..b241327 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputOrBuilder.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputOrBuilder.java index 8764c24..bb7b245 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputOrBuilder.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputOrBuilder.java @@ -168,7 +168,12 @@ public interface InputOrBuilder * * map<string, string> labels = 4;
*/ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputStreamProperty.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputStreamProperty.java index 46d2859..283e374 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputStreamProperty.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/InputStreamProperty.java @@ -126,6 +126,8 @@ private InputStreamProperty( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsRequest.java index d7de1a5..2dd344e 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsRequest.java @@ -117,6 +117,8 @@ private ListChannelsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsResponse.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsResponse.java index 046ef9d..1ccf0ed 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsResponse.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListChannelsResponse.java @@ -112,6 +112,8 @@ private ListChannelsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsRequest.java index d296ce9..50a8fdb 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsRequest.java @@ -117,6 +117,8 @@ private ListEventsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsResponse.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsResponse.java index 61e3c13..1d5be18 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsResponse.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListEventsResponse.java @@ -112,6 +112,8 @@ private ListEventsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsRequest.java index d33c22b..e87aab4 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsRequest.java @@ -117,6 +117,8 @@ private ListInputsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsResponse.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsResponse.java index 014c9e1..8fab050 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsResponse.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/ListInputsResponse.java @@ -112,6 +112,8 @@ private ListInputsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java index 1940cbf..5527258 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LogConfig.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LogConfig.java index db4e7f4..481386b 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LogConfig.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/LogConfig.java @@ -91,6 +91,8 @@ private LogConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java index cba5f94..eefa699 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/Manifest.java @@ -128,6 +128,8 @@ private Manifest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java index 1d8a2aa..b83e68d 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/MuxStream.java @@ -125,6 +125,8 @@ private MuxStream( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OperationMetadata.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OperationMetadata.java index 6b811fe..09e95b8 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OperationMetadata.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/OperationMetadata.java @@ -139,6 +139,8 @@ private OperationMetadata( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PreprocessingConfig.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PreprocessingConfig.java index bdc13c1..a997dbb 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PreprocessingConfig.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/PreprocessingConfig.java @@ -115,6 +115,8 @@ private PreprocessingConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -277,6 +279,8 @@ private Crop( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1146,6 +1150,8 @@ private Pad( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SegmentSettings.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SegmentSettings.java index 0c45381..2b81c1b 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SegmentSettings.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SegmentSettings.java @@ -94,6 +94,8 @@ private SegmentSettings( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SpriteSheet.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SpriteSheet.java index b269d06..dcae893 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SpriteSheet.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/SpriteSheet.java @@ -136,6 +136,8 @@ private SpriteSheet( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StartChannelRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StartChannelRequest.java index 1c2264d..1b22eaa 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StartChannelRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StartChannelRequest.java @@ -96,6 +96,8 @@ private StartChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StopChannelRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StopChannelRequest.java index 28b3fa8..c0cc4c4 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StopChannelRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/StopChannelRequest.java @@ -96,6 +96,8 @@ private StopChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/TextStream.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/TextStream.java index 28d662a..3bba2fb 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/TextStream.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/TextStream.java @@ -88,6 +88,8 @@ private TextStream( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateChannelRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateChannelRequest.java index 70dc472..2a66536 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateChannelRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateChannelRequest.java @@ -119,6 +119,8 @@ private UpdateChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateInputRequest.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateInputRequest.java index 8bcde1d..e3efabd 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateInputRequest.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/UpdateInputRequest.java @@ -119,6 +119,8 @@ private UpdateInputRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoFormat.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoFormat.java index 31803cd..333d178 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoFormat.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoFormat.java @@ -103,6 +103,8 @@ private VideoFormat( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -252,7 +254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (heightPixels_ != 0) { output.writeInt32(3, heightPixels_); } - if (frameRate_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(frameRate_) != 0) { output.writeDouble(4, frameRate_); } unknownFields.writeTo(output); @@ -273,7 +275,7 @@ public int getSerializedSize() { if (heightPixels_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, heightPixels_); } - if (frameRate_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(frameRate_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, frameRate_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStream.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStream.java index a0330c9..c9aa0f0 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStream.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStream.java @@ -102,6 +102,8 @@ private VideoStream( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -553,8 +555,8 @@ private H264CodecSettings( } case 56: { - gopModeCase_ = 7; gopMode_ = input.readInt32(); + gopModeCase_ = 7; break; } case 66: @@ -629,6 +631,8 @@ private H264CodecSettings( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1206,7 +1210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (heightPixels_ != 0) { output.writeInt32(2, heightPixels_); } - if (frameRate_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(frameRate_) != 0) { output.writeDouble(3, frameRate_); } if (bitrateBps_ != 0) { @@ -1236,7 +1240,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (bFrameCount_ != 0) { output.writeInt32(13, bFrameCount_); } - if (aqStrength_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(aqStrength_) != 0) { output.writeDouble(14, aqStrength_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profile_)) { @@ -1260,7 +1264,7 @@ public int getSerializedSize() { if (heightPixels_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, heightPixels_); } - if (frameRate_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(frameRate_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, frameRate_); } if (bitrateBps_ != 0) { @@ -1294,7 +1298,7 @@ public int getSerializedSize() { if (bFrameCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, bFrameCount_); } - if (aqStrength_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(aqStrength_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(14, aqStrength_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profile_)) { @@ -2301,8 +2305,9 @@ public Builder mergeGopDuration(com.google.protobuf.Duration value) { } else { if (gopModeCase_ == 8) { gopDurationBuilder_.mergeFrom(value); + } else { + gopDurationBuilder_.setMessage(value); } - gopDurationBuilder_.setMessage(value); } gopModeCase_ = 8; return this; @@ -3732,8 +3737,9 @@ public Builder mergeH264( } else { if (codecSettingsCase_ == 20) { h264Builder_.mergeFrom(value); + } else { + h264Builder_.setMessage(value); } - h264Builder_.setMessage(value); } codecSettingsCase_ = 20; return this; diff --git a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStreamProperty.java b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStreamProperty.java index 79be28e..940d488 100644 --- a/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStreamProperty.java +++ b/proto-google-cloud-live-stream-v1/src/main/java/com/google/cloud/video/livestream/v1/VideoStreamProperty.java @@ -100,6 +100,8 @@ private VideoStreamProperty( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally {